php - Showing attribute ( Manufacture, Size, Color ) on magento checkout success page -


In fact I do this to get my order details on this Magenta Checkout Success page

 < code> & lt; ? php $ order_id = Dana :: getSingleton ('checkout / session') - & gt; GetLastRealOrderId (); $ order_details = Dana :: MillModel ('Sales / Order') - & gt; LoadIbjectmentId ($ order_id); $ shipping_address_data = $ order_details-> getShippingAddress (); ? & Gt; & Lt; TR & gt; & Lt; Th & gt; & Lt ;? php echo $ this- & gt; __ ('Item Details')? & Gt; & Lt; / Th & gt; & Lt; Th & gt; & Lt ;? php echo $ this- & gt; __ ('build')? & Gt; & Lt; / Th & gt; & Lt; Th & gt; & Lt ;? php echo $ this- & gt; __ ('Colour')? & Gt; & Lt; / Th & gt; & Lt; Th & gt; & Lt ;? php echo $ this- & gt; __ ('Shape')? & Gt; & Lt; / Th & gt; & Lt; Th & gt; & Lt ;? php echo $ this- & gt; __ ('quantity')? & Gt; & Lt; / Th & gt; & Lt; Th & gt; & Lt ;? php echo $ this- & gt; __ ('unit value')? & Gt; & Lt; / Th & gt; & Lt; / TR & gt; & Lt ;? Php foreach ($ order_details-> getAllVisibleItems () as $ item):? & Gt; & Lt; TR & gt; & Lt; Td> & Lt ;? Php echo $ item- & gt; Combine ()? & Gt; & Lt; / Td> & Lt; Td> & Lt ;? Php ek $ item- & gt; getManufacture ()? & Gt; & Lt; / TD & gt; & Lt; Td> & Lt ;? php echo $ item- & gt; getSize ()? & Gt; & Lt; / TD & gt; & Lt; Td> & Lt ;? php echo $ item- & gt; Milling ()? & Gt; & Lt; / Td> & Lt; Td> & Lt ;? Php Echo Round ($ item-> getQtyOrdered (), 0)? & Gt; & Lt; / Td> & Lt; Td> & Lt ;? Php echo Mage :: helper ("core") - & gt; Currency ($ item-> Milpris ())? & Gt; & Lt; / Td> & Lt; / TR & gt; & Lt ;? Php endforeach? & Gt; & Lt ;? Php echo "& lt; br & gt; . $ Shipping_address_data ['COUNTRY_NAME']; ? & Gt;   

All work except size, color, construction and country name (not displayed) is ok

What is actually wrong with code, any suggestions to anyone is?

Thanks

$ item not give full product data A, can give a description of how the P roduct item was ordered and this is some product name, quantity etc. Product

if you want to get the product You must load the product item id. $ _product = Mage :: getModel ('Catalogs / Products') - & gt; Loadbetaativit ('scooo', $ item- & gt; getSku ()); Echo $ _product- & gt; GetManufacture (); Echo $ _product- & gt; getSize (); // size option resonant $ _product- & gt; GetColor (); // color otion id echo $ _product- & gt; GetAttributeText ('color'); Echo $ _product- & gt; GetAttributeText ('size'); // size options label

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -