Hello,
In a normal setting, the top navigation bar displays the cart summary plus the 'view cart' and 'checkout' links. What I would like to do is find a way to display those only if the cart contains at least one item. Seems logical since, if the cart is empty, then there is no need to display anything about it. So, I figured that would just be a matter of testing getCartItem(3), right? But how can I use this information in a conditional block? I've tried with a php block, assigning all necessary information/variables to php equivalents, but every attempts failed due to my failing to grasp actinic's unorthodox way of mixing php code with its own code.
lazyeye
In a normal setting, the top navigation bar displays the cart summary plus the 'view cart' and 'checkout' links. What I would like to do is find a way to display those only if the cart contains at least one item. Seems logical since, if the cart is empty, then there is no need to display anything about it. So, I figured that would just be a matter of testing getCartItem(3), right? But how can I use this information in a conditional block? I've tried with a php block, assigning all necessary information/variables to php equivalents, but every attempts failed due to my failing to grasp actinic's unorthodox way of mixing php code with its own code.
lazyeye
Comment