VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Nilsy on February 25, 2016, 23:49:05 PM

Title: Related products capping at 3
Post by: Nilsy on February 25, 2016, 23:49:05 PM
Hi there
Joomla! 3.4.8
Virtuemart 3.0.12
Linux PHP 5.6.18

Which file is to be altered to increase the default number of related products?

-I have seen previously it was the file shop.product_details.php located at: administrator/components/com_virtuemart/html
-but this folder no longer exists, and the file is not like this anymore. The only file that has "related" involved doesn't have any number limits section etc.
Title: Re: Related products capping at 3
Post by: Jörgen on February 26, 2016, 09:32:26 AM
Hello

I don´t think there is a limit, I just add as much related products that I want.
Isn´t it a custom field like any other, search for a customfield template.

regards

Jörgen @ Kreativ Fotografi
Title: Re: Related products capping at 3
Post by: Nilsy on February 26, 2016, 16:24:39 PM
Interesting... I changed to default template of Beez3.
And still no change... which implies something else is going on.
Title: Re: Related products capping at 3
Post by: jenkinhill on February 26, 2016, 16:47:12 PM
In the development version VM3.0.13.4 I can add multiple related products. In the default template they show as blocks of 3 but that can be overriden.
Title: Re: Related products capping at 3
Post by: Nilsy on February 26, 2016, 18:38:40 PM
Ok... so any clues as to which file I can attack to get more than just 3 related products showing?
Title: Re: Related products capping at 3
Post by: AH on February 26, 2016, 19:45:25 PM
There is no limit to the number that should be "read" into the product page

Debug the product page to see the array

$this->product->customfieldsSorted['related_products']
Title: Re: Related products capping at 3
Post by: Nilsy on February 26, 2016, 21:43:29 PM
Hm... well, I turned on the debug.
Big mistake, white page of death.
Ok, fixed that, and turned on the error messaging to max. That revealed no problems, at least none that I would count as a fault.
But ok, this is just a minor issue, not exactly critical.

I am wondering if this actually started after the last few Joomla updates... because this was actually working last time I had this many related products...