[Skip to main content](#vessel-content)

#   Access forbidden - Updating Cart Quantities

##

- **[jasmine247](/forum/user/61515-jasmine247 "View jasmine247's Profile")**
- [![jasmine247's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/61515-jasmine247 "View jasmine247's Profile") Topic Author
- [ Offline](/forum/user/61515-jasmine247)

Less More

- Posts: 42
- Thank you received: 4
-
-

3 years 6 months ago [\#351627](#351627) by [jasmine247](/forum/user/61515-jasmine247 "View jasmine247's Profile")  *[Access forbidden - Updating Cart Quantities](/forum/25-install-update/906375-access-forbidden-updating-cart-quantities#351627 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10 -- PHP version -- : 7.4.33 -- Browser(s) name and version -- : Edge 113.0.1774.35  Hello Hikashop!  I'm having a little trouble with my checkout. Whenever I change the quantities in the checkout and press the 'refresh' button I get an access forbidden error.  I've searched your forum for an answer but I was unable to find a thread on the matter.  I was just wondering if it was something you've encountered before?  Sorry in advance, I'm just unable to pinpoint the issue.")* was created by *[jasmine247](/forum/user/61515-jasmine247 "View jasmine247's Profile")*

-- HikaShop version -- : 4.7.2
-- Joomla version -- : 3.10
-- PHP version -- : 7.4.33
-- Browser(s) name and version -- : Edge 113.0.1774.35

Hello Hikashop!

I'm having a little trouble with my checkout. Whenever I change the quantities in the checkout and press the 'refresh' button I get an access forbidden error.

[ ![Screenshot2023-05-10095924.jpg](/forum/attachment/57024) ](/forum/attachment/57024 "...5-10095924.jpg")

[ ![Screenshot2023-05-10100032.jpg](/forum/attachment/57023) ](/forum/attachment/57023 "...5-10100032.jpg")

I've searched your forum for an answer but I was unable to find a thread on the matter.

I was just wondering if it was something you've encountered before?

Sorry in advance, I'm just unable to pinpoint the issue.

- [ ![Screenshot2023-05-10100032.jpg](/forum/attachment/57023) ](/forum/attachment/57023 "...5-10100032.jpg") [ ](/forum/attachment/57023?download=1 "...5-10100032.jpg")
- [ ![Screenshot2023-05-10095924.jpg](/forum/attachment/57024) ](/forum/attachment/57024 "...5-10095924.jpg") [ ](/forum/attachment/57024?download=1 "...5-10095924.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNjM3NS1hY2Nlc3MtZm9yYmlkZGVuLXVwZGF0aW5nLWNhcnQtcXVhbnRpdGllcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jasmine247](/forum/user/61515-jasmine247 "View jasmine247's Profile")**
- [![jasmine247's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/61515-jasmine247 "View jasmine247's Profile") Topic Author
- [ Offline](/forum/user/61515-jasmine247)

Less More

- Posts: 42
- Thank you received: 4
-
-

3 years 6 months ago [\#351628](#351628) by [jasmine247](/forum/user/61515-jasmine247 "View jasmine247's Profile")  Replied by *[jasmine247](/forum/user/61515-jasmine247 "View jasmine247's Profile")* on topic *[Access forbidden - Updating Cart Quantities](/forum/25-install-update/906375-access-forbidden-updating-cart-quantities#351628 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10 -- PHP version -- : 7.4.33 -- Browser(s) name and version -- : Edge 113.0.1774.35  Hello Hikashop!  I'm having a little trouble with my checkout. Whenever I change the quantities in the checkout and press the 'refresh' button I get an access forbidden error.  I've searched your forum for an answer but I was unable to find a thread on the matter.  I was just wondering if it was something you've encountered before?  Sorry in advance, I'm just unable to pinpoint the issue.")*

Also, apologies Just realized this is in the wrong section.
I intended to post in checkout!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNjM3NS1hY2Nlc3MtZm9yYmlkZGVuLXVwZGF0aW5nLWNhcnQtcXVhbnRpdGllcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

3 years 6 months ago [\#351636](#351636) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Access forbidden - Updating Cart Quantities](/forum/25-install-update/906375-access-forbidden-updating-cart-quantities#351636 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10 -- PHP version -- : 7.4.33 -- Browser(s) name and version -- : Edge 113.0.1774.35  Hello Hikashop!  I'm having a little trouble with my checkout. Whenever I change the quantities in the checkout and press the 'refresh' button I get an access forbidden error.  I've searched your forum for an answer but I was unable to find a thread on the matter.  I was just wondering if it was something you've encountered before?  Sorry in advance, I'm just unable to pinpoint the issue.")*

Hi,

I'm not able to reproduce the issue on your website.
I suppose it's because you left your browser tab opened for too long and your user session expired so the server doesn't recognize your browser when you try that operation.

What I can see though on your checkout is that each time I click somewhere I get an javascript error in the console of my browser:
[ i.imgur.com/KdmAF90.png](https://i.imgur.com/KdmAF90.png)
The error message points at the line 1823, it seems to come from some custom javascript code which shouldn't be added to the page when the user is on the checkout:
[ i.imgur.com/nJS8k8p.png](https://i.imgur.com/nJS8k8p.png)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNjM3NS1hY2Nlc3MtZm9yYmlkZGVuLXVwZGF0aW5nLWNhcnQtcXVhbnRpdGllcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jasmine247](/forum/user/61515-jasmine247 "View jasmine247's Profile")**
- [![jasmine247's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/61515-jasmine247 "View jasmine247's Profile") Topic Author
- [ Offline](/forum/user/61515-jasmine247)

Less More

- Posts: 42
- Thank you received: 4
-
-

3 years 6 months ago [\#351646](#351646) by [jasmine247](/forum/user/61515-jasmine247 "View jasmine247's Profile")  Replied by *[jasmine247](/forum/user/61515-jasmine247 "View jasmine247's Profile")* on topic *[Access forbidden - Updating Cart Quantities](/forum/25-install-update/906375-access-forbidden-updating-cart-quantities#351646 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10 -- PHP version -- : 7.4.33 -- Browser(s) name and version -- : Edge 113.0.1774.35  Hello Hikashop!  I'm having a little trouble with my checkout. Whenever I change the quantities in the checkout and press the 'refresh' button I get an access forbidden error.  I've searched your forum for an answer but I was unable to find a thread on the matter.  I was just wondering if it was something you've encountered before?  Sorry in advance, I'm just unable to pinpoint the issue.")*

Hey Nicolas.

Thanks for the quick response.

I have tried no on 4 different devices, 3 different browsers (chrome, edge, safari) and different networks, however I always get access forbidden when I try to update the quantity.

When I change the quantity and click 'Next' However, the cart and prices will update as you would expect if you pressed 'refresh'.

I'm sure it couldn't be a session issue, as I have tried so many different sessions and devices.

Thank you for pointing out those errors, I have fixed the issues that were causing them. (was running the code for booking a viewing site wide for some reason. My bad.)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNjM3NS1hY2Nlc3MtZm9yYmlkZGVuLXVwZGF0aW5nLWNhcnQtcXVhbnRpdGllcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jasmine247](/forum/user/61515-jasmine247 "View jasmine247's Profile")**
- [![jasmine247's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/61515-jasmine247 "View jasmine247's Profile") Topic Author
- [ Offline](/forum/user/61515-jasmine247)

Less More

- Posts: 42
- Thank you received: 4
-
-

3 years 6 months ago [\#351647](#351647) by [jasmine247](/forum/user/61515-jasmine247 "View jasmine247's Profile")  Replied by *[jasmine247](/forum/user/61515-jasmine247 "View jasmine247's Profile")* on topic *[Access forbidden - Updating Cart Quantities](/forum/25-install-update/906375-access-forbidden-updating-cart-quantities#351647 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10 -- PHP version -- : 7.4.33 -- Browser(s) name and version -- : Edge 113.0.1774.35  Hello Hikashop!  I'm having a little trouble with my checkout. Whenever I change the quantities in the checkout and press the 'refresh' button I get an access forbidden error.  I've searched your forum for an answer but I was unable to find a thread on the matter.  I was just wondering if it was something you've encountered before?  Sorry in advance, I'm just unable to pinpoint the issue.")*

Hey Nicolas!

Sorry to waste your time!

I found a few view modifications that I hadn't noticed on "show_block_cart"

I've removed those and the cart updates as you change the value now, which is ideal.

If you manage to click update before it finishes refreshing then you still get the "access forbidden" error, but this should be good enough for me to be fair.

Sorry to waste your time!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNjM3NS1hY2Nlc3MtZm9yYmlkZGVuLXVwZGF0aW5nLWNhcnQtcXVhbnRpdGllcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

3 years 6 months ago [\#351648](#351648) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Access forbidden - Updating Cart Quantities](/forum/25-install-update/906375-access-forbidden-updating-cart-quantities#351648 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10 -- PHP version -- : 7.4.33 -- Browser(s) name and version -- : Edge 113.0.1774.35  Hello Hikashop!  I'm having a little trouble with my checkout. Whenever I change the quantities in the checkout and press the 'refresh' button I get an access forbidden error.  I've searched your forum for an answer but I was unable to find a thread on the matter.  I was just wondering if it was something you've encountered before?  Sorry in advance, I'm just unable to pinpoint the issue.")*

Hi,

I've looked deeper into it. I'm now able to reproduce the issue. It only happens if you click on the quantity input field, enter something in it, and then click on the refresh button directly without clicking elsewhere before.
If you use the + or - and then click on the refresh button, or if you change the quantity in the input field and then press enter and then click on the refresh button, or if you change the quantity in the input field and click elswhere on the page and then click on the refresh button, it works fine.
That's why I wasn't able to reproduce it before on your website.

Now, I'm still not able to reproduce the issue on my test website. And I'm not sure why.
I've made a patch which should prevent the issue, providing that you don't have view overrides for checkout / show_block_cart and layouts / quantity on your website.
Download again the install package of HikaShop on our website and install it on yours. It will add the patch and it should hopefully work better.

The following user(s) said Thank You: [jasmine247](/forum/user/61515-jasmine247 "View jasmine247's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNjM3NS1hY2Nlc3MtZm9yYmlkZGVuLXVwZGF0aW5nLWNhcnQtcXVhbnRpdGllcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jasmine247](/forum/user/61515-jasmine247 "View jasmine247's Profile")**
- [![jasmine247's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/61515-jasmine247 "View jasmine247's Profile") Topic Author
- [ Offline](/forum/user/61515-jasmine247)

Less More

- Posts: 42
- Thank you received: 4
-
-

3 years 6 months ago [\#351689](#351689) by [jasmine247](/forum/user/61515-jasmine247 "View jasmine247's Profile")  Replied by *[jasmine247](/forum/user/61515-jasmine247 "View jasmine247's Profile")* on topic *[Access forbidden - Updating Cart Quantities](/forum/25-install-update/906375-access-forbidden-updating-cart-quantities#351689 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10 -- PHP version -- : 7.4.33 -- Browser(s) name and version -- : Edge 113.0.1774.35  Hello Hikashop!  I'm having a little trouble with my checkout. Whenever I change the quantities in the checkout and press the 'refresh' button I get an access forbidden error.  I've searched your forum for an answer but I was unable to find a thread on the matter.  I was just wondering if it was something you've encountered before?  Sorry in advance, I'm just unable to pinpoint the issue.")*

Hey!

I've applied that patch and it seems to be working fine, thank you for that!

I have double checked and I do not have any modifications to 'checkout / show_block_cart' or 'layouts / quantity', not sure if there are other views that could affect things in this way, but I'm going to do a bit sort out of the modifications and try and get rid of any that I'm not requiring anymore.

Thank you again for looking into this!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNjM3NS1hY2Nlc3MtZm9yYmlkZGVuLXVwZGF0aW5nLWNhcnQtcXVhbnRpdGllcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.069 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
