?
Solved

Joomla - Virtuemart -       show recent products as images

Posted on 2011-09-04
2
Medium Priority
?
823 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
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 14

Accepted Solution

by:
Allan Nisbet earned 2000 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Change Joomla Logo Graphic This tutorial goes over the steps to change the Joomla Logo in the template you are using. For this example we will be assuming you are using the rhuk_milkyway Joomla Template which is installed by default. You will …
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 …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month14 days, 19 hours left to enroll

840 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