URL Redirect after Message: Product not found

  • Posts: 5
  • Thank you received: 0
11 years 2 months ago #162523

Hello,

i can't find the option for Redirect the URL after empty Cart, Or if a Google indexd Site is not longer available.

I read it should be under Configuration - View? but it isn't there
Or you mean Views - Views - but also can'T find it there...

I'm using 2.3.1

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

  • Posts: 84315
  • Thank you received: 13706
  • MODERATOR
11 years 2 months ago #162542

Hi,

It's in the configuration of HikaShop, under the cart section: take.ms/LB7Y0

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

  • Posts: 5
  • Thank you received: 0
11 years 2 months ago #162581

Sorry :D
So in german it's configuration -> Main Configuration -> Cart...
Works :)

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

  • Posts: 5
  • Thank you received: 0
11 years 2 months ago #162585

is it also possible to change the "Product not found" pages? - because on google some old sides are indexd - sent them the new sitemap, but it takes a while to recognize that...

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 2 months ago #162600

Hi,

You can potentially edit the view "product / show" and instead of the code:

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

Put custom code to redirect to the desired page, something like:
?><script type="text/javascript">window.location.href='Your_custom_location.html'</script><?php

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

  • Posts: 5
  • Thank you received: 0
11 years 2 months ago #162666

if i remove the first line

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


and set it to

?><script type="text/javascript">window.location.href=' www.smartphone-solution.at/index.php/ent.../entsperren-per-code '</script><?php

i get the website without any text inside - just navigation path

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

  • Posts: 84315
  • Thank you received: 13706
  • MODERATOR
11 years 2 months ago #162669

Hi,

This would mean that the modification hasn't been done correctly

Could you do a screenshot of the page where you changed the code of the view ?

Could you also provide the link of the outdated product page ?

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

  • Posts: 5
  • Thank you received: 0
11 years 2 months ago #162785

Here a Outdated Link:
www.smartphone-solution.at/index.php/nok...netlock-entsperrcode


and in the attachment the things i changed

Attachments:

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

  • Posts: 84315
  • Thank you received: 13706
  • MODERATOR
11 years 2 months ago #162838

The modification is correct as far as I can see. I don't see why it would create an error.
Could you do the modification again and turn on the error reporting and debug mode options of the Joomla configuration and if you have again the problem, see if you have an error at the bottom of the product page ?

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

Time to create page: 0.081 seconds
Powered by Kunena Forum