- Posts: 5
- Thank you received: 0
How show more related products?
-
ashleybroadhurst
Inactive member -
Topic Author
- New Member
-
Less
More
14 years 3 months ago - 14 years 3 months ago #4716
by ashleybroadhurst
How show more related products? was created 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.
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.
Last edit: 14 years 3 months ago by ashleybroadhurst.
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
14 years 3 months ago #4725
by ivan.milic
Replied by ivan.milic on topic Re: How show more related products?
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.
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.
-
ashleybroadhurst
Inactive member -
Topic Author
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
14 years 3 months ago #4745
by ashleybroadhurst
Replied by ashleybroadhurst on topic Re: How show more related products?
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.
Thank you again.
Please Log in to join the conversation.
Time to create page: 0.145 seconds