Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Easy Question - But Need Fast

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-29-2009, 10:06 AM
 
club13 club13 is offline
 

Member
  
Join Date: Jul 2008
Posts: 28
 

Default 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..
__________________
4.1.10

http://www.club13.com
Reply With Quote
  #2  
Old 09-29-2009, 10:20 AM
 
jdiehl jdiehl is offline
 

eXpert
  
Join Date: Dec 2003
Location: Kansas City, MO
Posts: 270
 

Default 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.
__________________
Jason Diehl

Finding Cures for Your Online Headaches: http://www.internetmedicineman.com/
Reply With Quote
  #3  
Old 09-29-2009, 12:58 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default 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}
__________________
xcart 5.1.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:34 AM.

   

 
X-Cart forums © 2001-2020