Skip Navigation

[Résolu] wpv-wooaddcart amount

This support ticket is created Il y a 9 années et 6 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 0.85 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 -
- - - - - - -

Supporter timezone: Europe/Madrid (GMT+01:00)

This topic contains 4 réponses, has 4 voix.

Last updated by gabriels-2 Il y a 8 années et 5 mois.

Assigned support staff: Caridad.



I would like to add amount before my add to cart in a single product view-template. Is that possible?


Dear Marijke,

You can create a custom shortcode to call the woocommerce add-to-cart button. it includes a quantity selector. Add these lines to functions.php in your theme:

add_shortcode('my-addtocart', 'my_addtocart_shortcode');
function my_addtocart_shortcode($atts, $content = '') {
  $out = ob_get_contents();
  return $out;

And now you can use the [my-addtocart] shortcode in your Content Template.

Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.



Wow, yess it worked!

Thank you very much.


Tried the same approach and the buttons show's and works apart from the fact that it only adds the top most product on the list of products irrespective which product from the list i add. Thus the same product (1st product in list) gets added on instead of other chosen products....

hidden link


hi i'm trying to get this work on my page: hidden link
but its not showing up?