News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Code for Add to cart

Started by stanko91, April 25, 2012, 18:41:49 PM

Previous topic - Next topic

stanko91

Hi guys, i have a problem... i changed my shop from hikashop to virtuemart:) Now my problem: I have a formular and after the fill out of it i want to put an articel in my cart. Now my question which helper do i have to load and whats to code to put something in the cart?


Sorry for my bad english:)

stanko91

do no one nows how i can put something in in my cart?

andrey

The basic code it to get a cart and call add method:
$cart = VirtueMartCart::getCart();
$cart->add($virtuemart_product_ids);


See component/com_virtuemart/helpers/cart.php for details.