You are here:  » Deleting Feed

Active Forum Topics

Deleting Feed

Submitted by Leosch on Fri, 2022-04-01 08:19 in

Hi David,

On a slow import the script is deleting the products.
Does pt delete and generate also a new filename for each product?

This means that it could happen that an in Google indexed product can return a 404 because of a new import?

Submitted by support on Fri, 2022-04-01 08:27


Yes - to keep the database perfectly in sync with the feeds the import process is simply to DELETE all products from the feed being imported and then to re-import. A deleted product will still return the product page with a 200 response and show Related Products rather than 404, but it can be made to return 404 if you prefer by editing products.php and look for the following code at line 78:

      $banner["h2"] .= "(".translate("product no longer available").")";

...and REPLACE with:

      $banner["h2"] .= "(".translate("product no longer available").")";
      header("HTTP/1.1 404 Not Found");