VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: spk063 on August 23, 2013, 13:40:33 PM

Title: how to products list in the cart at Product details page
Post by: spk063 on August 23, 2013, 13:40:33 PM
i want to get the product list of cart in the Product details page. how to get it???
Title: Re: how to products list in the cart at Product details page
Post by: spk063 on August 23, 2013, 15:28:07 PM
i need the products list in the cart at product description page.
i used the code
if (!class_exists('VirtueMartCart')) require(JPATH_VM_SITE . DS . 'helpers' . DS . 'cart.php');
$cart = VirtueMartCart::getCart();
                        print_r($cart)



But, the code is too complicated to get the list.
is there is any other way??
Title: Re: how to products list in the cart at Product details page
Post by: Maxim Pishnyak on August 23, 2013, 19:38:41 PM
Inject standard VM cart module into product description page?

ONCE AGAIN: STOP SPAM BUTTON 'NEW THREAD' WITH THE SAME QUESTION!
Title: Re: how to products list in the cart at Product details page
Post by: alatak on September 04, 2013, 08:38:46 AM
Hello
The best is to insert the cart module so it looks like it is in the product description page.
You can also use a content plugin, and insert the tag in your product description. But then you have to do it for all products.