Hi
Thanks for the help, now Im still working on this, is there anyway that I can access the category name of a product on product object?
Here's my code;
<?php
$cartClass = hikashop_get('class.cart');
$cart = $cartClass->loadFullCart();
//The products in the cart will be available in the attribute as an array of product objects:
$vProducts = $cart->products;
foreach ($vProducts as $key => $value) {
# code...
echo '1) Product ID: '.$value->product_id.'\n';
echo '1) Product Name: '.$value->product_name.'\n';
echo '1) Categories: \n';
var_dump($value->categories);
$productClass = hikashop_get('class.product');
$product=$productClass->get($product_id);
echo '2) Product ID: '.$product->product_id.'\n';
echo '2) Product Name: '.$product->product_name.'\n';
echo '2) Categories: \n';
var_dump($product->categories);
}
?>
Im getting null on this $product->categories
Here's the documentation I have checked. Any help?
Thanks