Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quick fix on Prefix


Dive Right In Scuba

Recommended Posts

Posted

In Products/Attributes, the prefix + means it adds the original price and the price in the drop down menu...

 

Well if you look here:

http://www.diverightinscuba.com/catalog/pr...roducts_id/2016

 

Ihave a different price in the drop down and I need that price to ring up when someone picks it....as it is, I left the prefix empty, and its subtracting the 2 prices....

 

Any help is greatly appreciated!!

 

Mike

Posted
In Products/Attributes, the prefix + means it adds the original price and the price in the drop down menu...

 

Well if you look here:

http://www.diverightinscuba.com/catalog/pr...roducts_id/2016

 

Ihave a different price in the drop down and I need that price to ring up when someone picks it....as it is, I left the prefix empty, and its subtracting the 2 prices....

 

Any help is greatly appreciated!!

 

Mike

 

 

Bumpski.....someone please help...I cant find the answer anywhere.....what are the prefix codes...

  • 2 months later...
Posted
Bumpski.....someone please help...I cant find the answer anywhere.....what are the prefix codes...

 

I'm having a similar issue on my site... but yours might be solved by simply leaving the price as $0 originally, then creating the price based only on attributes.

 

www.tcsnaturals.ca is working accurately

I do that fine on both my sites. The only problem is that I wanted the + not to show up on some of the items and leaving it blank.. as you said... turns it into subtract.

Posted

In products_info.php find this:

 

 

		  if ($products_options['options_values_price'] != '0') {
		$products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';
	  }

 

and replace with that:

 

if ($products_options['options_values_price'] != '0') {
	if ($products_options['price_prefix'] ==  '+') {
	$p_o_prefixpatch = '';
	} else {
	$p_o_prefixpatch = '-';
	}
	$products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $p_o_prefixpatch . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';
}

 

This will leave the - for subtractions and get rid of the + for additions. Make sure to keep a backup of the original ... ;)

Even at a Mensa convention someone is the dumbest person in the room.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...