How can I go about setting up my layered navigation and category tree so the displayed products can be filtered by which child category they are in? I currently have every category in my tree is set to anchor and when I go to a given category page, all the […]
Magento1
Thanks in advance for your help! I am using the Magento Open Source ver 2.4.5 with the breeze-evolution theme from Swissup labs. Currently when I navigate from one page to another, the page does not fully load. For example, when i click on a Product, it navigates to the Product […]
I want to get active filters or all filters in my renderer. How can I get filter values in my renderer class because I want to add conditions based on these applied filters? Renderer Renderer Class
How do you programmatically assign simple product to configurable? What I tried: $configurableProduct = $this->objectManager->create('MagentoConfigurableProductModelProductTypeConfigurable'); $configurableProduct->setUsedProductAttributes($product, array($product_jsa_type_attribute_id)); $product->setNewVariationsAttributeSetId(4); $product->setAssociatedProductIds(array( $productObj->getIdBySku($ticketProduct['product_id']), $productObj->getIdBySku($couponProduct['product_id']), ));
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.
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 […]