Jump to content

[SOLVED]Refresh problem


Recommended Posts

Hiya all,

I have a problem with my site not showing the "Add to cart" button on products with attributes.

When you first goto a page, the "Add to cart" button is not visible, but if you refresh the page(f5) then the "Add to cart" button appears.

Problem page url= http://www.biketuna.co.uk/shop/pro-bolt-special-parts/352-probolt-aluminium-gear-shift-rod.html

 

I have used the developer tools in chrome and when you first visit the page it shows the following in the before refresh.jpg below

And after you refresh the page it shows the following in the after refresh.jpg below

 

Any help is greatly appreciated

 

Thanks mb

 

Forgot to say i am using prestashop 1.5.3.1

post-535854-0-37964400-1400859078_thumb.jpg

post-535854-0-88453300-1400859120_thumb.jpg

Edited by mickeyboy1 (see edit history)
Link to comment
Share on other sites

Thanks again for the reply Jiten, but it was more than just the add to cart button not showing.

 

I think i have fixed this refresh issue......

 

In my header.tpl i had

<script type="text/javascript" src="{$js_uri}" async></script>

I removed the "async" and it seems to be working fine now

 

Does anyone know why adding "async" would stop some of the javascripts loading until the page is manually refreshed ???

Edited by mickeyboy1 (see edit history)
Link to comment
Share on other sites

Thanks for explaining this musicmaster..

 

I have previously used gtmetrix and to help with the page load speed it suggests adding async to the script tag

 

But it obviously doesnt work so will leave it as it is

 

Thanks for all the replies

 

Shall mark this topic as solved

 

MB

Link to comment
Share on other sites

×
×
  • Create New...