Como añadir datos a factura

  • Posts: 267
  • Thank you received: 5
12 years 2 months ago #64845

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.

  • Posts: 12953
  • Thank you received: 1778
12 years 2 months ago #64848

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.

  • Posts: 267
  • Thank you received: 5
12 years 2 months ago #64851

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.

  • Posts: 267
  • Thank you received: 5
12 years 2 months ago #64867

If I put, for example

@ $ this-> user-> username;

I get the blank

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

  • Posts: 12953
  • Thank you received: 1778
12 years 2 months ago #64875

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.

  • Posts: 267
  • Thank you received: 5
12 years 2 months ago #64888

For the hikashop_product table ?

Last edit: 12 years 2 months ago by dvddvd.

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 2 months ago #65032

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.

  • Posts: 267
  • Thank you received: 5
12 years 2 months ago #65529

Thank you very much. works perfectly !

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

Time to create page: 0.075 seconds
Powered by Kunena Forum