Skip to main content
correct name
Source Link
Khoa TruongDinh
  • 32.3k
  • 11
  • 90
  • 156

Koha'sKhoa's second option is the preferred one. Anyways, this sometimes does not work for bundles. There you have to also carefully check the bundles option's and quantities.

The logic for the default quantity could be found in

\Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Option::getDefaultValues

In my case a required option did not have a default option, leading to a zero default quantity.

Koha's second option is the preferred one. Anyways, this sometimes does not work for bundles. There you have to also carefully check the bundles option's and quantities.

The logic for the default quantity could be found in

\Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Option::getDefaultValues

In my case a required option did not have a default option, leading to a zero default quantity.

Khoa's second option is the preferred one. Anyways, this sometimes does not work for bundles. There you have to also carefully check the bundles option's and quantities.

The logic for the default quantity could be found in

\Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Option::getDefaultValues

In my case a required option did not have a default option, leading to a zero default quantity.

added 99 characters in body
Source Link
Alex
  • 14k
  • 19
  • 83
  • 167

Koha's second option is the preferred one. Anyways, this sometimes does not work for bundles. There you have to also carefully check the bundles option's and quantities.

The logic for the default quantity could be found in

\Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Option::getDefaultValues

In my case a required option did not have a default option, leading to a zero default quantity.

Koha's second option is the preferred one. Anyways, this sometimes does not work for bundles. There you have to also carefully check the bundles option's and quantities.

The logic for the default quantity could be found in

\Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Option::getDefaultValues

Koha's second option is the preferred one. Anyways, this sometimes does not work for bundles. There you have to also carefully check the bundles option's and quantities.

The logic for the default quantity could be found in

\Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Option::getDefaultValues

In my case a required option did not have a default option, leading to a zero default quantity.

Source Link
Alex
  • 14k
  • 19
  • 83
  • 167

Koha's second option is the preferred one. Anyways, this sometimes does not work for bundles. There you have to also carefully check the bundles option's and quantities.

The logic for the default quantity could be found in

\Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Option::getDefaultValues