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

Published
Categorized as Magento

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’);}

Published
Categorized as Magento

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

Published
Categorized as Magento

How to update multiple invoices array.

Solution We can use the foreach to update the multiple invoices array. On the constructor use the function On the execute function foreach each invoice and set the value. So through this, we can update multiple invoices. Thank you.

Published
Categorized as Magento