Skip to content
  • Home
  • Magento 2
    • Cart
    • Catalog
    • Customer
    • Eav Attributes
    • Payments
    • Shipping
    • Theme
  • AI With SB
    • Prompt Engineering
  • We are on YouTube
  • Contact Us
  • SBDEVBLOG Privacy Policy
Magento 2 Sb Dev Blog

Category: Knockout JS

  • Home
  • Magento 2
  • Knockout JS
Magento 2: define vs require in JavaScript 4 min read
  • Adobe Commerce
  • Knockout JS
  • Magento 2

Magento 2: define vs require in JavaScript

  • Sameer Bhayani
  • December 9, 2024

Magento 2: define vs require in JavaScript are essential concepts in understanding how JavaScript modules are managed within the Magento 2 ecosystem. Built on a robust modular architecture, Magento 2 uses JavaScript extensively to enhance […]

Magento 2: Save value to a custom field in the order 4 min read
  • Cart
  • Checkout
  • Customer
  • Grid
  • Knockout JS
  • Magento 2
  • Order
  • Payments
  • Sales
  • Sales
  • Shipping

Magento 2: Save value to a custom field in the order

  • Sameer Bhayani
  • March 3, 2024

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 […]

Magento 2: Add Custom Validation Rules on Checkout 5 min read
  • Checkout
  • Knockout JS
  • Magento 2

Magento 2: Add Custom Validation Rules on Checkout

  • Sameer Bhayani
  • May 27, 2023

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 6 min read
  • Checkout
  • Knockout JS
  • Magento 2
  • Payments
  • Shipping

Magento 2: Add Custom Validation Before Order Placement

  • Sameer Bhayani
  • May 20, 2023

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: Access Configuration Value in JavaScript at Checkout 4 min read
  • Checkout
  • Configuration
  • Knockout JS
  • Magento 2

Magento 2: Access Configuration Value in JavaScript at Checkout

  • Sameer Bhayani
  • May 13, 2023

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, […]

Magento 2: How to pass value to JS 3 min read
  • Catalog
  • Configuration
  • Knockout JS
  • Magento 2

Magento 2: How to pass value to JS

  • Sameer Bhayani
  • May 6, 2023

We will pass the dynamic configuration values to JS in this post. We can pass values to the configuration using checkoutConfig in checkout. However, we can also pass values to the jQuery widget from the […]

Magento2: How to refresh the shipping method using JS? 2 min read
  • Cache
  • Cart
  • Checkout
  • Knockout JS
  • Magento 2
  • Shipping

Magento2: How to refresh the shipping method using JS?

  • Sameer Bhayani
  • March 11, 2023

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 […]

Magento 2: How to Update Mini Cart? 3 min read
  • Cache
  • Cart
  • Knockout JS
  • Magento 2

Magento 2: How to Update Mini Cart?

  • Sameer Bhayani
  • March 8, 2023

Mini Cart displays a selection of the items added to the cart, as well as the subtotal and update and remove item options. Users can see these details without refreshing the page. If we look […]

Magento 2:  How to check customer is Logged in Knockout JS? 2 min read
  • Customer
  • Knockout JS
  • Magento 2

Magento 2: How to check customer is Logged in Knockout JS?

  • Sameer Bhayani
  • January 7, 2023

We have got logged-in customer id. We also have got logged-in customer id while Full Page Cache (FPC) is enabled. Now, we will explore how to check whether a customer is Logged in using JavaScript. […]

LET’S KEEP IN TOUCH!

We’d love to keep you updated with our latest technical content😎

We don’t spam! Read our privacy policy for more info.

Check your inbox or spam folder to confirm your subscription.

Recent Posts

  • Zero-Shot vs Few-Shot Prompting: The Technique That Makes AI Sound Like You
  • The Perfect Prompt Structure: Get Exact Results from AI
  • The Skill That Makes AI Actually Work for You
  • Magento 2 GraphQL: Debugging & Performance Optimization Tips
  • Creating a Custom GraphQL for Magento 2 Products

Archives

May 2026
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031
« Jul    

profile for Sameer Bhayani at Magento Stack Exchange, Q&A for users of the Magento e-Commerce platform

SB DEV BLOG provides technical article which you need in daily life. Started from Adobe Commerce (Magento 2) but I will write and publish post for other framework and languages as well.

[mwai_chatbot id="default"]

Recent Posts

  • Zero-Shot vs Few-Shot Prompting

    Zero-Shot vs Few-Shot Prompting: The Technique..

  • The Perfect Prompt Structure: Get Exact Results from AI

    The Perfect Prompt Structure: Get Exact..

  • Prompt Engineering

    The Skill That Makes AI Actually..

Most Viewed Posts

  1. Magento 2: Message Queue Status Codes (1,227)
  2. Magento2: How to refresh the shipping method using JS? (1,028)
  3. Magento 2: How to invalidate indexer programmatically? (820)
  4. Magento 2: Add a Custom Field to the Quote Table (714)
  5. Magento 2: How To Remove Product from the categories Programmatically? (683)
Magento 2 Sb Dev Blog

Check your inbox or spam folder to confirm your subscription.

Copyright © 2022-26 https://sbdevblog.com