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
 Donation page setup code differs from instructions
Author « Topic »  

1818charlie
ECT Moderator

United Kingdom
1194 Posts

Posted - 12/01/2017 :  16:01:40  
I am trying to setup the donations page for one of the sites I maintain. The instructions I am following are from this page https://www.ecommercetemplates.com/help/donations.asp The instructions state to find this line <?php include "vsadmin/inc/incproducts.php"?> but that line looks different in the page code for the template used, & change it to this <?php
$explicitid="donation";
?>
<?php include "vsadmin/inc/incspecials.php" ?>


Changing the line results in a page that the browser shows the following message - This page isn’t working - www.webdomanname.com is currently unable to handle this request. - HTTP ERROR 500

Exactly how does the replacement code need laying out for this to function?

This is the code on products.php
<?php
$GLOBALS['nobuyorcheckout']=TRUE; // Removes buy and checkout buttons
$GLOBALS['noproductoptions']=TRUE; // Removes product options
$GLOBALS['showquantonproduct']=FALSE; // Removes quantity box
$GLOBALS['showproductsku']=""; // Removes SKU field
$GLOBALS['manufacturerfield']=""; // Removes Manufacturer field
$GLOBALS['showinstock']=FALSE; // Hides out of stock products
$GLOBALS['showproductid']=FALSE; // Removes product ID
$GLOBALS['shortdescriptionlimit']=0; // Removes short description
$GLOBALS['noshowdiscounts']=TRUE; // Hides discount text
include "vsadmin/inc/incproducts.php";?>

Steve

The worlds safest web server is the one that is turned off

Andy
ECT Moderator

95440 Posts

Posted - 12/01/2017 :  23:50:07  
Hi Steve

Now we have the productpagelayout paramter I would first of all remove all this

<?php
$GLOBALS['nobuyorcheckout']=TRUE; // Removes buy and checkout buttons
$GLOBALS['noproductoptions']=TRUE; // Removes product options
$GLOBALS['showquantonproduct']=FALSE; // Removes quantity box
$GLOBALS['showproductsku']=""; // Removes SKU field
$GLOBALS['manufacturerfield']=""; // Removes Manufacturer field
$GLOBALS['showinstock']=FALSE; // Hides out of stock products
$GLOBALS['showproductid']=FALSE; // Removes product ID
$GLOBALS['shortdescriptionlimit']=0; // Removes short description
$GLOBALS['noshowdiscounts']=TRUE; // Hides discount text
include "vsadmin/inc/incproducts.php";?>

just leaving

<?php
include "vsadmin/inc/incproducts.php";?>

and then define the elements using the parameter as per the example here https://www.ecommercetemplates.com/help/css-layouts.asp#productorder

Then your donations page would be

<?php
$explicitid="donation";
?>
<?php include "vsadmin/inc/incspecials.php" ?>

instead of

<?php
include "vsadmin/inc/incproducts.php";?>

Andy

Please feel free to review / rate our software

1818charlie
ECT Moderator

United Kingdom
1194 Posts

Posted - 12/02/2017 :  03:44:44  
Thanks Andy, that has worked a treat.

Steve

The worlds safest web server is the one that is turned off
  « 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