I want to create the category attribute with pagebuilder button. I have tried with below code but its not working. After save the category it is showing wysiwyg editor instead of pagebuilder button. i have used magento version is 2.4.5-p1 which is upgaded from 2.3. Same code working on fresh […]
Magento1
product page where the attribute (product attribute) with the multi-select option I need to convert that multi-select in the checkbox so the user can easily check more than one attribute without ctrl+click to select an attribute.
di.xml <type name="MagentoCatalogModelResourceModelProductCollection"> <plugin name="beforeproductCollectionPlugin" type="VendorModulePluginCollectionPlugin" /> </type> CollectionPlugin.php class CollectionPlugin { /** * Remove product which price is less than one. * * @param Collection $subject * @param bool $printQuery * @param bool $logQuery */ public function beforeLoad( MagentoCatalogModelResourceModelProductCollection $subject, $printQuery = false, $logQuery = false ) { if […]
I changed the product price in Controller, but i found the product ‘s theme shown as the default theme but not the theme defined in “Schedule Design Update ” section the codes is as bellows: public function getProductBySku($sku) { //using MagentoCatalogModelProductRepository $productRepository try { $_product = $this->_productRepository->get($sku); } catch (Exception […]
The shipping section doesn’t display a new set of delivery methods when country is changed. The methods seen in the image below are meant for US address that I entered before the current address in Puerto Rico. Is there any setting in Magento to make this automated?
I’m working on header autosuggest search, keywords that show the popularity of search suggestions based on old customers in that search suggetions. like if we search shirt then it suggest t-shirts, boys shirt, and casual shirts bla bla with the terms count. When we select a keyword its lands on […]
Why do some Magento 2 installations encounter database-related errors, such as “SQLSTATE[HY000] [2002] Connection refused” or “Table ‘magento.x’ doesn’t exist”?strong text
I want to create dummy reviews for some products in Magento 2 with stars and images and want to import the data by CSV. Can anybody suggest to me the best way to do that?
After migrating the e-commerce server, at the time of payment the payment is made correctly, but as a response I get “Unique constraint violation found”, at the time of migration I got SQL errors: #1 ALTER TABLE `mg_quote_item` MODIFY COLUMN `item_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT "Item ID", ADD […]