-- HikaShop version -- : latest
-- Joomla version -- : latest
-- PHP version -- : latest
-- Browser(s) name and version -- : ff latest
Hello Everybody,
I am about to create a tiny cart module. Its working quiete well so far, but there are some things that I cannot figure out…
I am loading the Products on the Cart as described here (
www.hikashop.com/support/support/documen...umentation.html#code
):
//If you want to get a list of the products in the cart, you can use the code :
$cartClass = hikashop_get('class.cart');
$productsArray = $cartClass->get();
/*
Note that if the current cart has no products, the cart will be deleted. So you would have to re-init it after that call with the line:
*/
$cartClass->initCart();
That returns the Products from the cart, and the parent product (the products I am dealing with are variants), what is cool so far, but I would like to retrieve the COMPLETE name of the product, which should include the variant names.
For Example:
I have a Main Product, with two charackteristics: size and color. That product has the name »canUcodeIt«. Now, in the cart, there is one of its variants and I would like to display the name like this:
canUcodeIt-XL-RED
BUT even If can get »canUcodeIt« from the parent product, how can I get the details of the variant?
How can I get the Price? It is not included in the Data Object…
Thanks in Ahead!