Two companies (vendors) in two countries

  • Posts: 159
  • Thank you received: 2
10 years 5 months ago #159970

Thanks Jerome,
I was able to create a custom field for the vendor. I named the table column 'footer'. I have no PHP knowledge. Could you please tell me where to place 'footer' in the code you gave me?

$field = $this->extraFields['vendor']['footer'];
$fieldname = $field->field_namekey;
echo $this->fieldsClass->show($field, $this->vendor->$fieldname);
Thanks
Roger

Last edit: 10 years 5 months ago by Jerome. Reason: [code] is nice !!

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

  • Posts: 159
  • Thank you received: 2
10 years 5 months ago #159977

product name in invoices
About the translation of the order product names, it's not possible like that ; the names are stored in the database to keep the product name when the order has been made ; so if the product change, the order not (It's an obligation for invoices).
I will suggest you to read other topics in the HikaShop forum (in the HikaShop section). It is HikaShop related and I won't be able to help you here for that problem.
Like I said, it won't be possible.
You have to load the product from the database using the product_id, it is the single and only solution to do that.


OK, but what code do I have to put in the invoice to get the product_id?

Best
Roger

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 5 months ago #159981

Hi,

I edited your post to fix code (and added the code tags to see correctly the brackets).

To load a product, you have to use the HikaShop product class and use the function "get" to get a product.
You will find other threads in this forum which talk about it (but it is HikaShop related, not HikaMarket).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 159
  • Thank you received: 2
10 years 5 months ago #160080

Hi Jerome,
thanks, the code does work now!
I'll check the product stuff as you suggested in the HikaShop section.
Regards
Roger

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

Moderators: Obsidev
Time to create page: 0.070 seconds
Powered by Kunena Forum