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
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 includes.php settings showing up in page source
Author « Topic »  

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  
Hi

Is there any error anywhere or is it they show in the source?

Andy

Please feel free to review / rate our software

Phil
ECT Moderator

United Kingdom
7740 Posts

Posted - 03/10/2019 :  12:58:38  
Hi,
Can you post the url for the page you're seeing this on, the only way you would see php code in source view is if the page has a html extension.




* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

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  
That's quite normal



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

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.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.05 seconds. Snitz Forums 2000