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)
-   -   Show Market price (list price) on product detail page (https://forum.x-cart.com/showthread.php?t=65485)

totaltec 02-25-2014 06:49 AM

Re: Show Market price (list price) on product detail page
 
Can you not update the price on the page you show above? Can you not update the price on the product page? I'm confused, this should be very easy.

CB Tan 05-15-2014 08:12 PM

Re: Show Market price (list price) on product detail page
 
I am confused too gozindagi.

Back to the original topic.
But in the newer version, it is no longer in product.tpl
but this appear in product_details.tpl

<tr class="separator">
<td colspan="3">&nbsp;</td>
</tr>

{if $product.appearance.has_market_price and $product.appearance.market_price_discount gt 0}
<tr>
<td class="property-name product-taxed-price">{$lng.lbl_market_price}:</td>
<td class="property-value product-taxed-price" colspan="2">{currency value=$product.list_price}</td>
</tr>
{/if}

<tr>
<td class="property-name product-price" valign="top">{$lng.lbl_our_price}:</td>
<td class="property-value" valign="top" colspan="2">
{if $product.taxed_price ne 0 or $variant_price_no_empty}
<span class="product-price-value">{currency value=$product.taxed_price tag_id="product_price"}</span>
<span class="product-market-price">{alter_currency value=$product.taxed_price tag_id="product_alt_price"}</span>
{if $product.taxes}
<br />{include file="customer/main/taxed_price.tpl" taxes=$product.taxes}
{/if}

{if $active_modules.Klarna_Payments}
{include file="modules/Klarna_Payments/monthly_cost.tpl" elementid="pp_conditions`$product.productid`" monthly_cost=$product.monthly_cost tag="tr"}
{/if}

{else}
<input type="text" size="7" name="price" />
{/if}
</td>
</tr>

Should I just add the same code as above for the %save and list price
into /customer/main/products_t.tpl

{if $product.appearance.has_price}

<div class="price-row">
<span class="price-value">{currency value=$product.taxed_price sup="Y"}</span>
<span class="market-price">{alter_currency value=$product.taxed_price}</span></br>
<span class="list-price">{alter_currency value=$product.list_price}SAVE</span>


All times are GMT -8. The time now is 12:20 PM.

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