How to remake all blank pages on 404 pages?

  • Posts: 126
  • Thank you received: 0
10 years 5 months ago #181717

-- HikaShop version -- : 2.3.4

Hello! How to remake all blank pages with message "Product not found" on 404 pages? Because Joomla redirect component does not work with standard redirect, he is work only for 404 pages.

P.S. I can add the rule in .htaccess for redirect, but this blank pages are indexed by search engines and I can not find all this pages

Last edit: 10 years 5 months ago by neviqimka.

Please Log in or Create an account to join the conversation.

  • Posts: 83766
  • Thank you received: 13557
  • MODERATOR
10 years 5 months ago #181780

Hi,

Change the line:
$app->enqueueMessage(JText::_('PRODUCT_NOT_FOUND'));

to:
return JError::raiseError(404, 'product not found');

in the "show" file of the "product" view of your front-end template, via "Hikashop->Display->Views"

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum