Change the cart to show the number of products in the cart

sometimes we need to show only the cart qty for the number of items in the cart for this we need to change the settings on stores>configuration>sales>checkout>my cart links Change the display cart option to display the number of items in the cart

How to create image upload field in an admin form

We’ll look at how to use a UI Component to submit an image or file into a custom module. In the Magento 2 Admin form, we will include an Image Uploader field. We will only highlight the necessary files and not the entire module. We’ll presume the Magento 2 backend module is already in place.… Continue reading How to create image upload field in an admin form

Add Magento 2 Visual Swatch and Text Swatch Attribute Options Programmatically

Prepare the attribute options data: Create an array of attribute options data that you want to import. Each option should include the necessary information such as the option label, swatch value (for visual swatch), and any other relevant details. For example: php Copy code $attributeOptions = [ [ ‘label’ => ‘Red’, ‘value’ => ‘red’, ‘swatch_value’… Continue reading Add Magento 2 Visual Swatch and Text Swatch Attribute Options Programmatically

Backorder Functionality-Magento

Backorders in Magento 2 Backorders functionality is supported by Magento 2 out-of-the-box. Go to Stores – Configuration – Catalog – Inventory – Product Stock Options tab. In the ‘Backorders’ section select the necessary option: No backorders disables backorders in your store; Allow Qty Below 0 shows the product as In Stock even when the product reaches qty = 0;… Continue reading Backorder Functionality-Magento