3

I want to show Configurable Product Options on category Page for that i have added this code in my list.phtml. it shows the options of the configurable products.

<?php if($_product->isConfigurable()): ?>
                <?php $attributes = $_product->getTypeInstance(true)->getConfigurableAttributesAsArray($_product); ?>
                <?php foreach($attributes as $attribute): ?>
                    <ul><li><?php echo $attribute['label']; ?></li></ul>
                     <select name="super_attribute[<?php echo $attribute['attribute_id'] ?>]" id="attribute<?php echo $attribute['attribute_id'] ?>">
                        <option> <?php echo $this->__('Choose an option') ?></option>
                        <?php $values = $attribute['values']; ?>
                        <?php foreach($values as $value): ?>
                            <option value="<?php echo $value['value_index']; ?>" price="<?php echo $value['pricing_value']; ?>"><?php echo $value['label']; ?></option>
                        <?php endforeach; ?>
                    </select>
                <?php endforeach; ?>
<?php endif; ?>

But the problem is

1.how to change Product price according to selected options?

  1. In some products there are two configurable options and the values of second one depends on the First option Selected(on product page).

How to Do the same on List page?

closed as off-topic by Marius May 18 '15 at 11:17

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced OR seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Marius
If this question can be reworded to fit the rules in the help center, please edit the question.

1

I found the exact Solution here

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