Yearly Archives: 2020
I’m trying to get the quantities of a bundle product before added to cart with js, jquery, knockout js W or whatever can allow me to do this. I want to validate that user cannot add to cart if the qty of products added to bundle is not 7. I […]
I used a Plugin in a custom module to set the isAvailable function for CashOnDelivery to false when shipping method “flatrate_flatrate” is selected. file: /app/code/MyCompany/MyModule/Plugin/CashOnDeliveryPlugin.php < ?php namespace MyCompanyMyModulePlugin; use MagentoPaymentModelMethodAbstractMethod; use MagentoQuoteModelQuote; class CashOndeliveryPlugin { /** * @var MagentoCheckoutModelSession */ protected $_checkoutSession; /** * Constructor * * @param MagentoCheckoutModelSession […]
I am getting this error when trying to load the homepage of the website: a:4:{i:0;s:37:”Object DOMDocument should be created.”;i:1;s:13313:”#0 /var/www/vhosts/fakedomain.com/httpdocs/vendor/magento/framework/View/Element/UiComponent/Config/Reader.php(95): MagentoFrameworkViewElementUiComponentConfigDomMerger->getDom() any idea whats wrong or how to get around this?
I’ve seen some posts about this but can’t get to a conclusion. In a configurable product with dropdown all option appears (in stock and out of stock), what I need is to disable the ones out of stock so the client can see they exist but cannot click them. This […]