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)
-   -   Easy Question - But Need Fast (https://forum.x-cart.com/showthread.php?t=49944)

club13 09-29-2009 10:06 AM

Easy Question - But Need Fast
 
I was wondering how to take of the prices shown the product options drop down menu. For example. (-$14.00) next to number of units..

jdiehl 09-29-2009 10:20 AM

Re: Easy Question - But Need Fast
 
Just looking at a version 4.2.2 installation which is different, but in this area might be similar. I opened:
skin1/modules/Product_Options/customer_options.tpl

And around line 50 I see:
Code:

                {strip}
                  {$o.option_name|escape}
                  {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}


As you can tell it prints the option name first and then prints the modifier depending on if it's a price or percentage. Just surround that with {* *} to make it a comment, save and test. (don't just deleted it it's handy to be able to put it back.

ARW VISIONS 09-29-2009 12:58 PM

Re: Easy Question - But Need Fast
 
skin1/modules/Product_Options/customer_options.tpl

backup first!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

change this

{foreach from=$v.options item=o}
<option value="{$o.optionid}"{if $o.selected eq 'Y'} selected="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 plain_text_message=1}{else}{$o.price_modifier}%{/if}){/if}</option>
{/foreach}

to this

{foreach from=$v.options item=o}
<option value="{$o.optionid}"{if $o.selected eq 'Y'} selected="selected"{/if}>{$o.option_name}</option>
{/foreach}


All times are GMT -8. The time now is 11:57 PM.

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