Hot answers tagged

1

// get cart items $items = $cart->getItems(); // get custom options value of cart items foreach ($items as $item) { $options = $item->getProduct()->getTypeInstance(true)->getOrderOptions($item->getProduct()); $customOptions = $options['options']; if (!empty($customOptions)) { foreach ($customOptions as $option) { ...


1

This code works for this problem <div class="qty-field"> <label for="qty"><?php echo $this->__('Qty:') ?></label> <div class="qty-holder"><input type="text" name="qty" id="qty_<?php echo $_product->getId(); ?>" maxlength="6" value="<?php echo $product->getProductDefaultQty() * 1 ?>" title="<?php echo $...


1

Go to Admin->Store->Configuration->Sales->Checkout->Shopping Cart And set the Parent Product Thumbnail as Grouped Product Image Check the below screenshot Clear the cache and check.


1

learn about system.xml click here link-1 and Link-2 I follow Magento Default way to send email. app\code\VendorName\RequestForQuote\etc\adminhtml system.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"> <system&...


1

Checkout and cart pages should never be cached in Varnish. Look at the default.vcl config that M2 creates. Note this line. # Bypass shopping cart, checkout and search requests if (req.url ~ "/checkout" || req.url ~ "/catalogsearch") { return (pass); } That means that the checkout and the search should never be cached in varnish. Did ...


Only top voted, non community-wiki answers of a minimum length are eligible