- Posts: 63
- Thank you received: 2
Confirm Form Resubmission?
first of all thanks for such a great product and support.
i am having a bit of issue here. some times after viewing the product page or after applying the filter when i click browser's back button it comes up with black page saying "Confirm Form Resubmission".
i have searched a bit and found that its more like security related issue from browser side. however some recommended to use "get" instead of "post" if its not vital.
it would be great if you please put some light on this and any possible solution.
thanks
Please Log in or Create an account to join the conversation.
Using get instead of post in your forms is a solution yes. The problem with that is that all the parameters of the form will go in the URLs, so they won't be SEO anymore. That's why we don't do it.
More info on that here:
www.hikashop.com/forum/3-bug-report/6886...t.html?lang=en#69174
Please Log in or Create an account to join the conversation.
thanks
Please Log in or Create an account to join the conversation.
i tried this in joomla's index file but its not working any suggestions? thanks
session_cache_limiter('private_no_expire');
i am only having this problem with filters rest is fine.
Please Log in or Create an account to join the conversation.
www.hikashop.com/forum/3-bug-report/6886...t.html?lang=en#70118
Please Log in or Create an account to join the conversation.
I am having difficulty understanding this. can you please give some more details:
Do i only need to change product's filter view or all the files? do i need to add these hidden fields? as i cannot see them there?
can we reduce the number of parameters in url if we use get because there are lots?
Thanks a lot.
Then, you will have to change all the method="post" to method="get" in the view files of HikaShop.
For products listings it's in the files listing_table and listing_div where you will find that on two different locations for the listing_div view file. You can edit them via the menu Display->Views.
You will also have to add the parameters of the URL as hidden fields inside the form, like that:
<input type="hidden" name="cid" value="<?php echo $_GET; ?>"/>
<input type="hidden" name="ctrl" value="product"/>
<input type="hidden" name="task" value="listing"/>
<input type="hidden" name="option" value="com_hikashop"/>
<input type="hidden" name="Itemid" value="<?php global Itemid; echo Itemid; ?>"/>
Please Log in or Create an account to join the conversation.
And yes, you need to add these hidden fields.
You can't reduce the number of parameters in the URL. Otherwise, HikaShop won't work properly. We use the POST method exactly for that purpose of having clean URLs... But then you have the "back" button cache message displayed by your browser.
Please Log in or Create an account to join the conversation.
do I need to change both files or any one? because you mentioned "listing_div or listing_table" ?
as i can see there are three forms with "post" methods in each view file. do i need to change all six of them to "get"?
Do i need to put exactly this following code in each of the six forms before </form> tag?
<input type="hidden" name="cid" value="<?php echo $_GET; ?>"/>
<input type="hidden" name="ctrl" value="product"/>
<input type="hidden" name="task" value="listing"/>
<input type="hidden" name="option" value="com_hikashop"/>
<input type="hidden" name="Itemid" value="<?php global $Itemid; echo $Itemid; ?>"/>
thanks in advance
Please Log in or Create an account to join the conversation.
You should only change the first and the last post of the files. The one in the middle is for the add to cart buttons, not for the pagination.
Then, you need to add the hidden parameters in the first and the last ones.
Please Log in or Create an account to join the conversation.
i did exactly the same but no results. i am adding the altered view file please have a look its right.
I really appreciate your help.
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I've changed the line:
<input type="hidden" name="cid" value="<?php echo $_GET; ?>"/>
to:
<input type="hidden" name="cid" value="<?php echo reset($this->pageInfo->filter->cid); ?>"/>
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.