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

Fixing the way Product Options (Price Modifier) is Displayed?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-10-2008, 10:06 AM
 
egypt13 egypt13 is offline
 

Member
  
Join Date: Sep 2002
Location: Pheonix, AZ
Posts: 23
 

Default Fixing the way Product Options (Price Modifier) is Displayed?

When I add the price modifier product option to a product I want to sell by the each and by the case displays like this in the drop down menu:

Case / 12 each ( $+16.59)

Since the single item is $ 1.69 it adds +$16.59 to total up to $18.28 which is the correct sell price. The problem is that customers are confused by the ( $+16.59) and assume the case price is $16.59

So I need to remove the ( $+16.59) from being displayed in the product option so it just says:

Case / 12 each

I am assuming this is somewhere in /modules/product_options... somewhere

Any ideas???
__________________
Ian Winscom
BoxedGreens Organic Grocery
http://boxedgreens.com
http://blog.boxedgreens.com

-----------------------------------
X-Cart Version 4.1.9
Reply With Quote
  #2  
Old 07-21-2008, 09:50 AM
 
Thedae2k Thedae2k is offline
 

eXpert
  
Join Date: Jan 2004
Posts: 288
 

Default Re: Fixing the way Product Options (Price Modifier) is Displayed?

You would modify the skin1/modules/Product_Options/customer_options.tpl.

I believe this is the file you would edit and either remove this section or remove the {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} that is between the ( ) below.


{if $v.is_modifier eq 'T'}
<input id="po{$v.classid}" type="text" name="{$poname}" value="{$v.default|escape}" />
{else}
<select id="po{$v.classid}" name="{$poname}"{if $disable} disabled="disabled"{/if}{if $nojs ne 'Y'} onchange="javascript: check_options();"{/if}>
{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}
</select>
{/if}

This is not tested but rather a starting point.
__________________
X-Cart Pro 4.1.9
PHP5.2.5
MySQL 5.0.54
IIS/Apache/NGINX Webservers
Reply With Quote

The following user thanks Thedae2k for this useful post:
supercanon (10-03-2009)
  #3  
Old 03-09-2011, 05:28 PM
 
yulelogger yulelogger is offline
 

Newbie
  
Join Date: Mar 2011
Posts: 5
 

Default Re: Fixing the way Product Options (Price Modifier) is Displayed?

Quote:
Originally Posted by egypt13
When I add the price modifier product option to a product I want to sell by the each and by the case displays like this in the drop down menu:

Case / 12 each ( $+16.59)

Since the single item is $ 1.69 it adds +$16.59 to total up to $18.28 which is the correct sell price. The problem is that customers are confused by the ( $+16.59) and assume the case price is $16.59

So I need to remove the ( $+16.59) from being displayed in the product option so it just says:

Case / 12 each

I am assuming this is somewhere in /modules/product_options... somewhere

Any ideas???

Hello Egypt13,
I would like to do the same thing.
Just wondering if removing the code that was referenced by Thedae2k worked or not? Seems like removing code is not such a great idea?
__________________
X-cart Ver 4.4.2
No Add ons
Reply With Quote
  #4  
Old 03-16-2011, 11:55 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Fixing the way Product Options (Price Modifier) is Displayed?

You can comment out the code using Smarty comments tags instead of removing it: {* commented code *}
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #5  
Old 03-17-2011, 08:38 AM
 
yulelogger yulelogger is offline
 

Newbie
  
Join Date: Mar 2011
Posts: 5
 

Default Re: Fixing the way Product Options (Price Modifier) is Displayed?

Thank you Qualiteam!

I would like to add that Roman Nikiforov (from Helpdesk) suggest's:

"The 'price modifiers' is the type of a product options which changes the 'parent' product type
The product variant - is a separate product with its own price.
For more detailed information please refer to the following article:
http://help.qtmsoft.com/index.php?title=X-Cart:Product_Options

and see the following chapter:
http://help.qtmsoft.com/index.php?title=X-Cart:Product_Options#Managing_Product_Variants"

So, I understand that to mean setting up my products (single units and cases) in this scenario as a variant is more appropriate than an price modifier- I suppose? Also, if it is a variant, the price is not displayed next to the product in the drop down!
__________________
X-cart Ver 4.4.2
No Add ons
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 03:46 AM.

   

 
X-Cart forums © 2001-2020