View Single Post
  #2  
Old 03-14-2005, 10:34 AM
 
mustang mustang is offline
 

eXpert
  
Join Date: Nov 2003
Location: US
Posts: 210
 

Default

I've tried to modifying the code in the middle to display the variant price adjustment. But no luck. I did successfully add an if statement to identify a variant, but I can't seem to get the correct variable to display the variant price. Actually I'll need to calulate (Variant Price - Product Base Price) to get the variant's additional cost over the base price.

From: skin1/modules/Prodcut_Options/customer_options.tpl
Code:
{if $v.is_modifier eq 'T'} <input id="po{$v.classid}" type="text" name="{$poname}" value="{$v.default}"> {else} <select id="po{$v.classid}" name="{$poname}"{if $disable} disabled{/if} onChange="javascript: check_options();"> {foreach from=$v.options item=o} <option value="{$o.optionid}"{if $o.selected eq 'y'} selected{/if}>{$o.option_name} {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} {else} {$o.price_modifier}% {/if} ) {/if} {else}{$o.price_modifier}%{/if}){/if}</option> {/foreach} </select> {/if}
__________________
X-Cart Gold 4.2.3
-----
PHP 5.2.17 | MySQL 5.1.52
Reply With Quote