durango
Starting Member
10 Posts Pre-sales questions only (More Details...)
|
Posted - 03/10/2019 : 11:06:50
I discovered that the contents of my includes file were showing up in the source code of my proddetail.php pages. It's not visible on screen only when you view source. I've checked my page code over and can't find the problem. The site still functions properly. This doesn't happen on any other pages.
Any ideas would be helpful? Here's my includes on proddetail.php
<?php include "vsadmin/inc/languagefile.php"; ?> <?php include "vsadmin/includes.php"; ?> <?php include "vsadmin/inc/incfunctions.php"; ?> <?php include "vsadmin/inc/incproddetail.php"; ?> <?php include "vsadmin/inc/incproddetail.php"; ?>
|
Andy
ECT Moderator
95440 Posts |
Posted - 03/10/2019 : 11:42:42
|
Phil
ECT Moderator
United Kingdom
7740 Posts |
Posted - 03/10/2019 : 12:58:38
Edited by - Phil on 03/10/2019 12:59:04
|
durango
Starting Member
10 Posts Pre-sales questions only (More Details...)
|
Posted - 03/10/2019 : 14:48:33
There is no error messages. I even turned on php logging but nothing of value showed up.
The page is a PHP page not HTML
|
dbdave
ECT Moderator
USA
10507 Posts |
Posted - 03/10/2019 : 14:55:11
The latest versions convert many of your includes variables to javascript variables so they will be available to javascript. Is that maybe what you are seeing in the source? Look for "var" in front of each....
Edited by - dbdave on 03/10/2019 14:56:28
|
Marshall
Ecommerce Template Guru
USA
1918 Posts |
Posted - 03/10/2019 : 17:46:11
Is this a typo in the post or how it appears in the page. <?php include "vsadmin/inc/languagefile.php"; ?> <?php include "vsadmin/includes.php"; ?> <?php include "vsadmin/inc/incfunctions.php"; ?> <?php include "vsadmin/inc/incproddetail.php"; ?> <?php include "vsadmin/inc/incproddetail.php"; ?>
Marshall CENLYT Productions - ms designs Affordable Web Design Custom Ecommerce Designs Responsive Websites Cenlyt.com
|
durango
Starting Member
10 Posts Pre-sales questions only (More Details...)
|
Posted - 03/11/2019 : 10:49:03
DBDave,
I do see some code like this below the contents of the includes.php file. So is that normal to see ECT embed the javascript of those files in the html page? [code] var cartpageonhttps=false; var currDecimalSep='.'; var currencyseparator=' '; var currThousandsSep=','; [/code]
|
durango
Starting Member
10 Posts Pre-sales questions only (More Details...)
|
Posted - 03/11/2019 : 10:52:08
Marshall,
That's copied from the source code of my prodetails.php page.
|
Phil
ECT Moderator
United Kingdom
7740 Posts |
Posted - 03/11/2019 : 10:54:08
|
dbdave
ECT Moderator
USA
10507 Posts |
Posted - 03/11/2019 : 11:31:32
As Phil mentions, yes it's normal. Although this one - cartpageonhttps=false; You probably want to get your whole site over to https if it's not. Google will give you more love when you go all https, and your customers will appreciate it too.
Good info on that here - https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=106851
|
Marshall
Ecommerce Template Guru
USA
1918 Posts |
Posted - 03/11/2019 : 17:40:16
quote: That's copied from the source code of my prodetails.php page.
The inc/incproddetail.php should not be there twice. MarshallCENLYT Productions - ms designs Affordable Web Design Custom Ecommerce Designs Responsive Websites Cenlyt.com
|
|
|