0

I have a configurable product with simple products in it(associated products). By default when you view the configurable product magento has not set any associated products as standard, so a price of $0 is shown.

To get rid of the $0 price, i thought about if it's possible to set a default/auto choosed associated product in a configurable product? Or just tell magento to automaticly always select the lowest priced associated product?

I have tried to do a jquery trick by autoselect the second option, but then the price is not updating automaticly anymore :/

Any suggestions?

1
  • I didn't get what is a standard associated product. Do you mean that everytime you access the tab Associated products there are none displayed even after you create a few ?
    – Niloct
    Nov 8, 2013 at 0:06

2 Answers 2

0

If it's showing $0, then for starters, you must have it setup incorrectly.

For example, let's say I'm selling a t-shirt. It's base price is $20, so that's what I use for the price of the configurable product. But for the XL version, the price is $25, so you should use $5 as the price variation.

If it shows a price of $0, then you must have set the price of the configurable products as $0.

If this doesn't suit your requirements, I can personally recommend Amasty's Pre Select extension, which will automatically select the specified option on the page load.

1

I have tried to do a jquery trick by autoselect the second option, but then the price is not updating automaticly anymore

You should fire event change to update price. Something like this using prototype:

$( attributeId ).setValue( attributeValue ).triggerEvent('change');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.