sakiri Posted November 13, 2013 Share Posted November 13, 2013 (edited) Hi everybody, there are some related topics in this forum about this, but the solutions offered there don't work with my shop, so I thought I'd better start a new topic: I'm selling digital goods and there is no need to sell/buy more than one copy of a file per customer, therefore I limit the quantity that can be bought to "1" and removed the +/- option; customers who want to change their cart have only one option: to delete an item from the cart. Deleting items from the cart works fine with Safari, Opera and Chrome (Mac versions; Safari including iPad version) and IE8 (Win), but not with Firefox (Mac&Win!): With Firefox the cart is adjusted correctly only "in the background", but the screen does not get updated/refreshed. While the compact view of the fly-out shopping cart summary in the header gets displayed correctly, the product stays visually in the cart in the main column cart summary (no matter whether a product was deleted in the main view or in the fly-out box): You have to hit Ctrl+R or F5 to manually refresh the page to see the changes in the cart after deleting an item. I doubt customers will know they have to do this - unless I tell them. I already tried to change the .htaccess file as suggested in other related topics, but the problem still persists. Therefore I thought of this (rather bumpy) "solution": check which browser the customer is using, and if it is FF, show an additional paragraph above the cart summary table telling the customer to manually refresh the page. But I have not the slightest clue how to detect the browser (from within the .tpl file?). Could someone please provide that piece of coding for me? (Or is there another, smoother solution for this problem, which I did not stumble upon yet?) Thank you! Edited November 22, 2013 by sakiri (see edit history) Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted November 13, 2013 Share Posted November 13, 2013 Maybe there is an add-ons on your FF causing the issue. Try to use Firefox safemode (run without add-ons) If problem still persisted, then you may add javascript force reload onclik delete item Link to comment Share on other sites More sharing options...
sakiri Posted November 13, 2013 Author Share Posted November 13, 2013 I tried on several installs of FF (with and without addons); will give a try to safemode. But even if all is fine in safe mode, this does not solve the problem ... there is no telling which addons are installed on my customers' computers! And a javascript forced reload affects (and bothers) ALL customers, not only those running FF. So I'd still rather have a "soft" solution, depending on the browser used on client side. Help? Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted November 14, 2013 Share Posted November 14, 2013 You can run the javascript force reload for FF onlyBut that's not a final solutionsFF safe mode is just a quick way to find out what is the problem, if in FF safe mode you didn't face such problem then FF add-ons was the causeYou may disable it 1 by 1 to find out what FF add-ons that causing the issueother than that, there is something wrong with your theme files or modules filesshare your web URL in here, so we can try it out Link to comment Share on other sites More sharing options...
sakiri Posted November 21, 2013 Author Share Posted November 21, 2013 The above discussion did not help me one single step further. The cart does not get refreshed in safe mode either. I still need to check which browser the customer is using (within the shopping-cart.tpl), and if it is FF, show an additional paragraph above the cart summary table telling the customer to manually refresh the page. I only need the piece of coding that returns the browser used on the client side to / in a variable. Could someone please provide that piece of coding for me? Thank you! Link to comment Share on other sites More sharing options...
PascalVG Posted November 21, 2013 Share Posted November 21, 2013 (edited) Hi Sakiri, This may help. (Although I do agree it's better to find the real cause, to get a 'fix' for the problem. For now however, maybe this works. You can make the refresh dependent on the browser instead of showing a message, of course... Pascal Forgot the link :-) http://stackoverflow.com/questions/12089942/php-html-css-if-firefox-if-chrome-if-safari Pascal Edited November 21, 2013 by PascalVG Link added (see edit history) Link to comment Share on other sites More sharing options...
sakiri Posted November 22, 2013 Author Share Posted November 22, 2013 Thank you! I "solved" it this way (for the time being): {assign var='browserused' value=$smarty.server.HTTP_USER_AGENT} {if (strstr($browserused, 'Firefox'))} <p>{l s='blablabla'}</p> {/if} Normally I would agree that it is better to find the real cause for the problem, of course. But there are a lot of topics in this forum discussing the very same issue, none of them showing a "true" solution. So I needed a work-around, instead of wasting my time trying to identify the real cause of an issue that people knowing much more about web-coding and debugging than me could not find... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now