At my success.php page, I successfully grabbed the product id's of what the customer bought. However I am having trouble finding the product name of these id's.
As a test, I just echo'd the $productName which should grab the product name of the id = '50'
$productName = $this->model_catalog_product->getProduct('50');
echo $productName;
However i receive the array of an array to string conversion. Can anyone help?
That’s because the getProduct() method returns an array
Do something like the following instead:
Do something like the following instead:
Code: Select all
$product = $this->model_catalog_product->getProduct('50');
echo $product['name'];
Who is online
Users browsing this forum: daniil_oc, pprmkr, WaxedPerfection and 463 guests