If you want to get bundle child product description on bundle parent product detail page in ‘DETAILS’ tab.
You can override attribute.phtml file in your theme and put below code at bottom of the file
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<?php if($_product->getTypeId() === 'bundle'){ $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product = $objectManager->get('Magento\Catalog\Model\Product')->load($_product->getId()); $selectionCollection = $product->getTypeInstance(true)->getSelectionsCollection($product->getTypeInstance(true)->getOptionsIds($product),$product); foreach ($selectionCollection as $proselection) { $option_product = $objectManager->get('Magento\Catalog\Model\Product')->load($proselection->getId()); ?> <div class="bundle-item-description"> <h3><?php echo $option_product->getName() ?></h3> <p><?php echo $option_product->getDescription(); ?></p> </div> <?php } } ?> |
If you want get query string params in controller file,...
Create di.xml and add the below code Magemonkey/Redirect/etc/frontend/di.xml [crayon-628382485b643030337713/] Create...
You can try below code to change local date to...
Step 1: First you need to add registration.php file in...
Step1 : Override message.js in current theme file on the...