manually add “elasticsearch” to node <elasticsearch7_server_hostname> in vendor/magento/module-elasticsearch-7/etc/config.xml disable elasticsearch6 and enable elasticsearch7 module bin/magento module:enable {Magento_Elasticsearch,Magento_InventoryElasticsearch,Magento_Elasticsearch(version)} bin/magento module:disable Magento_Elasticsearch(previous version)
Category: Magento
To Remove My subscription from the My Account section.
app/design/frontend/vendorname/themename/Magento_Theme/layout/default.xml
Gap Property
CSS Flexbox and CSS Grid are fantastic tools available for managing layout on the Web. Flexbox handles single-dimensional layouts very well, while CSS Grid handles two-dimensional layouts with columns and rows. Often we want to add space between the items within our layout. This kb will show how to add space between flex items using… Continue reading Gap Property
jquery, add/remove the class when the window width changes
// Returns width of browser $( window ).width(); if ($(window).width() >= 768) {$(‘.footersection .accordion-item .accordion-collapse’).removeClass(‘collapse’);$(‘.video-section .accordion-item .accordion-collapse’).addClass(‘show’);} else {$(‘.footersection .accordion-item .accordion-collapse’).addClass(‘collapse’);$(‘.footersection .accordion-item #collapseOne,#collapseThree,#collapseTwo’).removeClass(‘show’);}
Customer Updation API from NetSuite to Website
CODE:-
Check if product is new in Magento based on the calender Date
We must need to create a helper for executing this functionality And in the list phtml file we have to to add the helper and for the condtion we need check the condition
Ajax code to submit given details
Adobe Commerce Netsuite Item Integration
Kit item and inventory item is integrated with this process. The kit will be mapped as a Bundle product and the Inventory item is mapped as a Simple product in Adobe commerce. The items are shown as matrix items on the Website. In NetSuite, an attribute sublist in the item record is used to store… Continue reading Adobe Commerce Netsuite Item Integration
How to set default shipping address of the customer Magento 2?
Set Default shipping address id of the customer in Magento 2 using Address Repository Interface. You required Customer Id to set shipping address and address id you want to assign it. $address->setIsDefaultShipping(true) set the current address id to default address for the given customer.
How to align two contents in the same horizontal line in DOM pdf on magento2
Solution The advanced CSS are not supported in the DOM pdf creator extension in magento2.So we have to find an alternative method to show the contents in the same horizontal line. So for this, we can use a table structure. The structure should be Through this, we can align contents horizontally on the same line… Continue reading How to align two contents in the same horizontal line in DOM pdf on magento2