VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: idlepress on November 15, 2012, 08:42:04 AM

Title: Add to cart text link on website - not in product view
Post by: idlepress on November 15, 2012, 08:42:04 AM
Hi,

I tried searching but I couldn't come up with anything. Maybe this should go in Templating & Layouts? I'm not too sure.

Using Joomla 2.5 with Virtuemart 2.0.12f

I have a list of products just typed out in a module and want to just use a hyperlink reading "ADD" next to each product to add the product to the cart, how could I go about doing this?

Instead of users going to the shopping cart, clicking the individual product, then hitting add to cart I wan't to skip a few steps and just bring the "add to cart" button (actually just make it text) next to the text in the Joomla module. I still want the same function with the pop up box that comes standard with Virtuemart.

Another thing I'm looking to do is have a "Remove" link next to the add link, which I believe I can just use something like:
"http://www.samplesite.com/index.php/shop/cart/delete?cart_virtuemart_product_id=34"
And when users click the hyperlink that item will be deleted from the cart. This part seems to work fine.
Title: Re: Add to cart text link on website - not in product view
Post by: jenkinhill on November 15, 2012, 12:41:56 PM
See http://forum.virtuemart.net/index.php?topic=99552  and  http://forum.virtuemart.net/index.php?topic=94539.msg337937#msg337937
Title: Re: Add to cart text link on website - not in product view
Post by: idlepress on November 15, 2012, 16:54:38 PM
Thanks so much, trying this out now!