Magento Expert Forum - Improve your Magento experience

Results 1 to 3 of 3

Add Quantity Increment and Decrement Button in Magento 2 with KnockoutJS

  1. #1
    Junior Member
    Join Date
    Mar 2017
    Posts
    33
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Add Quantity Increment and Decrement Button in Magento 2 with KnockoutJS

    By default, on the product page of Magento 2, there is a simple text field for quantity for products. Add increment and decrement button in Magento 2 to make easier for customers to buy a produc which can also help in boosting the sales. It can done by using Knockout JS in Magento 2. Here's a step by step guide:

    Add Increment and Decrement Button in Magento 2

    View more threads in the same category:


  2. #2
    Junior Member marknguyen's Avatar
    Join Date
    Nov 2015
    Posts
    622
    Thanks
    6
    Thanked 33 Times in 33 Posts

    Default

    There is another option to show quantity increment in the frontend.
    That is showing a list of quantity increment, even along with total prices, in the product page.
    Here is an example when you use Magento 2 Quantity Dropdown extension:

    Name:  show_quantity_dropdown_using_product_quantity_increment_value_with_total_price_with_magento_2_qu.png
Views: 367
Size:  233.1 KB

    Hope it helps

  3. #3
    Junior Member
    Join Date
    Sep 2018
    Location
    United Kingdom
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Include Quantity Increment and Decrement Button in Magento 2 with KnockoutJS. Knockout is a javascript library which pursues MVVM (Model-View-View-Model) Pattern and utilized for making front end. Arrange your module by making a module.xml record in application/code/Magenticians/Mymodule/etc.Add the accompanying code in it:

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •