product code in pdf invoice

  • Posts: 344
  • Thank you received: 3
7 years 11 months ago #239970

Hi tnx for reply.

How would you implement this code

$productClass = hikashop_get('class.product');
$productData = $productClass->get($product->product_id);
if($productData->product_quantity>0) echo 'Product on stock';

...into my already existing code which looks like this:
$productClass = hikashop_get('class.product');
$productData = $productClass->get($product->product_id);
if($productData->product_parent_id){
 $parentProductData = $productClass->get($product->product_parent_id);
 $productData->product_manufacturer_id = $parentProductData->product_manufacturer_id;
}
$categoryClass = hikashop_get('class.category');
$category = $categoryClass->get($productData->product_manufacturer_id);
echo $category->category_name;

any advice ?

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

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
7 years 11 months ago #239982

Hi,

You could add it before, or after.

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

  • Posts: 344
  • Thank you received: 3
7 years 4 months ago #256744

Joomla 3.6.4
Hikashop 2.6.4
Hikamarket 1.7.2

Just bought Hikamarket. Very happy about it.
Is it possible to place the "Vendor name" which is attached to the product below the product name in the on the PDF invoice.

Please see image below.



If so, any advice on what the code will be ?

Tnx.

Attachments:

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
7 years 4 months ago #256761

Hi,

Please open a new thread in the HikaMarket section of the forum.
It is possible to add some code in the PDF plugin view in order to handle and display vendors ; but it requires some specific code to do so.

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.

Time to create page: 0.070 seconds
Powered by Kunena Forum