We have just moved to Virtuemart 3 from VM1. So new website and everything.
The one function I am not sure how to create is a 'Free Sample' button on products pages.
In our previous website it was a button that seemed to add the 'sample' product with the sender product's name as a variant or note.
So if on 'Product 1' you clicked the free sample button. this was added to the cart:
Sample
Product 1
I do not know how it was previously done, as it was built long before I worked here, and no documentation was written about it.
Any help would be greatly appreciated.
Thanks
Dan
I assume the samples are actual products with no cost related somehow to the current prod on view
to make them check out they need a price of 0.001
and a link prob via a customfield to add them to cart -- would only need the product id and the rest of the link hard coded
On here somewhere is a thread about adding a prod to cart from a simple url
Yea all we need to know is what product they want a sample of really.
The problem I see with the customfield is that the SKU of the sample would obviously have to be unique. with the old system the free samples were the same product in essence so the SKU was the same, meaning we could limit the amount ordered.
I couldn't find any thread showing how to add a set product to the cart, the java/php that adds to the cart is all too advanced for me currently to work out on my own.
Thank you for your reply, sorry mine took so long.