Differences

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

Link to this comparison view

Next revision
Previous revision
litespeed_wiki:cache:litemage:troubleshooting:invalid-loading-order [2017/05/05 18:33]
Johathan Kagan created
litespeed_wiki:cache:litemage:troubleshooting:invalid-loading-order [2017/05/08 21:56]
Lisa Clarke [Cart is being punched but still not loading properly]
Line 1: Line 1:
-====== Cart is being punched but still not loading properly ​======+~~NOTOC~~ 
 +====== Cart is Being Punched But Still Not Loading Properly ​======
  
-**Problem**: LiteMage debug shows the cart being punched but it is still not working properly.+====Problem==== 
 +LiteMage debug shows the cart being punched but it is still not working properly.
  
-**Cause**:  ​The cart was actually being loaded via the footer element and not the header element. This caused the cart to be loaded in an invalid order and causing ​it to not load the correct information.+====Cause==== 
 +The cart was actually being loaded via the footer element and not the header element. This caused the cart to be loaded in an invalid order and caused ​it to not load the correct information.
  
-**Solution**: Find the  cart code in footer.phtml and move it to header.phtml. In addition to this make sure that the values inside local.xml pertaining to the cart are moved from the footer block to the header block. After the changes are done in the code, be sure to flush LiteMage and Layout cache.+====Solution==== 
 +Find the  cart code in ''​footer.phtml'' ​and move it to ''​header.phtml''​. In addition to this make sure that the values inside ​''​local.xml'' ​pertaining to the cart are moved from the footer block to the header block. After the changes are done in the code, be sure to flush LiteMage and Layout cache.
  
-For example, move the following code from footer.phtml to header.phtml:​+For example, move the following code from ''​footer.phtml'' ​to ''​header.phtml''​:
  
 <​code>​ <​code>​
Line 46: Line 50:
 </​code>​ </​code>​
  
-Similarly, for local.xml move the following from the footer block to header block:+Similarly, for ''​local.xml'' ​move the following from the footer block to header block:
 <​code>​ <​code>​
            <​block type="​checkout/​cart_sidebar"​ name="​cart_sidebar"​ as="​cart_sidebar"​ template="​checkout/​cart/​sidebar.phtml"​ >            <​block type="​checkout/​cart_sidebar"​ name="​cart_sidebar"​ as="​cart_sidebar"​ template="​checkout/​cart/​sidebar.phtml"​ >
  • Admin
  • Last modified: 2017/05/08 21:56
  • by Lisa Clarke