Here when there is a requirement for entering a table input of two or more fields the value of the table should be should stored as an array of objects with key and value pair format. This code stores the values in an array as objects from each row. Example: inputs variable selects the input… Continue reading Javascript to get values from an infinite input table of two inputs. An array of objects Magento 2
Tag: Magento
error code: INVALID_REQUEST error message: The request could not be understood by the server due to malformed syntax. Magento Error
This error is caused due to the signature method error or auth expired from the auth method provided, Recently we have noticed that the hmac_sha1 signature method has expired for some of the projects. it can be resolved by modifying the signature method to hmac_sha256 replace the ouath_signature_method to hmac_sha256. the error will be reolved
How to change PDF Invoice Logo, shipment logo in Magento 2
On the Admin sidebar, click Stores > Settings > Configuration. Then, look into the panel on the left, under Sales, click on Sales Open the Invoice and Packing Slip Design section. Then, do the following: To upload the Logo for PDF Print-outs, click Choose File. Choose the logo, then click Open To upload the Logo for HTML Print View, click Choose File. Choose the… Continue reading How to change PDF Invoice Logo, shipment logo in Magento 2
How to Enable and Submit Sitemap to Search Engines in Magento 2
This article will guide how to setup the sitemap in magento Step 1: Setting and Enable the SitemapEnable and finish all the XML Sitemap configuration to determine the limitation of sitemap files and how frequently the sitemap is updated. Step 2: Setting and Enable robots.txt (Optional)Enable and finish the Search Engine Robots configuration with instructions… Continue reading How to Enable and Submit Sitemap to Search Engines in Magento 2
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
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.
Create my account link dynamically
Here we will learn how to create an account link on my account menu section with a condition. For that, we have to assign the custom block for the navigation code for customer_account.xml code for the custom block –> Vendor/module/Block/Customer/link.php We check a custom condition and print the resultant.
How to Extend Layout in Magento 2
Layout customization includes multiple tasks that help you change any elements in your pages. To customize your layout, create extending and overriding layout files in your custom theme. Just add the next layout file in the layout folder like <folder> —Layout –layout1.xml > layout2.xml For each layout file that is included in the list:Layout handle… Continue reading How to Extend Layout in Magento 2