Currently my store's cart shows product options but not the price or % associated with it.
Relevant Code:
skin1/customer/main/cart.tpl
Code:
{strip}
{include file="modules/Product_Options/display_options.tpl" options=$product.product_options}
{/strip}
skin1/modules/product_options/display_options.tpl
Code:
{*
$Id: display_options.tpl,v 1.14 2008/12/05 12:54:17 joy Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{if $options && $force_product_options_txt eq ''}
{if $is_plain eq 'Y'}
{if $options ne $options_txt}
{foreach from=$options item=v}
{$v.class}: {$v.option_name}
{/foreach}
{else}
{$options_txt}
{/if}
{else}
{if $options ne $options_txt}
<table width="100%" cellspacing="0" class="poptions-options-list2" summary="{$lng.lbl_product_options|escape}">
{foreach from=$options item=v}
<tr>
<td>{$v.class|escape}:</td>
<td>{$v.option_name|escape}</td>
{*************************}
<td>
{from=$v.options item=o}
{strip}
{if $v.is_modifier eq 'Y' && $o.price_modifier ne 0}
(
{if $o.modifier_type ne '%'}
{include file="currency.tpl" value=$o.price_modifier display_sign=1 plain_text_message=1}
{else}
{$o.price_modifier}%
{/if}
)
{/if}
{/strip}
</td>
{**********************}
</tr>
{/foreach}
</table>
{else}
{$options_txt|escape|replace:"\n":"<br />"}
{/if}
{/if}
{elseif $force_product_options_txt}
{if $is_plain eq 'Y'}
{$options_txt|escape:"html"}
{else}
{$options_txt|replace:"\n":"<br />"}
{/if}
{/if}
I've marked the section i edited with comment lines.
I don't get any errors, but I also don't get any results...
www.speartech.net/shop/home.php?shopkey=testing
add a home pc to the cart and you'll see what I'm saying.
Thanks in advance!
__________________
Dustin Spears
www.SpearTech.net
X-Cart Gold
Version: 4.2.0
Add Ons: Product Configurator,X-RMA, X-AOM
Third Party Mods: None (Yet

)