VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: vinmax on December 25, 2012, 12:45:24 PM

Title: HOW TO CREATE DRAAG N DROP CART
Post by: vinmax on December 25, 2012, 12:45:24 PM
HI TO ALL,
I AM USING JOOMLA 2.5 AND VIRTUMART 2.0.14. I WANT TO CREATE A CART MODULE THAT WORK LIKE DRAG AND DROP.
WHEN I DRAG AND DROP THE PRODUCT IN THE CART IT WILL AUTOMATICALLY ADD IN THE CART.
ANY ONE KNOW ,
HOW TO CREATE DRAG AND DROP CART MODULE FOR VIRTUEMART 2.0.X?

THANKS IN ADVANCE
Title: Re: HOW TO CREATE DRAAG N DROP CART
Post by: bytelord on January 06, 2013, 19:20:27 PM
Hello,

You could use some jquery for that, here is a good example using jquery for drag & drop http://www.ericbieller.com/2010/06/24/how-to-create-a-simple-drag-and-drop-with-jquery/

Then just edit your templates and adjust them, or create a joomla plugin for that and trigger the add to cart function when a product dragged on the cart "icon"/module.

You will need some PHP/JS/CSS/HTML knowledge, but you are a PHP programmer so you will bot have any issues to accomplish it.

Regards