HeyItsCory Posted March 11, 2007 Posted March 11, 2007 I'm working on a teak patio furniture site that wants to drop-ship rugs from one of the companies it deals with in real life on it's website. There are probably 1000+ combinations of lines, styles, colors and sizes. We've decided it would be easiest to sort the lines and styles as sub categories in the category rugs and on the product page allow them to select the size. The problem I'm having is when the person is on a page for a particular rug and it's time to pick a size. I have the sizes all loaded up as attributes, but I want the default price for the default size to change as the customer chooses a different size. How do I do this?
Nullachtfuffzehn Posted March 11, 2007 Posted March 11, 2007 You can add the additional prices at the products attributes section. When a customer chooses this option, the price will be automatically raised by the additional price of the option.
vasttech Posted March 11, 2007 Posted March 11, 2007 I assume when you say "default price" you are referring to the price that is displayed when they initially reach the product info page, without any attributes selected. If you are looking to have that update on the fly as the attributes are changed you will need to use javascript, and in particular AJAX to query the database and update the price without refreshing the page. Since the solution is fairly complex in nature, it would probably be better to search on Google for AJAX and PHP. It is a fairly common solution, just requires a little programming know how (okay maybe a little more than a little)... osCommerce Knowledge Base osCommerce Documentation Contributions
mugitty Posted March 11, 2007 Posted March 11, 2007 Are you looking for something like this? Options - Price Update It changes the item's original price to reflect the new total with the selected options ... if you want to REALLY see something that doesn't set up right out of the box without some tweaking, try being a Foster Parent!
godkevin Posted March 17, 2007 Posted March 17, 2007 Are you looking for something like this?Options - Price Update It changes the item's original price to reflect the new total with the selected options has anyone gotten this contrib to work? I jsut tried it on a fresh copy of osc and it does not work, it also tells you to search for strings that are not available. When you manually search the string that appears to be correct, and after adding the new strings, just get an error, Fatal error: Call to undefined function: displayprice() in once i change the displayPrice to which I thought was wrong to display_price, the page shows, but the prie updates do not work at all. Any ideas?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.