Discussions

shopping cart block number of items only

How can I just have the number of products show in the shopping cart block with a link to check out that shows on regular pages before proceeding to checkout similar to Amazon. What is the php file that controls this?. I am not that strong in PHP so a complete explanation would be appreciated.

Posted: Mar 12, 2012

Comments

missjane on March 15, 2012

Just go to views->Shopping cart block.
For the footer, click on "Commerce Line Item: Line item summary"
Uncheck "Total" and the link option "Checkout"

For FIELDS, click on each one and select "Exclude from display"
OR you can add to your CSS:
#block-commerce-cart-cart table{ display: none;}

Style the "View Cart" anchor link with CSS, or add a Global Text on the header and create your own anchor and assign it a class.

There may be a better way to do it, but this worked for me.