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

#   no products added in cart in safari browser.

##

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

Less More

- Posts: 424
- Thank you received: 11
-
-

5 years 6 months ago [\#331857](#331857) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  *[no products added in cart in safari browser.](/forum/25-install-update/902410-no-products-added-in-cart-in-safari-browser#331857 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4  Hello,  We trying to solve the following problem. On mac, in safari browser the products won't be added in the cart, on other divices this is sometimes slow or until refresh?? How can we tackle this problem??")* was created by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")*

-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.25
-- PHP version -- : 7.4

Hello,

We trying to solve the following problem. On mac, in safari browser the products won't be added in the cart, on other divices this is sometimes slow or until refresh??
How can we tackle this problem??

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwMjQxMC1uby1wcm9kdWN0cy1hZGRlZC1pbi1jYXJ0LWluLXNhZmFyaS1icm93c2VyP3RtcGw9bWFya2Rvd24=) 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: 86358
- Thank you received: 14292
-
-

5 years 6 months ago [\#331858](#331858) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[no products added in cart in safari browser.](/forum/25-install-update/902410-no-products-added-in-cart-in-safari-browser#331858 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4  Hello,  We trying to solve the following problem. On mac, in safari browser the products won't be added in the cart, on other divices this is sometimes slow or until refresh?? How can we tackle this problem??")*

Hi,

Could you provide the URL to the shop with the issue so that we can look at the situation ?

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

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

Less More

- Posts: 424
- Thank you received: 11
-
-

5 years 6 months ago [\#331889](#331889) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[no products added in cart in safari browser.](/forum/25-install-update/902410-no-products-added-in-cart-in-safari-browser#331889 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4  Hello,  We trying to solve the following problem. On mac, in safari browser the products won't be added in the cart, on other divices this is sometimes slow or until refresh?? How can we tackle this problem??")*

[ 06.bluepoint-concept.nl/resto-1](https://06.bluepoint-concept.nl/resto-1)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwMjQxMC1uby1wcm9kdWN0cy1hZGRlZC1pbi1jYXJ0LWluLXNhZmFyaS1icm93c2VyP3RtcGw9bWFya2Rvd24=) 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: 86358
- Thank you received: 14292
-
-

5 years 6 months ago [\#331894](#331894) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[no products added in cart in safari browser.](/forum/25-install-update/902410-no-products-added-in-cart-in-safari-browser#331894 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4  Hello,  We trying to solve the following problem. On mac, in safari browser the products won't be added in the cart, on other divices this is sometimes slow or until refresh?? How can we tackle this problem??")*

Hi,

I think the issue is with the way you have done things.
I can see that you have the add to cart button in a popup. And in the "onclick" of the add to cart button you have "window.parent.hikashop.closeBox(); window.parent.location.reload(true);" to close the popup and reload the whole page.
And the add to cart process is done after the onclick is processed, by submitting the form.

So you're actually lucky that this works for other browsers. If you look at the network tools of your browser, you can see that the reload is done before the add to cart action is sent, which leads to the browser cancelling the add to cart request:
[ i.imgur.com/Kw0LMCW.png](https://i.imgur.com/Kw0LMCW.png)
With Chrome, while the add to cart request is cancelled, it is still taken into account by the server, but I suppose that Safari just skips the add to cart request as the page is already refreshing.
So you should modify the way you did your code.
You should add a setTimeout in the onclick of the button to push the popup closing and page reload after the add to cart form is submitted:
[ www.w3schools.com/jsref/met\_win\_settimeout.asp](https://www.w3schools.com/jsref/met_win_settimeout.asp)
That should avoid the issue with Safari.

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

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

Less More

- Posts: 424
- Thank you received: 11
-
-

5 years 6 months ago [\#331941](#331941) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[no products added in cart in safari browser.](/forum/25-install-update/902410-no-products-added-in-cart-in-safari-browser#331941 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4  Hello,  We trying to solve the following problem. On mac, in safari browser the products won't be added in the cart, on other divices this is sometimes slow or until refresh?? How can we tackle this problem??")*

Hi Nicolas,

Set the time out as followed: Code:

&lt;td rowspan="3"&gt; &lt;div class="buttons_right" id="buttons_right" &gt; &lt;button id="hikabtn_cart_product_edit_save" type="submit" onclick="closeBoxNew(event)" class="&lt;?php echo $this-&gt;config-&gt;get('css_button','hikabtn'); ?&gt; hikabtn-success hikabtn_cart_product_edit_save"&gt; &lt;i class="" &gt;&lt;/i&gt; &lt;?php echo JText::_('Bestellen'); ;?&gt; &lt;/button&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;script&gt; function closeBoxNew(event){ event.preventDefault(); console.log('invoke') setTimeout(function(){ console.log('closing') window.parent.hikashop.closeBox(); window.parent.location.reload(true); }, 3000); } &lt;/script&gt;

But unfortunatly, the box is waiting to close but now no product is added in the cart, not in chrome not in firefox and not in safari,
Where am i missing some??

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwMjQxMC1uby1wcm9kdWN0cy1hZGRlZC1pbi1jYXJ0LWluLXNhZmFyaS1icm93c2VyP3RtcGw9bWFya2Rvd24=) 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: 86358
- Thank you received: 14292
-
-

5 years 6 months ago [\#331943](#331943) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[no products added in cart in safari browser.](/forum/25-install-update/902410-no-products-added-in-cart-in-safari-browser#331943 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4  Hello,  We trying to solve the following problem. On mac, in safari browser the products won't be added in the cart, on other divices this is sometimes slow or until refresh?? How can we tackle this problem??")*

Hi,

With the line Code:

event.preventDefault();

you remove the submission of the add to cart form.

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

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

Less More

- Posts: 424
- Thank you received: 11
-
-

5 years 6 months ago [\#331956](#331956) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[no products added in cart in safari browser.](/forum/25-install-update/902410-no-products-added-in-cart-in-safari-browser#331956 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4  Hello,  We trying to solve the following problem. On mac, in safari browser the products won't be added in the cart, on other divices this is sometimes slow or until refresh?? How can we tackle this problem??")*

Hi Nicolas,

Thanks for that answer,
However when i remove that line, the popup box will not close anymore?
Have tried some other ways but can not get it done??
Do you have more ideas??
Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwMjQxMC1uby1wcm9kdWN0cy1hZGRlZC1pbi1jYXJ0LWluLXNhZmFyaS1icm93c2VyP3RtcGw9bWFya2Rvd24=) 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: 86358
- Thank you received: 14292
-
-

5 years 6 months ago [\#331959](#331959) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[no products added in cart in safari browser.](/forum/25-install-update/902410-no-products-added-in-cart-in-safari-browser#331959 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4  Hello,  We trying to solve the following problem. On mac, in safari browser the products won't be added in the cart, on other divices this is sometimes slow or until refresh?? How can we tackle this problem??")*

Hi,

That's because you set a timeout too big. You set it to 3000, which means that the popup will close after 3 seconds. But the submit of the form is done immediately so by the point the submit ends, the popup closing code has not run yet.

What happens if you don't have anything in the onclick ?
Normally, it should submit the form and the display something in the popup. instead of the product details page. And it's on that page that you need to close the popup and refresh the whole page.
So for example, if you get the checkout content in the popup, then you want to edit checkout/show.php and check the parameters of the URL and if you detect that you come from the popup, instead of displaying the checkout HTML, you display just the javascript to close the popup and refresh the parent page.

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

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

Less More

- Posts: 424
- Thank you received: 11
-
-

5 years 6 months ago [\#331964](#331964) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[no products added in cart in safari browser.](/forum/25-install-update/902410-no-products-added-in-cart-in-safari-browser#331964 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4  Hello,  We trying to solve the following problem. On mac, in safari browser the products won't be added in the cart, on other divices this is sometimes slow or until refresh?? How can we tackle this problem??")*

Hi Nicolas,

Set the timeout to 500 so after half a second. This seems to work on the different divices as mac and windows also on the iphone.

Thanks..

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwMjQxMC1uby1wcm9kdWN0cy1hZGRlZC1pbi1jYXJ0LWluLXNhZmFyaS1icm93c2VyP3RtcGw9bWFya2Rvd24=) 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.060 seconds

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