View Single Post
  #3  
Old 09-16-2009, 02:24 PM
 
BritSteve BritSteve is offline
 

eXpert
  
Join Date: Apr 2006
Posts: 339
 

Default Re: Product Variants - Show Price in Drop-Down

Hi,

I had the same issue and added the prices to the end of the variant.

Try adding the code below in modules/Product_Options/customer_options.php

Find $variants = func_get_product_variants($productid, $user_account['membershipid']); around line 44 and add the following after it.

################################################## ##########################################
# Loop through product variants, get the price and add to the end of the drop down name
################################################## ##########################################
if ($variants)
{
foreach ($variants as $k => $v)
{
foreach($v['options'] as $k1 => $v1)
{
$product_options[0]['options'][$v1['optionid']]['option_name'] = $product_options[0]['options'][$v1['optionid']]['option_name'] . " $" . $v['price'];
}
}
}
################################################## ##########################################
# END price add to variants

Steve
__________________
Version 4.1.8 & 4.1.9
ezcheckout4.1.x
cdseolinks2
product_metatags41x
shipping_per_product41x

http://www.earthsmagic.com
Reply With Quote