KonaKart Community Forum

Installation / Configuration => Configuration of KonaKart => Topic started by: wafeneto on July 28, 2009, 06:35:49 pm

Title: invoice with products´s custom attributes
Post by: wafeneto on July 28, 2009, 06:35:49 pm
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 :(
Title: Re: invoice with products´s custom attributes
Post by: trevor on July 28, 2009, 07:10:23 pm
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().
Title: Re: invoice with products´s custom attributes
Post by: wafeneto on August 02, 2009, 01:31:53 pm
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?