Hi,
I want to change the output of {module_shoppingcartsummary} and i have created an shoppingcartsummary.tpl that is placed within /Moduletemplates/shoppingcartsummary.tpl.
On my shop template i have an contentholder with this {module_shoppingcartsummary template="/ModuleTemplates/shoppingcartsummary.tpl"}.
I want the shoppingcartsummary to show something like this instead of the default layout :
| Productimage | Productname | Price |
|---|---|---|
| Productimage01 | Productname01 | USD10 |
| Productimage02 | Productname02 | USD10 |
| Productimage03 | Productname03 | USD10 |
Within my shoppingcartsummary.tpl I still have the default layout:
2 items(s), Total USD0,00
div class="cartSummary empty{tag_isEmpty}">
<div class="cartSummaryItem">Shopping cart is empty</div>
</div>
<div class="cartSummary notEmpty{tag_isEmpty}">
<div class="cartSummaryItem">{tag_itemCount} item(s), Total {tag_currency}{tag_totalAmount}</div>
<div><a class="cartSummaryLink" href="{tag_cartUrl}">Go to cart</a></div>
</div>
and I have added this to my css:
.empty0 { display:none; }
.notEmpty1 { display:none; }
and it all works fine but I need the shoppingcartsummary to behave like a "light-weight" shoppingcart that just give the customer an easy way to see whats inside the shoppingcart (and delete items) without having to leave the page he is on. I cant use the shoppingcart tags inside the shoppingcartsummary.tpl but perhaps someone knows how I can use {tag_productimage} etc in this layout?
You can not at the time, you have to ajax in what is in the cart, into an area. Something we do often at Pretty. When liquid is out of beta though you will be able to do this with Liquid a lot easier.