Post by marquesrafael » Fri Apr 15, 2016 8:55 pm

Hi Guys,

Does anyone knows how to show the product main image on the downloads list in the customer account?

Thanks in advance

Newbie

Posts

Joined
Fri Feb 20, 2015 12:44 am

Post by straightlight » Sat Apr 30, 2016 12:42 am

Here's an XML file you can use; tested on OC v2.1.0.1 release.

Then, in your catalog/view/theme/<your_theme>/template/account/download.tpl file,

find this portion from an entire line:

Code: Select all

<?php echo $download['name']; ?>
Copy the entire line and paste it right above. Then, replace the portion above with the following:

Code: Select all

<img src="<?php echo $download['thumb']; ?>" alt="<?php echo $download['heading_title']; ?>" title="<?php echo $download['heading_title']; ?>" class="img-thumbnail" />
This should provide what you need.

Attachments

Account Download Image


Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 26 guests