[TYPO3-commerce] attribute value empty

Torben Hansen - Skyfillers T.Hansen at skyfillers.com
Thu Jun 2 12:12:32 CEST 2011


Hello,

there is a good example on how to create variable delivery costs in the TYPO3 commerce wiki.

http://wiki.typo3.org/Commerce/Tutorial/VariableDeliveryCost/

I´ve used this to extend commerce to calculate delivery costs based on the article-weight. I did´nt store the article weight in an attribute, but extended the table tx_commerce_article with extra fields, so you don´t have to do lookups on the attribute-values for every article.

Best regards
Torben



> -----Ursprüngliche Nachricht-----
> Von: typo3-project-commerce-bounces at lists.typo3.org [mailto:typo3-project-
> commerce-bounces at lists.typo3.org] Im Auftrag von Siddhesh
> Gesendet: Donnerstag, 2. Juni 2011 07:26
> An: typo3-project-commerce at lists.typo3.org
> Betreff: [TYPO3-commerce] attribute value empty
> 
> Hello list..
> I am calculating shipping cost depending on weight.i have created a product
> and 3 articles for that.and each article i have assigned a weight by creating
> attribute.I have to make calculation of shiping on checkout page.For that i am
> making use of following hook
> 
> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/li/class.tx_commerce
> _basket.php']['load_data_from_database'][]='EXT:commerce_shipping/pi1/clas
> s.tx_commerceshipping_pi1.php:&tx_commerceshipping_pi1';
> 
> this is the function
> 
> function processMarkerBasketInformation($markerArray,&$baskoj,&$val)
> 
> When i do print_r($baskoj)i dont find any attribute value.It gives an empty
> array.
> 
> Anyone cam plese help me out...
> 
> Thanks in Advance
> _______________________________________________
> TYPO3-project-commerce mailing list
> TYPO3-project-commerce at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-commerce


More information about the TYPO3-project-commerce mailing list