Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Author « Topic »  

jimhuang
Advanced Member

Taiwan
248 Posts

Pre-sales questions only
(More Details...)

Posted - 01/20/2021 :  22:19:07  
Refer to CSS Responsive Premium Layouts Now In Updater https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=113073

I can Not understand the meaning of this:

"All the CSS include lines can be included with one simple line as follows...
// PHP
include "vsadmin/inc/incectstyle.php";

Then the following parameters can be used to control the layouts...
// PHP
$ectproductstyle=1; // OR 2 OR 3
$ectdetailstyle=1; // OR 2 OR 3
$ectqbuystyle=1; // OR 2 OR 3

How and where to put include "vsadmin/inc/incectstyle.php";
Or Where can I start?


Jim
V7.25

Vince
Administrator

42756 Posts

Posted - 01/21/2021 :  02:01:07  
Hi Jim
The incectstyle.php file is going to produce tags for the ectcart.css and ectcart.js files so replacing those tags with the include line for incectstyle.php would be a good idea. You would want these before your site stylesheet so that any tweaks you make in the site stylesheet will take precedence.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

jimhuang
Advanced Member

Taiwan
248 Posts

Pre-sales questions only
(More Details...)

Posted - 01/21/2021 :  04:04:53  
Hi, Vince

I will add new green lines as follows. Is that correct or not?

<!-- #BeginEditable "includelines" -->
[green]<?php include "vsadmin/inc/incectstyle.php" ?>[/green]
<!-- #EndEditable -->

<link href="../css/ectcart.css" rel="stylesheet" type="text/css" />
<link href="../css/style.css" rel="stylesheet" type="text/css" />
<link href="../css/style3.css" rel="stylesheet" type="text/css" />
<link href="../css/responsivemobilemenu.css" rel="stylesheet">
<script src="../js/ectcart.js" type="text/javascript"></script>
[green]<link href="css/ectstylebase.css" rel="stylesheet" type="text/css" />
<link href="css/ectstyleproduct2.css" rel="stylesheet" type="text/css" />
<link href="css/ectstyledetails2.css" rel="stylesheet" type="text/css" />
<style>div.category{width:49%;}
@media screen and (max-width: 800px) {div.category{width:99%;}}
div.product{width:32.3333333333333%;}
@media screen and (max-width: 800px) {div.product{width:49%;}}
@media screen and (max-width: 360px) {div.product{width:99%;}}
</style>[/green]

Then upload other new css files.


Jim

Vince
Administrator

42756 Posts

Posted - 01/21/2021 :  05:29:27  
Hi Jim
This is what I believe you need...

<!-- #BeginEditable "includelines" -->
<!-- #EndEditable -->

<?php include "vsadmin/inc/incectstyle.php" ?>

<link href="../css/style.css" rel="stylesheet" type="text/css" />
<link href="../css/style3.css" rel="stylesheet" type="text/css" />
<link href="../css/responsivemobilemenu.css" rel="stylesheet">

jimhuang
Advanced Member

Taiwan
248 Posts

Pre-sales questions only
(More Details...)

Posted - 01/21/2021 :  06:40:45  
Hi Vince

I was confused.
Sorry, my English and coding is not good

In the head tab of project.dwt, I need to set:

<link href="css/ectcart.css" rel="stylesheet" type="text/css" />
<script src="js/ectcart.js" type="text/javascript"></script>
<?php include "vsadmin/inc/incectstyle.php" ?>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
<link href="../css/style3.css" rel="stylesheet" type="text/css" />
<link href="../css/responsivemobilemenu.css" rel="stylesheet">
<style>div.category{width:49%;}
@media screen and (max-width: 800px) {div.category{width:99%;}}
div.product{width:32.3333333333333%;}
@media screen and (max-width: 800px) {div.product{width:49%;}}
@media screen and (max-width: 360px) {div.product{width:99%;}}
</style>
</head>

Is that right?

What about these tree lines, do I need them?:
[green]<link href="css/ectstylebase.css" rel="stylesheet" type="text/css" />
<link href="css/ectstyleproduct2.css" rel="stylesheet" type="text/css" />
<link href="css/ectstyledetails2.css" rel="stylesheet" type="text/css" />[/green]

And do I still need the following lines before </ body>?
[orange]<script src="js/html5.js" type="text/javascript"></script>
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/responsivemobilemenu.js"></script>[/orange]
</body>

Vince
Administrator

42756 Posts

Posted - 01/21/2021 :  08:54:35  
If you include this line...

<?php include "vsadmin/inc/incectstyle.php" ?>

Then these lines will be automatically included...

<link href="css/ectcart.css" rel="stylesheet" type="text/css" />
<script src="js/ectcart.js" type="text/javascript"></script>

<link href="css/ectstylebase.css" rel="stylesheet" type="text/css" />
<link href="css/ectstyleproduct2.css" rel="stylesheet" type="text/css" />
<link href="css/ectstyledetails2.css" rel="stylesheet" type="text/css" />

...so you don't need them. This is why I say that this is what you need (based on what you posted)

<!-- #BeginEditable "includelines" -->
<!-- #EndEditable -->

<?php include "vsadmin/inc/incectstyle.php" ?>

<link href="../css/style.css" rel="stylesheet" type="text/css" />
<link href="../css/style3.css" rel="stylesheet" type="text/css" />
<link href="../css/responsivemobilemenu.css" rel="stylesheet">

quote:
And do I still need the following lines before </ body>?
<script src="js/html5.js" type="text/javascript"></script>
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/responsivemobilemenu.js"></script>
This depends on if your theme needs them and if they were already included it's quite possible.
Do try this on a test site by the way as if (as it sounds like you are) trying to use this on a pre-existing website then it will change the output quite a lot and you may need to tweak things to use the new system.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000