I get “The requested class did not generate properly, because the ‘generated’ directory permission is read-only” during setup:di:compile even though the folder has 777 permission. I even tried with sudo, but I get the same error.
Magento
I am developing a website http://canadadrugsinc.com/ similar to https://onlinegenericmedicinestore.com/ Before checkout page I need an extra page “Medical Condition” who takes few information and one file (Medical Prescription) from the customer same as ADC(alldaychemist) My Magento version is 2.1 and Used Theme is Bewaqoof.
Block-> <?php namespace Block; use MagentoPaymentApiPaymentMethodListInterface; class AllPayment extends MagentoFrameworkViewElementTemplate { protected $_paymentConfig; protected $_scopeConfigInterface; public function __construct( MagentoBackendBlockTemplateContext $context, MagentoPaymentModelConfig $paymentConfig, MagentoFrameworkAppConfigScopeConfigInterface $scopeConfigInterface, array $data = [] ) { $this->_paymentConfig = $paymentConfig; $this->_scopeConfigInterface = $scopeConfigInterface; parent::__construct($context, $data); } public function getAllActivePaymentMethods() { $activePaymentMethods = $this->_paymentConfig->getActiveMethods(); $activeMethods = array(); if […]
I need to create an indexer for cart price rules. I decided to iterate the values from sales_rules table and extract the products from conditions_serialized coloumn. My indexer file is like below.i Will share the executeFull method only here public function executeFull(){ $this->connection->truncateTable( $this->getTable('salaesrule_product_reminder_index') ); $salesRules = $this->ruleFactory->create()->getCollection()->addFieldToFilter('is_active', '1');; foreach […]
I trie to overrule Magento/Sales/Model/Order/ShipmentFactory.php and i have code below, but i get error: main.CRITICAL: ReflectionException: Class “JilcoShipmentbugModelOrderShipmentFactory” does not exist in /home/jilco/public_html/vendor/magento/framework/Code/Reader/ClassReader.php:34 registration.php <?php use MagentoFrameworkComponentComponentRegistrar; ComponentRegistrar::register(ComponentRegistrar::MODULE, 'Jilco_Shipmentbug', __DIR__); DI.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <preference for="MagentoSalesModelOrderShipmentFactory" type="JilcoShipmentbugModelOrderShipmentFactory" /> </config> Module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"> <module name="Jilco_Shipmentbug" /> […]
I am looking to setup a Shop on my Facebook page where it has all the products from my site on Facebook. Also I want to setup a Google Shopping feed from our store with Selected Prodcuts (not all products, will vary depending from time to time), also for adwords, […]
What can I do if I want to deselect the shipping method when the page is reloaded or if you go back to cart/categories/etc and after you go back to checkout? Right now if I selected a shipping method will remain selected until I change the county. Until now I […]
I sold three items 136,50 100,00 76,00 For a Total of 312,50 € The customer applied a fixed amount discount code for the cart of 300 € She correctly paid with Paypal 12,50 € The invoice shows 312,50 € subtotal, after applied discount of 300 €: Grand Total of 47,89 […]