Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
litespeed_wiki:cache:litemage:troubleshooting:cart-appears-empty [2017/05/03 20:07] Michael Alegre |
litespeed_wiki:cache:litemage:troubleshooting:cart-appears-empty [2022/12/08 16:09] (current) Lisa Clarke Fixed a mobile usability issue |
||
---|---|---|---|
Line 3: | Line 3: | ||
====== Cart Appears Empty After Adding An Item & Visiting A New Page ====== | ====== Cart Appears Empty After Adding An Item & Visiting A New Page ====== | ||
- | ==== Symptoms ==== | + | ==== Problem ==== |
- | * Cart icon shows up as empty after adding an item and navigating to another page. | + | A shopper adds an item to the cart, but the cart icon shows as empty when he or she visits a new page. |
- | ==== Cause ==== | + | ==== Cause #1 ==== |
- | 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. | + | Header toplinks are not being properly hole punched. This can be verified by following [[litespeed_wiki:cache:litemage:troubleshooting:checking-hole-punching|this guide]]. |
- | ==== Solution ==== | + | ==== Solution #1 ==== |
- | Checking the config - design from Magento Admin, it uses default theme_revamp. | + | Checking the config - design from Magento Admin, we see it uses the default theme_revamp. |
- | In header.phtml we see the following: | + | In ''header.phtml'' we see the following: |
<code> | <code> | ||
Line 53: | Line 53: | ||
</code> | </code> | ||
- | Create a new template ''toprow.phtml'' in ''/home/user1/public_html/app/design/frontend/default/theme_revamp/template/page/html'' with the following content: | + | Create a new template ''toprow.phtml'' in |
+ | |||
+ | /home/user1/public_html/app/design/frontend/default/theme_revamp/template/page/html | ||
+ | |||
+ | with the following content: | ||
| | ||
<code> | <code> | ||
Line 108: | Line 112: | ||
In the layout file, add the new block inside the header section: | In the layout file, add the new block inside the header section: | ||
- | <code> | + | **[/home/user1/public_html/app/design/frontend/default/theme_revamp/layout]#** ''vi page.xml'' |
- | [/home/user1/public_html/app/design/frontend/default/theme_revamp/layout]# vi page.xml | + | |
+ | <code> | ||
<block type="core/template" name="toprow" as="toprow" template="page/html/toprow.phtml" /> | <block type="core/template" name="toprow" as="toprow" template="page/html/toprow.phtml" /> | ||
</code> | </code> | ||
Line 116: | Line 120: | ||
Finally, 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 | + | * 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'' |
Flush both LiteMage and Magento caches. | Flush both LiteMage and Magento caches. | ||
+ | |||
+ | ==== Cause #2 ==== | ||
+ | In this case, the user encounters similar problem. The store is using rwd theme, but overrides default ajaxcart by plumrocket. After further investigation, PlumRocket Ajax cart seems incompatible with LiteMage. Disable it and the problem goes away. | ||
+ | |||
+ | ==== Solution #2 ==== | ||
+ | If you use PlumRocket - Ajax Cart or similar extension, Go to Magento admin panel. **Configuration - PlumRocket - Ajax Cart -> Enable Extension** = ''No''. | ||
+ | It is suggested that you use rwd default ajax cart when using LiteMage. |