WooCommerce - excelling eCommerce
What hooks and actions are needed to add multiples of a single product to car? (1 post)

  1. charliezl
    Posted 2 years ago #

    I have linked a question on stackoverflow where you can find the full question and details.

    My objective is to be able to add 'x' number of a single simple product to cart with a button click. I would like to replicate that add to cart function on the view product page, where the user can select the number of product to add to cart at the same time.

    I have dug through and tried a few things, but I am just unable to get the right actions and hooks to run in order to allow users to add multiple products straight from the shop page (and not view single product page).

    Also the final question: Is this even possible? There's no way to replace use the <form> on woocommerce/templates/single-product/add-to-cart/single.php

    Stack: http://stackoverflow.com/questions/16309794/woocommerce-adding-x-number-of-products-thru-add-to-cart


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic