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

Displaying (+$xx.xx) with Variants

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-14-2005, 08:24 AM
 
mustang mustang is offline
 

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

Default Displaying (+$xx.xx) with Variants

We need to use Variant options to track separate sku's and inventory. However, we also want to display (+$xx.xx) in the Option's dropdown menu...the same way it does when an option is a Modifier.

Has anyone done this or know how to do this? I'd appreciate your insight!
__________________
X-Cart Gold 4.2.3
-----
PHP 5.2.17 | MySQL 5.1.52
Reply With Quote
  #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
  #3  
Old 03-14-2005, 11:01 PM
 
mustang mustang is offline
 

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

Default

Anyone? Looks like I'll may just ask XC support about it.
__________________
X-Cart Gold 4.2.3
-----
PHP 5.2.17 | MySQL 5.1.52
Reply With Quote
  #4  
Old 03-16-2005, 07:50 PM
 
jdiehl jdiehl is offline
 

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

Default Maybe

I'm new to this but I happened across this mod in the "Custom Mods" Section that I am going to try to implement myself. I think this is what you are looking for, sorry if I am no help.

http://forum.x-cart.com/viewtopic.php?t=11022
Reply With Quote
  #5  
Old 03-16-2005, 07:52 PM
 
jdiehl jdiehl is offline
 

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

Default Oh yeah

Don't Forget

I noticed you are on 4.0.12. When you are performing the mod make sure to read the entire post there are some changes to the mod to get it to work in 4.0.12.
__________________
Jason Diehl

Finding Cures for Your Online Headaches: http://www.internetmedicineman.com/
Reply With Quote
  #6  
Old 03-16-2005, 08:23 PM
 
mustang mustang is offline
 

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

Default

Thanks Jason. I came across that thread while searching too. Unfortunately, it does not address the same issue we're facing here.

When you create a "Modifier" product option in xc with a dollar amount assigned to it, the option dropdown will show ( +$xx.xx).

However, when you create a "Variant" product option in xc with a dollar amount assigned to it, the option dropdown does not show ( +$xx.xx).

In our case, we need to use the Variant method since it allows different skus to be assigned to each possibly option selection. the Modifier method does not support different skus for each option. The downside to using varaints is the customer cannot readily see the extra price of each option without first selecting the option and watching the price dynamically change.

We've submitted this to xc to modify for us. Of course, it has taken 2 days just to get the right person to look at the issue. It will probably take another 3 days just to get the quote! They ask a question...we respond in minutes...then we get another follow-up question an entire day later! The xc customizaton services can definately use some adjustments to streamline the entire process. Different time zones can sometimes be challenging. But I have not had such problems working with other businesses on the other side of the world. XC shoudn't be any different.
__________________
X-Cart Gold 4.2.3
-----
PHP 5.2.17 | MySQL 5.1.52
Reply With Quote
  #7  
Old 03-17-2005, 05:54 AM
 
jdiehl jdiehl is offline
 

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

Default

Okay I understand. I had not gotten to doing that mod or looking at in detail, I only made a point of remembering it because I need it on my store, but there are other mods I am trying to install currently.

From what you are saying our store also would benefit from the "Variant" Product Option, but I might get it to work with the "Modifier" if it means I can use that custom mod.

With our store we have products such as a set of Rocker Panels, but they come in different sizes for a given application. Each different size has a different sku, but I'd rather display the "From" pricing like shown in that mod. So I think I'll just have to make do with the "Modifier".

Thanks for clarifying for me, it will save me some time later on.
__________________
Jason Diehl

Finding Cures for Your Online Headaches: http://www.internetmedicineman.com/
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 07:44 AM.

   

 
X-Cart forums © 2001-2020