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
 discount not displaying on category page
Author « Topic »  

tgorski
Ecommerce Template Expert

USA
918 Posts

Posted - 10/07/2017 :  10:36:03  
Other than using the coupon code, I thought one of the distinguishing characteristics between coupons and discounts is that the assigned discount will be displayed at the top of the categories to which the discount is assigned ... but that is not happening.

Any ideas why or where to look?

Thanks!

Tim Gorski

Andy
ECT Moderator

95440 Posts

Posted - 10/07/2017 :  10:49:05  
Hi Tim

First thing I'd check is to see if it's turned off in includes.php

https://www.ecommercetemplates.com/phphelp/ecommplus/parameters.asp#hidediscounts

Andy

Please feel free to review / rate our software

tgorski
Ecommerce Template Expert

USA
918 Posts

Posted - 10/07/2017 :  10:49:56  
ok ... I found "$GLOBALS['noshowdiscounts'" and set it to false, which now shows the discount in the category descriptions (on the categories.php page) but it still does not display at the to of the appropriate products.php pages.

Tim Gorski

tgorski
Ecommerce Template Expert

USA
918 Posts

Posted - 10/07/2017 :  10:52:17  
..."at the TOP of the appropriate products.php pages."


Tim Gorski

Andy
ECT Moderator

95440 Posts

Posted - 10/07/2017 :  11:21:25  
The discount text won't show unless the discount is directly assigned to the sub- category.

Andy

Please feel free to review / rate our software

tgorski
Ecommerce Template Expert

USA
918 Posts

Posted - 10/07/2017 :  11:28:58  
The discounts ARE assigned to the sub categories ...

Here's the category page so you can click into the sub-categories with the discount:
https://www.bavariasausage.com/categories.php?cat=Gravies%2C+Soups%2C+Sauces+%26+Spices

Tim Gorski

Andy
ECT Moderator

95440 Posts

Posted - 10/07/2017 :  12:46:58  
You don't mean the

Discounts Apply !
10% OFF ALL Knorr & Maggi gravies, soups and sauces

Andy

Please feel free to review / rate our software

tgorski
Ecommerce Template Expert

USA
918 Posts

Posted - 10/07/2017 :  13:27:17  
I DO mean that ... isn't the discount message supposed to display above the category header?

Tim Gorski

Andy
ECT Moderator

95440 Posts

Posted - 10/08/2017 :  00:16:12  
I don't believe so as it doesn't seem to apply to all the categories displayed on the page, like Knorr Seasonings & Bouillon for example.

Andy

Please feel free to review / rate our software

tgorski
Ecommerce Template Expert

USA
918 Posts

Posted - 10/09/2017 :  09:10:10  
The discount is applied to selected sub-categories when viewing the https://www.bavariasausage.com/categories.php?cat=Gravies%2C+Soups%2C+Sauces+%26+Spices page ... when clicking on the subcategories that DISPLAY THE DISCOUNT TEXT, shouldn't those products.php pages show the discount text as well?

Tim Gorski

Andy
ECT Moderator

95440 Posts

Posted - 10/09/2017 :  09:21:06  
Are you using something like this in the code of 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";?>

Andy

Please feel free to review / rate our software

tgorski
Ecommerce Template Expert

USA
918 Posts

Posted - 10/09/2017 :  13:49:15  
That WAS it, Andy ... THANKS! ... so I take it that commands like that at the page level take priority over the includes file?

We're relatively new to the PHP side of the ECT platform after 10 or more years on the ASP platform.

That said, while we like what seems to be a greater feature set on the PHP side, I can't help but notice that forum is labeled "Unix/Linux/Apache", yet we're using PHP pages on a Windows server ... any problem with that?

Tim Gorski

Sinbad
ECT Moderator

USA
65937 Posts

Posted - 10/09/2017 :  14:11:18  
Hi Tim, adding parameters to the page will override the includes, using php on window is ok the forum titles were setup long before you could use php on windows.

Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates

Andy
ECT Moderator

95440 Posts

Posted - 10/10/2017 :  03:22:21  
What I would do is remove all those lines (except the incproducts include line) and then use the product page layout parameter

https://www.ecommercetemplates.com/help/css-layouts.asp#productorder

so you can then define exactly which elements should appear on the products page.

Andy

Please feel free to review / rate our software

tgorski
Ecommerce Template Expert

USA
918 Posts

Posted - 10/10/2017 :  08:38:26  
Thank you both!

Tim Gorski
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000