Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
litespeed_wiki:cache:lscps:customization_1_6 [2017/10/02 19:22]
Lauren Song [Update Template for Compare Product Feature]
litespeed_wiki:cache:lscps:customization_1_6 [2017/10/30 19:02]
Lisa Clarke [Customize Blockcart Template]
Line 5: Line 5:
   *Viewed Products Block   *Viewed Products Block
   *Compare Products Feature   *Compare Products Feature
 +  *Blockcart Template
  
 ===== Disable Viewed Products Block ===== ===== Disable Viewed Products Block =====
Line 51: Line 52:
  
 You'll notice that ''​{count($compared_products)}''​ appeared twice, and was surrounded with the ESI hooks both times. You'll notice that ''​{count($compared_products)}''​ appeared twice, and was surrounded with the ESI hooks both times.
 +
 +===== Customize Blockcart Template =====
 +A pop-up overlay appears when an item is added to the cart, if the request hits the backend. If the request is served from cache, the overlay does not appear, though the cart is updated properly. This occurs in the default-bootstrap theme and others.
 +
 +{{:​litespeed_wiki:​cache:​lscps:​lscps-customization-01.png?​direct&​600|}}
 +
 +This is caused by the smarty template ''​active_overlay''​ counter. When the content is served from an ESI block as a separate request, the counter value becomes ''​2''​. So if you want this overlay to always show, you need to modify your theme'​s smarty template.
 +
 +Modify ''​your_active_theme/​modules/​blockcart/​blockcart.tpl''​
 +
 +Locate the following lines:
 +
 +  {if !$PS_CATALOG_MODE && $active_overlay == 1}
 +  <div id="​layer_cart">​
 +
 +change  ​
 +  {if !$PS_CATALOG_MODE && $active_overlay == 1}
 +  ​
 +to 
 +  {if !$PS_CATALOG_MODE && $active_overlay}
 +
 +Now the pop-up overlay will always appear. Please remember if you ever update your theme, you will need to apply these changes again.
 +
 +
  • Admin
  • Last modified: 2020/08/11 19:14
  • by Lisa Clarke