Cart - Show thumbnail & detail link in View Cart?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
curlypinky
Forum Members
Forum Members
Posts: 109
Joined: Thu Sep 04, 2008 3:49 am
Location: Hawaii

Cart - Show thumbnail & detail link in View Cart?

Post 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
pcaines
New Member
New Member
Posts: 4
Joined: Fri Sep 02, 2011 9:18 pm

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

Post 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
pcaines
New Member
New Member
Posts: 4
Joined: Fri Sep 02, 2011 9:18 pm

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

Post by pcaines »

to get the list of $oneitem variables use:

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

{$oneitem|print_r}

{/foreach}

hope this helps
Post Reply

Return to “Modules/Add-Ons”