VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: eclipsada on May 17, 2017, 12:15:11 PM

Title: How to automatically remove inactive products from related products lists?
Post by: eclipsada on May 17, 2017, 12:15:11 PM
Hi,

In my clients website, some products were disable. However, they were referred as related products to others and now the related products lists shows "image not available" on those disable ones. On click it opens a new window with the shop homepage.
Is there a way to remove disable products from related lists hide them somehow?

Thank you in advance.
Title: Re: How to automatically remove inactive products from related products lists?
Post by: jenkinhill on May 17, 2017, 12:22:31 PM
http://forum.virtuemart.net/index.php?topic=79799.0

Assuming that you are using a Joomla template with overrides, check to see if this happens with Protostar.
Title: Re: How to automatically remove inactive products from related products lists?
Post by: eclipsada on May 17, 2017, 19:02:12 PM
I'm sorry, I had a very difficult morning, I forgot to attached my file and I should known better and provided more information. :o :-[
I'm using gavick InStyle template, width virtuemart 3.0.18, Joomla 3.6.5 and PHP 5.4.45.

With Protostar the problem remains.
Title: Re: How to automatically remove inactive products from related products lists?
Post by: Milbo on May 17, 2017, 20:29:50 PM
"On click it opens a new window with the shop homepage."

This sounds like a template which does not show messages, this is very bad. Actually you see a 404. I think you should update, because I believe I fixed that. Not sure though.
Title: Re: How to automatically remove inactive products from related products lists?
Post by: eclipsada on May 18, 2017, 12:10:37 PM
I'm not really concerned with not having the message, but showing a product that is not available anymore in related products list. Of course I could remove it manually, but that would mean to verify thousands of products, one by one.
Title: Re: How to automatically remove inactive products from related products lists?
Post by: Milbo on May 19, 2017, 09:18:03 AM
Quote from: Milbo on May 17, 2017, 20:29:50 PM
"On click it opens a new window with the shop homepage."

This sounds like a template which does not show messages, this is very bad.

It is a crucial error! The shop cannot communicate with the shopper!

Quote from: Milbo on May 17, 2017, 20:29:50 PMI think you should update, because I believe I fixed that. Not sure though.
Title: Re: How to automatically remove inactive products from related products lists?
Post by: eclipsada on May 22, 2017, 17:34:28 PM
Milbo,
Thank you for your concern, but the shop is not online yet and I know how to solve that issue.
I just updated and the problem remains (although now it just shows a blank space where the disable product used to be) with my template but it's solved with protostar.
So now it's between me and the template.

Thank you.

Regards.
Title: Re: How to automatically remove inactive products from related products lists?
Post by: Milbo on May 22, 2017, 21:35:06 PM
:-) So you see, I worked on that. Good to know it is fixed.