- Posts: 8
- Thank you received: 0
"Ask a Question about this product" Contact Form
12 years 10 months ago #137529
by Essentee
"Ask a Question about this product" Contact Form was created by Essentee
-- 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!
-- 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.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 10 months ago #137560
by Mohamed Thelji
Replied by Mohamed Thelji on topic "Ask a Question about this product" Contact Form
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 :
By :
Where
YourRedirectionLink.com
is the link where you want your customers to be redirected.
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 :
Code:
<input type="hidden" name="redirect_url" value="<?php $redirect_url = JRequest::getString('redirect_url', ''); echo $this->escape($redirect_url); ?>" />
Code:
<input type="hidden" name="redirect_url" value="http://YourRedirectionLink.com" />
The following user(s) said Thank You: aisweb
Please Log in or Create an account to join the conversation.
12 years 9 months ago #138476
by Essentee
Replied by Essentee on topic "Ask a Question about this product" Contact Form
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
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.
12 years 9 months ago #138635
by nicolas
Replied by nicolas on topic "Ask a Question about this product" Contact Form
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.
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.
12 years 9 months ago - 12 years 9 months ago #138651
by Essentee
Replied by Essentee on topic "Ask a Question about this product" Contact Form
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!
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: 12 years 9 months ago by Essentee.
Please Log in or Create an account to join the conversation.
12 years 9 months ago #138704
by Xavier
Replied by Xavier on topic "Ask a Question about this product" Contact Form
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.
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.
12 years 9 months ago #138762
by Essentee
Replied by Essentee on topic "Ask a Question about this product" Contact Form
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!
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.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 9 months ago #139211
by Mohamed Thelji
Replied by Mohamed Thelji on topic "Ask a Question about this product" Contact Form
Hi,
Can you check this thread and tell me if it solved your issue ?
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.
12 years 9 months ago #139414
by Essentee
Replied by Essentee on topic "Ask a Question about this product" Contact Form
Hello. Yes, we changed that line in the views overide and it works. 
Will this fix be rolled in to future releases?
Regards
Essentee
Will this fix be rolled in to future releases?
Regards
Essentee
Please Log in or Create an account to join the conversation.
12 years 9 months ago #139445
by Xavier
Replied by Xavier on topic "Ask a Question about this product" Contact Form
Hi,
Yes this fix is already present on our side, and will be included in the future release of HikaShop.
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.125 seconds