In Magento 2 I have two stores with “add store code in url” option enable. Store code 1 = “fr” Store code 2 = “es” I want to automatically add default store code in url: Redirect http://mywebsite.com to http://mywebsite.com/fr/ Actually when I visit http://mywebsite.com I stay to this url and […]
Magento2
I want to remove the wishlist products that are added to the cart. I’ve followed this link: Keeping wishlist items for keeping the wish list items after being added to the cart.i have set my $delete to true as shown in the code below but the product isn’t removed from […]
I’m trying a PUT on Magento 2 REST API through Postman like this: https://domain/rest/V1/products/IP_X With only a price change on the JSON content. I’m getting the following error message: { "message": ""%fieldName" is required. Enter and try again.", "parameters": { "fieldName": "product" } } The REST API spec indicates the […]
I have added a custom product attribute via code, using InstallData.php public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context) { $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]); $eavSetup->addAttribute( MagentoCatalogModelProduct::ENTITY, 'hts_code', [ 'type' => 'text', 'backend' => '', 'frontend' => '', 'label' => 'HTS Code', 'input' => 'text', 'class' => '', 'source' => '', 'global' […]
I have a new installation of magento (haven’t gone live yet) and just upgraded to the latest 2.4.7-p2 version. I have followed all the system requirements and upgraded from php v8.1 to 8.3 as required by the magento system requirements. When I was testing the checkout process I was presented […]
I am having issues with my company’s Magento test site. The issues are when searching using Elastic search, the resulting page is a blank page. Then, when I look for relevant errors in various logs, I see the following PHP error in the /var/log/httpd/error_log file: [php7:error] [pid 22228] [client xx.xxx.xxx.xxx:xxxxx] […]
I have a Vimeo video URL. But, I can’t able to add in my custom page. How to load and play on the custom page?
My magento 2.3.3 theme provides me single select from same category or attribute. Here if i select a sub category all the other categories will get disappears because it is single select. But i want is a multi select filter where i can filter multiple sub categories and attributes. Like […]
Performance is not a luxury in eCommerce. A slow Magento store quietly kills conversions, rankings, and customer trust. Continue reading on Medium »