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)
-   -   Our Price from (https://forum.x-cart.com/showthread.php?t=47645)

info@sjidesign.com 05-20-2009 02:38 AM

Our Price from
 
Hi,

Searched all through the forum and can't find the answer.

Does anyone know how to make the product listing page (products_list.tpl) say

Our Price for products without options

and

Our Price From for any products that have options?

Many thanks in advance

Dan

cflsystems 05-20-2009 04:34 AM

Re: Our Price from
 
Find the following
Code:

{if $product.appearance.has_price}
                <div class="price-row{if $active_modules.Special_Offers ne "" && $product.use_special_price ne ""} special-price-row{/if}">

and then change the next one to this (create the language variable as well)
Code:

                  <span class="price">{if $product.is_variants}{$lng.lbl_priced_from}:{else}{$lng.lbl_our_price}:{/if}</span> <span class="price-value">{include file="currency.tpl" value=$product.taxed_price}</span>

info@sjidesign.com 05-20-2009 05:40 AM

Re: Our Price from
 
Thank you very much.

I had to alter the code slightly as have made quite a few changes to templates but your code worked perfectly with a little bit of fine tuning.

Thanks again it is appreciated.

In case anyone wants the code put this into products_listing.tpl

<span class="price">{if $active_modules.Special_Offers ne "" && $product.use_special_price ne ""} special-price-row}{else}{if $product.is_variants}Price from:{else}{$lng.lbl_our_price}:{/if}{/if}</span>

I used Price from instead of making a new language label but you can make one if required.

Regards

Dan


All times are GMT -8. The time now is 01:14 PM.

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