[Typo3-shop] Markers for BASKET_OVERVIEW_TEMPLATE

Robert Markula robert.markula at gmx.net
Fri Jun 3 13:31:59 CEST 2005


Peter Russ wrote:
> Robert Markula wrote:
> 
>> Peter Russ wrote:
>>
>>> 1) in the template there is a marks TOYOURCHOICE that can be 
>>> postioned by css.
>>> 2) this marks is set by TS with
>>>     TOYOURCHOICE=TEXT
>>>     TOYOURCHOICE<styles.content.getRight
>>> i.e. if there is no content at right is is just empty.
>>> 3) At the product page just include the extension with code OVERVIEW
>>> 4) Adjust the BASKET_OVERVIEW_TEMPLATE to your needs.
>>>
>>> Does that help?
>>
>>
>>
>> I see what you mean, but I cannot use this technique. The basket 
>> overview must be output within styles.content.get.
>> I guess there is no other way (e.g. to have the markers replaced 
>> inside the tt_products template or to use an own content element with 
>> a special CODE setting)?
>>
>> Ro
> 
> I don't care about right or left or what else. You could also use this 
> technique if you would like to replace the marks e.g. PIDupinRootline or 
> s.e. As you know it's TYPO3 and it's pretty flexible. It is straight 
> forward.

Hi Peter,
That's true, but it still was not what I was looking for. Finally franz 
pointed out that the mini-basket can be enabled with the CODE 'OVERVIEW' 
and the right markers in the tt_products template of course).
Here is a small howto, I hope it can help people who have the same 
problems that I had:
---
Beside the "normal" basket which shows a complete list of added products 
and some order options, there is also a "mini-basket" which only shows 
the number of products in the basket and the total price.
To use this mini-basket, insert a new content element of the type 
"Plugin: Products" and in the CODE-field insert: OVERVIEW.

Use the following markers in your tt_products template to enable and 
customize this mini-basket:

Code Listing:

<!-- ###BASKET_OVERVIEW_TEMPLATE### begin -->
   <div class="shop_minibasket">
      <div 
class="shop_minibasket_image"><!--###LINK_BASKET###-->###IMAGE_BASKET###<!--###LINK_BASKET###--></div>
     <p>###NUMBER_GOODSTOTAL### Products (EUR 
###PRICE_GOODSTOTAL_TAX###.-)</p>
<!-- ###BASKET_OVERVIEW_TEMPLATE### end -->


<!-- ###BASKET_OVERVIEW_EMPTY### begin -->
   <p>No products in basket.</p>
<!-- ###BASKET_OVERVIEW_EMPTY### end -->
---
Regards,
Ro



More information about the TYPO3-project-tt-products mailing list