- Posts: 344
- Thank you received: 3
product code in pdf invoice
10 years 4 months ago #239970
by river
Replied by river on topic product code in pdf invoice
Hi tnx for reply.
How would you implement this code
...into my already existing code which looks like this:
any advice ?
How would you implement this code
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:
Code:
$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.
10 years 4 months ago #239982
by nicolas
Replied by nicolas on topic product code in pdf invoice
Hi,
You could add it before, or after.
You could add it before, or after.
Please Log in or Create an account to join the conversation.
9 years 9 months ago #256744
by river
Replied by river on topic product code in pdf invoice
Please Log in or Create an account to join the conversation.
9 years 9 months ago #256761
by Jerome
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.
Replied by Jerome on topic product code in pdf invoice
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,
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.
9 years 9 months ago #256794
by river
Replied by river on topic product code in pdf invoice
Please Log in or Create an account to join the conversation.
Time to create page: 0.201 seconds