Welcome to our community support forums! We're here to help - but if you have an urgent request for a Pro Plugin, you will get a prioritised response through our Premium Support page.
I need to make my related products list display horizontally. Since this plugin is done through a combination of php code and tables, what’s the best way to do this? (I had mistakenly assumed it would be an CSS change, but it’s not).
Help would be very appreciated!
Thanks Michael for your great work. I wish more developers were producing really useful products for WP E-commerce like you are. I appreciate it.
Hi cyhwebby, have you had a look at the template.php file within /wp-content/plugins/wp-e-commerce-related-products/includes/?
The current release by default displays a table grid which is vertical, I will make a priority to include a list-based template, unfortunately for now you’ll need to manually change the HTML within this template.php file from TABLE, TR, TD to UL, LI and then apply the CSS styles DISPLAY and FLOAT to list related products horizontally. I’ll add this as a feature in 1.7
And thanks for the code above, but i seem to have a whole lot of mark-up rendering around my product images? Any ideas on what happening? not to mention the error ‘uasort() expects parameter 1 to be array’ prior to the related products…
Well after looking at the above snippet for half an hour, i figured it was missing a bit of code after each of the <a> tags, so was able to fix that up but still showing the uasort parameter error???
hopefully it will crack it in less than 30 mins this time?
Sorry, I had to put the redirect back on the site as there are a few things not ready for it to go live. I have copy and pasted the error though – Warning: uasort() expects parameter 1 to be array, object given in /home/powderro/public_html/wp-content/plugins/wp-e-commerce-related-products/wp-e-commerce-related-products.php on line 386
Hi Conor, I’m about to push out a fix for this uasort issue, I’m not sure what’s triggered it as it was behaving normal in earlier releases. In the meantime you can remove the line from your Plugin, I’ll be making a minor Plugin update tomorrow to resolve this.
uasort() is responsible for randomising the presentation of Related Products on the single Product page.