VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: biciodark on November 29, 2021, 22:15:29 PM

Title: Add a fields in cart module
Post by: biciodark on November 29, 2021, 22:15:29 PM
I have this need:
When a user is in the cart I would like to be able to add a checkbox where he can choose the gift box for my product that adds for example 3 euros to the total cost.

I managed to do it with the custom fields but he shows it to me only under the products, but it would be useful for me in the cart. Do you think it's possible? Thank you so much.

Fabrizio



VirtueMart version 3.2.14
Joomla versio 3.8.7
PHP version 7.3.5
Title: Re: Add a fields in cart module
Post by: GJC Web Design on November 30, 2021, 11:47:19 AM
I have done this with some code in the cart that is basically a link to add a (in your case a €3 product) named gift wrapping and some JS

the code is done in the cart over ride and a new additional template
Title: Re: Add a fields in cart module
Post by: Studio 42 on November 30, 2021, 21:53:10 PM
You have buy together https://shop.st42.fr/en/products/buy-together.htm
demo product https://pro.st42.fr/en/demo/buy-together/buy-together-sample-4626.html
Or extra product https://shop.st42.fr/en/products/extra-product.htm
demos https://pro.st42.fr/en/demo/extra-product/extra-product-demo.html