Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
litespeed_wiki:cache:litemage:troubleshooting:add_to_cart_but_show_as_empty_next_page [2017/05/03 19:29]
Michael Alegre Edited code blocks formatting.
litespeed_wiki:cache:litemage:troubleshooting:add_to_cart_but_show_as_empty_next_page [2017/05/03 19:53]
Michael Alegre Edited for grammer and improved formatting.
Line 1: Line 1:
-===== Add item to cart but cart shows as empty when moving to next page ===== +====== Add item to cart but cart shows as empty when moving to next page ======
-LiteMage is working and it's caching pages for logged in users. However, once someone adds something to their cart and then moves on to the next page, the cart shows up as empty at the top right of the page. +
  
-Looks like header top links are not properly hole punchedVerified through ​+==== Symptoms ==== 
 +  * Cart icon shows up as empty after adding an item and navigating to another page.
  
-  https://www.domain.com/?​LITEMAGE_DEBUG=SHOWHOLES ​+==== Cause ==== 
 +Header toplinks are not being properly hole punched. This can be verified by following our [[litespeed_wiki:cache:​litemage:​troubleshooting:​checking-hole-punching|How to check if ESI block holes are being properly punched]] page.
  
-and confirmed no hole punch. 
  
 +==== Solution ====
 Checking the config - design from Magento Admin, it uses default theme_revamp. Checking the config - design from Magento Admin, it uses default theme_revamp.
  
-In header.phtml:​+In header.phtml ​we see the following:
  
 <​code>​ <​code>​
Line 93: Line 94:
 </​code>​ </​code>​
  
-Now the header.phtml ​related part becomes+Now update ​the releated part of header.phtml:
  
 <​code>​ <​code>​
Line 103: Line 104:
 </​code>​ </​code>​
  
-In the layout file, add the new block insider ​header section:+In the layout file, add the new block inside the header section:
  
 <​code>​ <​code>​
Line 111: Line 112:
 </​code>​ </​code>​
   ​   ​
-Last, in the LiteMage configuration,​ change the following:+Finally, in the LiteMage configuration,​ change the following:
  
-  * in the configuration,​ add “toprow” in Customized Block Names for “toplinks” Tag+  * In the configuration,​ add “toprow” in Customized Block Names for “toplinks” Tag
   * Flush Product and Categories When Product Qty Changes => "Flush product and categories only when stock status change"​   * Flush Product and Categories When Product Qty Changes => "Flush product and categories only when stock status change"​
   * Separate cache copy per customer group => Yes   * Separate cache copy per customer group => Yes
   * Track recently Viewed => No   * Track recently Viewed => No
  
-Then flush LiteMage ​cache and Magento ​cache. +Flush both LiteMage and Magento ​caches.
- +
-If you want to warm up for logged in users, you can put a list of user IDs from different user group under "Crawl on behalf of logged-in users".+
  • Admin
  • Last modified: 2017/05/03 20:01
  • by Michael Alegre