Solved

Joomla - Virtuemart -       show recent products as images

Posted on 2011-09-04
2
786 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 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Grabbing Stock number and placing it in Joomla module 3 199
Joomla: Strict Error Messages on Home Page 4 218
joomla 4 144
Joomla smart search indexing ends with an error 16 158
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 …
What you will need: Any version of Photoshop or similar product (examples in Photoshop) Internet Access FTP Access to your joomla install or ability to upload images within joomla administrator backend Create Image: Lets start off with cre…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

808 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