Using this observer we can monitor the update or trigger any conditions on updating the carthere we’re setting the backorders on update Considering all the stocks on the inventory and store
Tag: Magento
Observer to set backorder on adding products to the cart
Observser Code to Update the backorder to the custom field and checkout pageAlso setting the price of the products to Zero if the item is not committed
API to Update NetSuite Order Id to Magento
Here we’re calling an external API on the Magento to update a custom field on the sales order table to fetch the NetSuite Order ID to Magento 2. routes.xml
How to host a Magento website on Hostgator server
o host a Magento website on a HostGator server, you need to follow these general steps: Sign up for a HostGator account: Go to the HostGator website and sign up for an account if you haven’t already. Choose a hosting plan that meets your needs. Set up your domain: If you already have a domain,… Continue reading How to host a Magento website on Hostgator server
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
Add Custom Field in customer registration frontend side form
To add address and country fields on the frontend custom form Add the below code in your customer_account_create.xml file. This Will add all Address Fields in the Registration Form in the frontend only
Get Customer Level price with quote(cart) observer
Here we may achieve the quote items and quote table data from an event triggered during the product is added to the cart