About Club osCommerce

Showcasing osCommerce - the good, the bad and the ugly!

StumbleUpon It! DIGG It!

Update price based on attributes

Written By Gary on Feb 07 2008 ·

Lilotanni asks;

When there are attributes assigned to a product and the attribute has money value to them. I wanted the base price to update automatically before the customer add it to cart.

As in if the base price is $200.00 and the attribute is -$10.00, when the customer chooses -$10.00, the displayed price would changed to $190.00 and so on if there are more attributes. I've been trying to do that and have gotten no where. Could you help me out?

Well, you need to use javascript.  I'd have had a go at using jQuery to update the price based on attributes, but even easier - there is already an existing contribution!

Check out http://www.oscommerce.com/community/contributions,1385 - I used the Attrib.Price Update 1.4 version and dropped in the product_info.php page directly.

It worked first time :)  Good luck with your osCommerce Store.


Buy Gary A Beer?
Buying me a "beer" helps me to keep my contributions updated and keep this blog alive. Cheers!


No Comments

No comments yet.

Leave a comment

RSS feed for comments on this post · TrackBack URL

Hot 100 osCommerce Shops

View the osCommerce HOT 100These are the best looking, most exceptional osCommerce Stores as voted for by you.

New to osCommerce - get inspiration from these beautiful shops. Reckon your site has what it takes to become a member of the HOT 100? Submit it!