How show more related products?

More
13 years 2 months ago - 13 years 2 months ago #4716 by ashleybroadhurst
Hi there.

This may be an obvious question but could someone please explain how more "related products" can be displayed at the bottom of virtuemart pages? I appreciate this is related to Virtuemart, as opposed to the template itself, but thought to enquire here as it must be common to have more than four related items; how do you folks get around that problem?

At present, it appears only four (4) products can be displayed at any one time. Is there any way to have more than one row of related products, or even some sort of product slider?

A second question - if you're feeling particularly altruistic - relates to the formatting of products displayed in the related products section. Is there any way to lengthen the space of the product description and image, in the related product section. If too long, the names of related products seem to cause the price to be superimposed over the thumbnail (see image)


.

Thank you in advance for any help you may be able to offer.

Ashley.
Attachments:
Last edit: 13 years 2 months ago by ashleybroadhurst.

Please Log in to join the conversation.

More
13 years 2 months ago #4725 by ivan.milic
In the file administrator\components\com_virtuemart\html\shop.product_details.php

in 92th line that look like this:
$q .= "AND FIND_IN_SET(#__{vm}_product.product_id, REPLACE(related_products, '|', ',' )) LIMIT 0, 4";

Change 4 to number you want.

Please Log in to join the conversation.

More
13 years 2 months ago #4745 by ashleybroadhurst
Thank you! That did the job. I also had to fiddle with that section to get the products to flip around in a second row but managed to get there in the end.

Thank you again.

Please Log in to join the conversation.

Time to create page: 0.298 seconds
Powered by Kunena Forum