Magento Expert Forum - Improve your Magento experience

Results 1 to 4 of 4

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


  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: 383
Size:  233.1 KB

    Hope it helps

  3. #3
    Junior Member
    Join Date
    Sep 2018
    Location
    United Kingdom
    Posts
    118
    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:

  4. #4
    Junior Member
    Join Date
    Sep 2018
    Location
    United Kingdom
    Posts
    145
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    It can done by utilizing Knockout JS in Magento 2. Here's a well ordered guide: Add Increment and Decrement Button in Magento 2.

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
  •