Skip to main content

Como añadir datos a factura

More
14 years 3 weeks ago #64845 by dvddvd
I need to show on the invoice:

username and name of joomla users and some table fields hikashop_product

I can not get it

thanks

Please Log in or Create an account to join the conversation.

More
14 years 3 weeks ago #64848 by Mohamed Thelji
Hi,

You haveto know that if you want to edit your invoice, you'll have to :
- Go to "Hikashop->Display->Views"
- Edit your invoice file of your order view of your front-end's template

Hope this will help you.
The following user(s) said Thank You: dvddvd

Please Log in or Create an account to join the conversation.

More
14 years 3 weeks ago #64851 by dvddvd
Thanks, but I do not get ...

Displayed data and hikashop_pruduct jos_users.
I do not know how to call these tables

Thanks

Please Log in or Create an account to join the conversation.

More
14 years 3 weeks ago #64867 by dvddvd
If I put, for example

@ $ this-> user-> username;

I get the blank

Please Log in or Create an account to join the conversation.

More
14 years 3 weeks ago #64875 by Mohamed Thelji
And like this ?

@$this->order->customer->name
The following user(s) said Thank You: dvddvd

Please Log in or Create an account to join the conversation.

More
14 years 3 weeks ago - 14 years 3 weeks ago #64888 by dvddvd
For the hikashop_product table ?
Last edit: 14 years 3 weeks ago by dvddvd.

Please Log in or Create an account to join the conversation.

More
14 years 3 weeks ago #65032 by nicolas
After the line:
<?php echo $product->order_product_name.' '.$product->order_product_code;?>

you can do like that:
<?php $class=hikashop_get('class.product');
$prod = $class->get($product->product_id);
echo $prod->CUSTOM_FIELD_NAME;
?>

where CUSTOM_FIELD_NAME is the column name of your custom field.
The following user(s) said Thank You: dvddvd

Please Log in or Create an account to join the conversation.

More
14 years 3 weeks ago #65529 by dvddvd
Thank you very much. works perfectly !

Please Log in or Create an account to join the conversation.

Time to create page: 0.219 seconds
Powered by Kunena Forum