Skip to main content

How to remake all blank pages on 404 pages?

More
11 years 10 months ago - 11 years 10 months ago #181717 by neviqimka
-- 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: 11 years 10 months ago by neviqimka.

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

More
11 years 10 months ago #181780 by nicolas
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.137 seconds
Powered by Kunena Forum