Preconditions (*) 1. Magento/product-community-edition 2.3.4 2. PHP 7.3 3. ionCube 10.3.9 Summary (*) When I’m using ionCube Encoder for encoding of custom modules then Magento not generating classes correctly. I have few type of errors. When I trying to extent MagentoFrameworkDBAdapterPdoMysql public function query($sql, $bind = []) { ... then […]
Magento2
I am trying to save custom options(drop_down type) for a specific product. In my case I need add custom option in loop. My code is here $json ='{"productID":"1","productPrice":"5585.00","productDetails":{"productImage":"https://development.modeconfigurator.com/eCommerce/backdrop.jpg","TABLE TOP":"COPPER DISTRESSED","TABLE FRAME":"RAL 5024 PASTEL BLUE"},"_":"1583172411557"}'; $jsonDecode = json_decode($json, true); foreach ($jsonDecode["productDetails"] as $key => $value) { $options = [ 0 =>[ […]
I have an unusual problem with a range of items on my Magento store that after a few days, disappear from the category pages. If I go into the back end, disable those specific items and then re-enable them again, once Magento re-indexes the products appear again (no manual re-index […]
Hi I want to save a shipping address attribute by observer sales_model_service_quote_submit_before Bellow My observer: public function execute(Observer $observer) { $quote = $observer->getEvent()->getQuote(); $fields = $this->fieldsManagement->getByQuoteId($quote->getId()); $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $resource = $objectManager->get('MagentoFrameworkAppResourceConnection'); $customer_res = $objectManager->create('MagentoCustomerApiAddressRepositoryInterface'); $customer = $customer_res->getById(101); $shippingAddress = $quote->getShippingAddress(); $shippingAddressExtensionAttributes = $shippingAddress->getExtensionAttributes(); if ($shippingAddressExtensionAttributes) { $customField = $shippingAddressExtensionAttributes->getDistance(); […]
Just as the title says, how do I get a product’s category name or id when I get that product’s information? I’m querying for a product’s information via catalogProductInfo, and I am also passing in a list of additional_attributes (which includes categoryId). However, the value for every product, no matter […]
I want to add my custom fields and edit grids in admin sales order create page. The layout file consist of blocks and child blocks (link to layout). I would like to add my block after ‘search’ block. Sadly I can’t do this because it is child of ‘data’ block […]
I want to create a custom product attribute for weights, I want a text field and dropdown with weight units Grams, Kgs, carat, lbs, mg, etc in the dropdown and same for heights. How can I archive this thing using custom attributes? Magento admin -> Catalog -> Products -> product […]
guys. I’ve spent more than a week to solve the problem with URL’s in my Multiple Stores in Magento Community 2.3.2, but I got nothing. What I need: URL structure: example.com/store_name/store_viewname instead of typical example.com/store_viewname offered by Magento 2 with “Add Store Code to Urls” activated. What I’ve done: 1) […]
I have Magento 2.3 the drop down menu on the Desktop sometime not working and on mobile not open. and if open same time it shows sam this image how to solve this .??