• Welcome to KonaKart Community Forum. Please login or sign up.
 

invoice with products´s custom attributes

Started by wafeneto, July 28, 2009, 06:35:49 pm

Previous topic - Next topic

wafeneto

how can i show in my invoice a custom attribute of my products?

i try in my velocity temp put $op.getCustom1()  and $op.getProduct().getCustom1(), both with no succes :(

trevor

You should put the value of the product custom attribute into the order product custom attribute so that it is saved with the order. Then you can do $op.getCustom1().

wafeneto

hy
please, in wich action i could do this?

i try to change the AddToCartFromProdIdAction adding the follow code

b.setCustom1(selectedProd.getCustom1());
System.out.println("add a custom " + selectedProd.getCustom1());

that work fine ( i see in the log the msg )
but after i checkout the order the custom1 attribute was no set in table orders_products

what else i need to change?