Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product price override


shish

Recommended Posts

Hello everyone!

 

I am writing a simple JavaScript which will update my price automatically(I know there are addons but they dont work with the nature of my products) when the user enters amount, size etc etc. I want to know how do I override the product price before/after it is sent to the shopping cart?

 

Example: The product price is 10€. The user select some variatons and then the price is 22,40€. I want to send that price to the checkout instead of the 10€.

 

Any tips or help would be appreciated.

Link to comment
Share on other sites

If you are using the standard oscommerce options the (addon) ajax price update works fine on the dropdown select ?

 

Easy install when the option is selected on product_info.php the price is updated to reflect the option this is then passed to the shopping cart and then to the checkout.

 

Maybe I am misunderstanding !

 

Regards

Joli

To improve is to change; to be perfect is to change often.

 

Link to comment
Share on other sites

If you are using the standard oscommerce options the (addon) ajax price update works fine on the dropdown select ?

 

Easy install when the option is selected on product_info.php the price is updated to reflect the option this is then passed to the shopping cart and then to the checkout.

 

Maybe I am misunderstanding !

 

Regards

Joli

 

I'm not using the ajax price update because my products can't be properly defined by dropdowns, I have a mix of inputs, dropdowns etc. I'm just trying to figure out how to override the price..

Link to comment
Share on other sites

I've noticed $products_price variable in the product_info.php which outputs the price

 

<td class="td_right"><?php echo $products_price; ?></td>

 

Is that the variable that is responsible for the product price and if so, how do I change it?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...