Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Options with pricing - instead of +150....


sumario

Recommended Posts

...why not just give the overall price.

 

Hi,

 

I was wondering if it is possible to give the whole price in an option instead of +?60.

 

For example:

 

A bed costs ?60 and there is an option for a bigger sizes that cost ?40 extra. Instead of that option saying +40, can i make it say ?100, which is the total price of the original and option.

 

Thankyou.

Link to comment
Share on other sites

yes there is. my method is probably long winded and someone may give better advice as i am pretty new but i did it this way

 

first i removed all together the +50 +100 etc so all the customer sees is large medium small etc

(heres how to remove http://www.oscommerce.com/forums/index.php?sho...137030&hl=)

 

then get the contribution http://www.oscommerce.com/community/contributions,1385

 

i then set my base price to ?0 and added the hidden small +50 medium +80 large+100 but all the customer sees is small, large etc.

 

as small is auto selected as first option the price says ?60 if they select medium it auto changes the ?60 to ?80 on screen so the customer knows the prices of each option without the need to go to checkout and without the need for the +50 +80 etc.

 

cant help anymore as i've only been at oscommerce a week or so meself lol but thats how i got around that.

 

if you dont mind the +50 etc then you could allways set the bed price to ?0 and have the options for full price instead of base+size=total price.

you could have bed = ?0 and then small +60 medium + 80 large +100 that way the options control the whole price not just part of it

Link to comment
Share on other sites

you could also do the same as above remove options and get price update.

 

set the base small size to ?60 and say if you require medium or large select below.

again the +60 etc is removed so when they select medium the ?60 stored for the small bed will change to the new price which would be ?80.

 

its a very good contrib

Link to comment
Share on other sites

ok let us know how you get on.

 

i dont like these forums for that. they arent really modded well enough. the amount of times i see someone with a problem and then next post they say it doesnt matter i sorted it. it helps when you say HOW you sorted it then if anyone else gets same problem they can fix it without the need to post a repeat problem and wait several days for a response.

 

in fact i feel a forum thread comming on about how to improve things in this extremely large community lol

Link to comment
Share on other sites

ok let us know how you get on.

 

i dont like these forums for that. they arent really modded well enough. the amount of times i see someone with a problem and then next post they say it doesnt matter i sorted it. it helps when you say HOW you sorted it then if anyone else gets same problem they can fix it without the need to post a repeat problem and wait several days for a response.

 

in fact i feel a forum thread comming on about how to improve things in this extremely large community lol

 

lol

 

ok, with this contribution you mentioned, it makes several references of:

 

$osC_Currencies

 

in the product_info.php page, but that doesnt exsist!

 

 

Search for:
 $products_price = '<s>' . $osC_Currencies->displayPrice($product_info['products_price'], $product_info['products_tax_class_id
Add the following line afterwards:
 $nuPrice = $currencies->display_price($new_price, tep_get_tax_rate($product_info_values['products_tax_class_id']));

 

What did you do with this code?

 

Thankyou.

Link to comment
Share on other sites

guess its talking about this line:

 

 $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';

 

 

Thats confusing.

Link to comment
Share on other sites

http://www.bedmakeruk.com

 

 

 

I think my brain has worked to hard today....

 

i cant seem to add this line:

 

  $nuPrice = $currencies->display_price($new_price, tep_get_tax_rate($product_info_values['products_tax_class_id']));

 

after this:

 

  $products_price = '<s>' . $osC_Currencies->displayPrice($product_info['products_price'], $product_info['products_tax_class_id

 

where in reality the full line is:

 

	  $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';

 

It cant be this can it?:

 

	  $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id $nuPrice = $currencies->display_price($new_price, tep_get_tax_rate($product_info_values['products_tax_class_id'])) '])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';

 

 

If it is telling me that, it is completey wrong lol. head hurts now. :)

Link to comment
Share on other sites

ok this is what i got for that line:

 

	  $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . $nuPrice = $currencies->display_price($new_price, tep_get_tax_rate($product_info_values['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';

 

But, i saved changes and tested it on the site. the subtotal always stays on 0! and its in $ lol

Link to comment
Share on other sites

been at it for nearly an hour and i seriously dont have a clue how to fix this. i found the bit to change the currency sign. but the total amount is always no $0.

 

 

:wacko: save me for i go crazy lol

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...