X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   {if $product.price eq 0} .... (https://forum.x-cart.com/showthread.php?t=51622)

ROIMasterGuru 01-05-2010 04:19 PM

{if $product.price eq 0} ....
 
If a product is priced at 0, I need there to be a message stating 'Contact For Current Pricing'.

The closest I have found is the post below, however it didn't apply to my Xcart 4.3.0 because
I did not find a price section in customer/main/product.tpl, nor an 'add to cart' section???

Please help.

"I tried several variables to find the one for price and the following is what I came up with. I changed the product price to zero 0, then I created a label as Available Soon, and added the following in customer/main/product.tpl before the Price section as.....

{if $product.price eq 0}<div><font class="ProductDetailsTitle">{$lng.lbl_available_so on}</font></div>
{else}

I closed the {/if} after my add to cart, this way I removed the price, quantity and add to cart for those products that are not available for sale, but allows them to show on our store."


cflsystems 01-05-2010 06:26 PM

Re: {if $product.price eq 0} ....
 
for 4.3 look in skin1/customer/main/product_details.tpl

ROIMasterGuru 01-05-2010 07:02 PM

Re: {if $product.price eq 0} ....
 
Thank you very much!!! I owe you one. You rock!

ARW VISIONS 01-05-2010 10:47 PM

Re: {if $product.price eq 0} ....
 
buy him a steak! or just hit the little thanks button :)

ambal 01-06-2010 01:07 AM

Re: {if $product.price eq 0} ....
 
Moved this to X-Cart Customization > Storefront Design & Template Editing in v 4.2.x and 4.3.x


All times are GMT -8. The time now is 10:57 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.