We have created a custom field in the quote table and saved the value. This post will create a field in the sales_order table to save a custom. We are often required to save additional […]
Category: Cart
Magento 2: Add Product to Cart With Custom Price
In real-world scenarios, very often, we need to change the price at the time of adding items to the cart. In other words, we allow the vendors to sell as a sample using a sample […]
Magento 2: Apply sorting to street address on shipping form
We have sorted fields on the post – https://sbdevblog.com/magento-2-apply-sort-order-on-shipping-address-at-checkout/ However, there is limitiation on the street fields. We can’t sort the street field by using the layout file. Then there must be some way to […]
Magento 2: Apply Sort Order on Shipping Address at Checkout
Checkout is an essential part of e-commerce. The revenue is generated from the checkout itself. Hence, it is necessary to organise the checkout reasonably. Fields on shipping forms can vary from business to business and […]
Magento 2: Add Custom Validation Rules on Checkout
Let’s add custom validation rules at checkout. We have added custom validation before placing the order on the checkout page. However, we can restrict address-level fields to shipping and billing addresses by adding default and […]
Magento 2: Add Custom Validation Before Order Placement
Do we need to add custom validation just before order placement? Is it possible? Yes, absolutely; Magento 2 is flexible and provides a mechanism to add our custom validation before placing orders. We often need […]
Magento 2: PayPal gateway has rejected request. The totals of the cart item amounts do not match order amounts
PayPal gateway has rejected the request.? Have you added custom charges or tax to the total? If yes, then let’s fix it. First, let’s talk about what Paypal is. Paypal is an international payment method […]
Magento 2: Access Configuration Value in JavaScript at Checkout
We have accessed the configuration value in the JavaScript widget. In this post, we will access the configuration value in JavaScript at checkout. As in the last post, if we pass value to a JS widget, […]
Magento2: How to refresh the shipping method using JS?
Let’s refresh the shipping method using JS. We have restored the total section in https://sbdevblog.com/magento-2-how-to-update-the-total-using-js/ Very often, we need to update the shipping method in the cart and checkout page using JS. For example, on applying a custom discount or […]