Solved

Joomla - Virtuemart -       show recent products as images

Posted on 2011-09-04
2
791 Views
Last Modified: 2012-05-12
Hello,

I need to show the  recent product pictures insted of the recent product names on the product flypage.

I opened the flypage and changed

<?php echo $recent_products; ?>
to
<?php echo $recent_products[$product_thumb_image]; ?>

But it didn't work. What should I do? Thank you
0
Comment
Question by:starhu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:starhu
ID: 36479785
Meanwhile I changed in recent.tpl.php the folowing:

<?php echo ps_product::image_tag( urldecode($recent["product_thumb_image"])); ?></a>&nbsp;(<?php echo $VM_LANG->_('PHPSHOP_CATEGORY') ?>:&nbsp;

However I would like to change the pictures smaller (now the size has the same as set in VM) and to be next to each other and not under each other.


link:
http://www.egyediszoftverek.hu/ideig/joomla_ideig/index.php?page=shop.product_details&product_id=769&category_id=4&flypage=flypage_sts2.tpl&option=com_virtuemart&Itemid=60
0
 
LVL 13

Accepted Solution

by:
StormITSolutions earned 500 total points
ID: 36481673
Het starhu

echo ps_product::image_tag(basename($product_full_image), 'class="browseProductImage" 
border="0" title="'.$product_name.'" 
alt="'.$product_name .'"',1,'product',250,300 )

Open in new window


Using this code you can set the width and height of the thumbnail on the fly. and in your browseProductImage CSS class you can set it to be in a line.

or alternatively add table coding to your flypage to allow it to create <td> </td> for each image and set it in a single <tr></tr>

Storm
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the following article I will try to explain some of the issues I had learning Joomla and I hope this helps all of you beginners out there that love the concept but find it confusing and difficult to manage and configure a Joomla website. Like …
First of all, we will need Jumi component or Sourcerer plugin for this to work. We need either of these because the main focus here is custom development outside of the standard modules or articles within Joomla. You can find Jumi here...it's my …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question