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

Steps to follow in GCP on WordPress PHP updates.

Log into google cloud console and go to your project.  Go to compute engine section and locate the virtual machine. Instance associated with WordPress website.  Click on the SSH button next to the VM instance to open a secure shell connection to the server  Then use the required commands to install the latest version of… Continue reading Steps to follow in GCP on WordPress PHP updates.

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