| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Hide Price based on Mfgr | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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??
__________________
4.7.x xcart store Business 5.4xx |
|||||||
#2
|
|||||||||
|
|||||||||
![]() {if $product.manufacturerid eq 'XXX'} SHOW TEXT {else} SHOW PRICE {/if}
fixed.
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() eeq gave me a blank page, eq works, but the SHOW PRICE still shows after the else.
__________________
4.7.x xcart store Business 5.4xx |
|||||||
#4
|
|||||||||
|
|||||||||
![]() So you just copy/paste as I posted
![]()
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#5
|
|||||||
|
|||||||
![]() 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)
__________________
4.7.x xcart store Business 5.4xx |
|||||||
#6
|
|||||||||
|
|||||||||
![]() 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.
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#7
|
|||||||
|
|||||||
![]() I tried this, but it doesnt display aything.. where am i going wrong??
Code:
__________________
4.7.x xcart store Business 5.4xx |
|||||||
#8
|
|||||||
|
|||||||
![]() also tried it with an {/if} at the end to close it out and still got nothing.
__________________
4.7.x xcart store Business 5.4xx |
|||||||
#9
|
|||||||
|
|||||||
![]() got it working, thanks!!
__________________
4.7.x xcart store Business 5.4xx |
|||||||
#10
|
|||||||||
|
|||||||||
![]() good, glad you got it working
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|