Hi,
have been using the if statement a lot but seem to have reached a dead end with this one: want to create a drop down menu basket. The current code returns blank/ null. It does not say "basket is empty", but does display the information if quantity is present. when i do it with pp_total it displays he else statement if true. not sure what is happening i think it has something to do with the pp_cart_items function:
Thanks for your help
have been using the if statement a lot but seem to have reached a dead end with this one: want to create a drop down menu basket. The current code returns blank/ null. It does not say "basket is empty", but does display the information if quantity is present. when i do it with pp_total it displays he else statement if true. not sure what is happening i think it has something to do with the pp_cart_items function:
- Code: Select all
<cms:pp_cart_items>
<cms:if quantity >
<div class="menu_cart_units quantity"><cms:show quantity /> x</div>
<div class="menu_cart_option"><cms:show title /></div>
<div class="menu_cart_subtotal">£<cms:number_format line_total /></div>
<p class="menu_cart_total">Total: £ <cms:number_format "<cms:pp_total />"/></p>
<cms:else />
<p class="txt_fff f1 s14" >Basket is empty</p>
</cms:if>
</cms:pp_cart_items>
Thanks for your help