You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
How do I tell the price display include that if I'm on a product list display, do one thing; if I'm on a product detail display, do another?
Offline
In your Product Price Display you will need the following lines, the first if it is not present should go in the top sections of the php variables :
$ns = $this->globals('core.namespace');
once this line is present then the rest would need to be like (basically something like this line for each price type you want to control):
if ($ns == 'prodshow') { // what to do on a product detail page. } else { // what to do for every other page. } // end of if statement.
John
Offline
Hm. It's picking up the same display for related products. Is there another way?
Offline
The related products are built thru the namespace of prodshow since it is part of the original product display call and right now I know of no way to limit that without making a mod to the core script ECOM_Prod.php.
John
Offline
Thanks. You know what I did that I never realized I could do in 3 years? I just made two NEW display includes for each and kept the original. Seems to be working fine!
Offline