[TYPO3-commerce] adding fields to articles
Robert Wildling
robertwildling at gmail.com
Sat Oct 22 18:19:06 CEST 2011
Hi, ingo,
>> 1. the wrap for "tax" won't have any effect (neither "tax.wrap" nor "tax.stdWrap.wrap")
> Did you add tax in lib.commerce or in pi1 and than in the correct view?
> tax itself is stdWrap, so it must be tax.wrap
I added tax in the tx_commerce section of my extentions template. This
one works fine, the value will be shown anywhere I need it and I have a
Marker in the template.
lib.tx_commerce {
article_prices {
...
}
articles {
fields {
...
plain_text < lib.tx_commerce.stdField
tax < lib.tx_commerce.stdField
#tax.wrap = (|% Steuer)
#tx_grbcommercecost_weight < lib.tx_commerce.stdField
#tx_grbcommercecost_box < lib.tx_commerce.stdField
...
}
}
rootline {
...
}
}
And in single-view TS there is:
plugin.tx_commerce_pi1 {
singleView {
articles.fields.tax.wrap = TTESTT|TTESTT
}
}
The Template Section looks like this:
<!-- ###PRODUCT_VIEW_DETAIL### begin-->
###GENERAL_HIDDENCATUID###
<div class="com-single">
...
<div class="com-single-article">
<!-- ###PRODUCT_BASKET_FOR_SINGLEVIEW### -->
<!-- ###ARTICLE_VIEW### -->
<div class="com-single-action-entry">
###ARTICLE_PLAIN_TEXT###
<p>###ARTICLE_PRICE_GROSS### <span
class="withoutVAT">(###ARTICLE_PRICE_NET### ohne ###ARTICLE_TAX###%
MWSt.)</span></p>
...
</form>
</div>
<!-- ###ARTICLE_VIEW### -->
<!-- ###PRODUCT_BASKET_FOR_SINGLEVIEW### -->
</div>
</div>
<!-- ###PRODUCT_VIEW_DETAIL### end -->
But the stdWrap wonT work, "TTESTT" never shows up...
What I would also like to do is insert a language Marker here, where
there is MWSt at the moment. Can this be done?Would be good for
multilingual purposes. I cannot find any documentation on that...
Thanks fo any help!
Robert
More information about the TYPO3-project-commerce
mailing list