"Ask a Question about this product" Contact Form

  • Posts: 8
  • Thank you received: 0
11 years 3 days ago #137529

-- url of the page with the problem -- (site is not live)
-- HikaShop version -- : Business 2.2.3
-- Joomla version -- : 2.5.17
-- PHP version -- : 5.2.10
-- Browser(s) name and version -- : All
-- Error-message(debug-mod must be tuned on) -- : None

After submitting a contact via the 'Ask a Question about this product" contact form, the form is submitted but the user is redirecting to the url: siteurl.com/bags/product - where 'bags' is the product category.

This page does not exist so we're getting a blank screen.

The cancel button works fine and redirects the user back to the originating product page.

Where do you set the redirect url? Where should it be going to?

Do you have to configure it somewhere or is there something amiss?

I can't find any reference to this setting in the documentation, FAQ or this forum.

Thanks in advance!

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

  • Posts: 12953
  • Thank you received: 1778
11 years 3 days ago #137560

Hi,
A solution can be to edit the "contact" file of your "product" view of your front-end template through the page "Hikashop->Display->Views", and change this line :

<input type="hidden" name="redirect_url" value="<?php $redirect_url = JRequest::getString('redirect_url', ''); echo $this->escape($redirect_url); ?>" />
By :
<input type="hidden" name="redirect_url" value="http://YourRedirectionLink.com" />
Where YourRedirectionLink.com is the link where you want your customers to be redirected.

The following user(s) said Thank You: aisweb

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

  • Posts: 8
  • Thank you received: 0
10 years 11 months ago #138476

Hi Mohamed

Thanks for the response. Ok, sure I could edit the code in the product view, but this is a solution that would be problematic for non-coders and as such I'm a bit surprised.

Surely the product works without having to dip into the code unless you want to customise something for your particular needs? The 'ask a question' function is pretty standard for ecommerce products.

Does it work 'out of the box' and if no, is there something in the configuration (other than editing code) that we should be setting with the redirect url?

Thanks

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
10 years 11 months ago #138635

Hi,

The contact request form should actually display again with a message telling the user that his message has been sent and with a link to the product page. If that's not the case, then something is wrong on your end and we'll need a link to the product page to tell you why it does that.

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

  • Posts: 8
  • Thank you received: 0
10 years 11 months ago #138651

Hi Nicolas

In that case, something is wrong our end.

We have a 'testing' version of this site for you to take a look at, so try this product:

Taylor SRV

The ask a question work fine:
Ask a question

But if you click on OK you get:

result

(Note - if you just click on the above link you will get an error message 'product not found' but this is not what the user gets - the user just gets a blank screen, which you will see if you step through it as a user)

It doesn't seem to be appending a product ID or similar to the end of the url ? And this would seem to be supported by the 'product not found' error message....

Thanks!

Otherwise, we are loving this product!

Last edit: 10 years 11 months ago by Essentee.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 11 months ago #138704

Hi,

You have probably an error, thanks to enable the Joomla debug mode, and set the error reporting option to "maximum" and give us the returned error.

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

  • Posts: 8
  • Thank you received: 0
10 years 11 months ago #138762

Hi there

Did as requested but just get a 'white screen' - no error messages are displayed, even tried setting the reporting to developer and still get a white screen.

View Source shows no code.

I believe it is doing this because the url - which is constructed "domainname.com/category/product" does not exist. Where is this url set? Created?

I tried looking on your demo site but you don't appear to have 'ask a question enabled'.

We can provide administration login details for you to look at the site if this would be helpful...

Thanks!

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

  • Posts: 12953
  • Thank you received: 1778
10 years 11 months ago #139211

Hi,
Can you check this thread and tell me if it solved your issue ?

The following user(s) said Thank You: Essentee

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

  • Posts: 8
  • Thank you received: 0
10 years 11 months ago #139414

Hello. Yes, we changed that line in the views overide and it works. :)

Will this fix be rolled in to future releases?


Regards


Essentee

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

  • Posts: 13201
  • Thank you received: 2322
10 years 11 months ago #139445

Hi,

Yes this fix is already present on our side, and will be included in the future release of HikaShop.

The following user(s) said Thank You: Essentee

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

Time to create page: 0.098 seconds
Powered by Kunena Forum