VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: jade Quinton on November 06, 2015, 22:08:30 PM

Title: Related Products Issue
Post by: jade Quinton on November 06, 2015, 22:08:30 PM
Hello, please could someone point me in the right direction, I have been struggling with the "related products" that appear on the bottom of the page when you view a product in Virtue mart. They always appeared correctly but afew days ago I noticed they had  become very large, displaying vertically down the page. The images are completely stretched. I have removed the template completely and re-copied the original but that didn't even seem to work. I'm not sure where the issue is lying? I'm stumped!
Joomla! 2.5.8, not sure the version of virtuemart.
Here's what it looks like: http://purejewellery.co.za/index.php/engagement-rings/er450-detail
If someone could guide me to remove related products completely from default_relatedproducts.php that would be amazing.
Any advice would be appreciated. Thanks a mil. Jade
Title: Re: Related Products Issue
Post by: GJC Web Design on November 06, 2015, 23:32:54 PM
hmmm .. someone has made a mess in your template

even if I fix the width etc there are missing images and text .. u can see the stray html

If u don't want related products just remove them

or hide all this with css

or correct the css to get the proper layout

div.related-products-view .product .spacer img {
  height: auto;
}
#related-products .product {
  width: 30%;
}

and fix the template html
Title: "Related Products" Remove
Post by: jade Quinton on November 07, 2015, 10:54:28 AM
Hi Guys, I posted here yesterday with an issue regarding the layout of "Related products" at the bottom of the page. Some responded and said I can fix the issue in the css file but I would ideally like to remove all "related products". I'm not sure how to remove it in the virtue mart css file?(What lines to edit or remove without everything being effected) I'm very new to virtuemart so please bear with me.
Title: Re: Related Products Issue
Post by: jenkinhill on November 07, 2015, 11:10:19 AM
You cross posted again. The other message has been deleted. And also started a new thread, which has been mered with the original.

Quote
Joomla! 2.5.8, not sure the version of virtuemart.

Versions are important. Especially as Joomla 2.5.8 is not only very old, but it is known to be insecure.

Remove related products from each product using the product editor.  Or hide them with a css override:
.product-related-products  {
    display: none;
}

See the docs:  http://docs.virtuemart.net/tutorials/templating-layouts.html

Title: Re: Related Products Issue
Post by: jade Quinton on November 07, 2015, 13:06:52 PM
THANK YOOOOOOOUUUUU so much!!!! You are a star!!!! :-*