I'm using an older version of the WP plugin, but I've looked at the latest code and I think it's the same. I can't find anything about this in the forum, so here goes...
If the product is not found (has been removed from the db), the pto_product function returns nothing. This causes the WP page to show the headings, sidebars, and nothing in the page body. It does not send a 404 header to tell the search engines to remove the page. I looked in pto.php and found where this is happening and tried to add the 404 header, but I got the message saying the header had already been sent (too late I guess). I added a call to pto_search if the product is not found, but that does not always find matches. I also tried adding the featured products as content, but I would really like to send the 404 header. Do you know how we could do this? Is there a WP function that lets you update the header? Do we have access to the section where we could add a robots tag? Could we redirect to a 404 page? Any options? Has anybody else noticed this?
Thanks for your help.