[TYPO3-commerce] commerce, basket display dependent on content

Erik Sokoll erik at t3media.de
Wed Mar 24 11:58:15 CET 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

by the way... here is a short snippet how we add the minibasket to our
TS-template.
We devide between user groups who see the price gross and those who need
to see a price in net.

- ------------- schnippel %< -------------
 ############# Mini Basket ############################
# Netto Templates bei UserGroup 3,5,6,7 anzeigen
[usergroup = 3,5,6,7]
    temp.baskettemplate = fileadmin/basket_netto.html
[else]
    temp.baskettemplate = fileadmin/basket.html
[end]
temp.minibasket = COA
temp.minibasket {
    20 < plugin.tx_commerce_pi2
    20.defaultCode >
    20.defaultCode = QUICKVIEW
    20.templateFile < temp.baskettemplate
}
- -------------  schnapp  %< -------------

and of course something like this...

- ------------- schnippel %< -------------
 page.marks.BASKET.20 < temp.minibasket
- -------------  schnapp  %< -------------

Maybe it helps or give you some ideas.


Greetings...
Erik

Rik Willems schrieb:
> Hi Attila,
> 
> Please look in the template file for the shopping cart. You will find
> two subparts: PRODUCT_BASKET_QUICKVIEW & PRODUCT_BASKET_QUICKVIEW_EMPTY.
>  This should help you out.
> 
> Cheers! Rik
> 
> Attila Sirman schreef:
>> Hello list,
>>
>> I've been successfully integrating commerce into several projects. Now
>> I am
>> stuck on following task:
>>
>> I've integrated a mini basket view into my site showing the number of
>> added
>> articles.
>>
>> I did it with:
>>
>> page.marks.BASKET.20 < plugin.tx_commerce_pi2
>> page.marks.BASKET.20.defaultCode >
>> page.marks.BASKET.20.defaultCode = QUICKVIEW
>>
>> Now, I'd like to change the mini basket's look as soon as an article is
>> added. Best would be, if the container's (<DIV>) backColor would
>> change as
>> well as the backColor of a placed IMAGE Object.
>>
>> I do not know how to code the condition.
>>
>> I am thankful for any suggestion.
>> Attila
>>
>>
> _______________________________________________
> TYPO3-project-commerce mailing list
> TYPO3-project-commerce at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-commerce



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFLqfBGuogOZOO2WPQRAlsyAJ9t8yNFicRlyMK4S/+X/6UDeopg1wCfd2+G
IfTwUxh5kbNyDcx4xTq6Rbg=
=TbLu
-----END PGP SIGNATURE-----


More information about the TYPO3-project-commerce mailing list