![]() |
Hide Price based on Mfgr
I need to hide the price of a specific manufacturer so only the retail price shows and replace it with text like "Add to cart for price". Can someone do a quick if/then statement for me that does this??
|
Re: Hide Price based on Mfgr
{if $product.manufacturerid eq 'XXX'} SHOW TEXT {else} SHOW PRICE {/if}
fixed. |
Re: Hide Price based on Mfgr
eeq gave me a blank page, eq works, but the SHOW PRICE still shows after the else.
|
Re: Hide Price based on Mfgr
So you just copy/paste as I posted :) There is an error - double ee in eeg... It should be "eg"
|
Re: Hide Price based on Mfgr
I see that it does work, but I need to hide the price when that happens and the price looks like its in another if/else just below it (product_details.tpl)
|
Re: Hide Price based on Mfgr
You need to surround the existing code that shows price with this
{if $product.manufacturerid eq 'XXX'} SHOW TEXT {else} EXISTING CODE {/if} Also replace XXX with the actual manufacturer id and make sure this info is available in the product array - you can use the webmaster mode to inspect the product array. |
Re: Hide Price based on Mfgr
I tried this, but it doesnt display aything.. where am i going wrong??
Code:
{if $product.manufacturerid eq '2'} |
Re: Hide Price based on Mfgr
also tried it with an {/if} at the end to close it out and still got nothing.
|
Re: Hide Price based on Mfgr
got it working, thanks!!
|
Re: Hide Price based on Mfgr
good, glad you got it working
|
All times are GMT -8. The time now is 02:08 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.