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.
Comments
You don't have to modify any code
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.
A Very Belated Thank You
This did work for me. I had to use css because I wasn't able to get rid of the price through views.
Thanks
Dennis
Actually, you cannot exclude
Actually, you cannot exclude all fields because this will throw a Views error ("Default view uses fields but all are excluded.")