Answer the question
In order to leave comments, you need to log in
Opencart2 not passing product option value to cart?
Added the "Color" option to the product, everything is displayed on the product card and the radio buttons are switched. But it does not get into the basket, respectively, and into the admin panel-orders too. It is written on the forums that when you add an option, it should automatically be displayed in the basket. This if does not work in the code:
<?php if ($product['option']) { ?>
<?php foreach ($product['option'] as $option) { ?>
<br />
<small><?php echo $option['name']; ?>: <?php echo $option['value']; ?></small>
<?php } ?>
<?php } ?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question