Page 1 of 1

Cart - Show thumbnail & detail link in View Cart?

Posted: Fri Jun 04, 2010 11:02 pm
by curlypinky
Is there a best way to make each product link back to its detail view from the View Cart view?
In the View Cart Form template I used CGSimpleSmarty's module action

Code: Select all

<a href="{module_action_link module='Products' action='details' productid=$oneitem->product_id urlonly='1'}">{$oneitem->summary}</a>
This works - is this a good way to do it?

I am also looking forĀ  a way to display the product's thumbnail but a print_r of $oneitem it says *RECURSIVE* under the custom fields, I am not sure what to do with that.

Thanks!
Alane

Products 2.8.2
Cart 1.6.2
CGEcommerceBase 1.1.1

Re: Cart - Show thumbnail & detail link in View Cart?

Posted: Fri Jun 01, 2012 4:02 pm
by pcaines
to get the list of $oneitem variables use: {$oneitem|print_r}

but for the image location you want:

{$oneitem->file_location}/{$oneitem->thumbnail}

hope this helps

Re: Cart - Show thumbnail & detail link in View Cart?

Posted: Fri Jun 01, 2012 4:08 pm
by pcaines
to get the list of $oneitem variables use:

{foreach from=$cartitems item='oneitem'}

{$oneitem|print_r}

{/foreach}

hope this helps