holle75
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] HS/HSN Code on packing-slipBeautiful, Yordan. This works. I highly appreciate your commitment to help.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] HS/HSN Code on packing-slipHi Yordan, i implemented the code in functions.php of the used child theme.
The formerly shared code for the short description is (still) working. Thats why i′m irritated. I want to emphasize again, that those products are variable products (if there is any difference).
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] HS/HSN Code on packing-slipHi, and thank you for taking care of my question. I tried with the new code without luck.
I checked the database and could find the meta _hs_code in table
wp_postmeta
meta_id post_id meta_key meta_value
15468 2013 _hs_code 76130000Does this info ring any bells for you?
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] HS/HSN Code on packing-slipHi, this works for the short descripion of a product and is just an example that the principle works. I′m looking for the equivalent for the HS-Code meta-field
Thanks Kris, appreciated
Hi, any news? i checked the changelog but couldn′t find a fix for this?
best regards
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] HS/HSN Code on packing-slipHi, any news on this challenge? Why is this marked as resolved?
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] HS/HSN Code on packing-slip—- this works for the short descripion in the packing slip on my setup as an example and is attached to product fields
add_action( ‘wpo_wcpdf_after_item_meta’, ‘wpo_wcpdf_show_product_description’, 10, 3 );
function wpo_wcpdf_show_product_description ( $template_type, $item, $order ) {
if (empty($item[‘product’])) return;
if ( $template_type == ‘packing-slip’) {
$_product = $item[‘product’]->is_type( ‘variation’ ) ? wc_get_product( $item[‘product’]->get_parent_id() ) : $item[‘product’];
if ( method_exists( $_product, ‘get_short_description’ ) ) {
$description = $_product->get_short_description();
printf(‘
%s’, $description );
}
}
}(mmh, inline code markup doesn′t work)
- This reply was modified 3 weeks ago by Jan Dembowski. Reason: Formatting
- This reply was modified 3 weeks ago by Jan Dembowski.
Forum: Plugins
In reply to: [Germanized for WooCommerce] HS-Code HerkunftslandDanke, werde das mal so weiterleiten und hier vermerken, falls es da weitergeht.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] HS/HSN Code on packing-slipHi Yordan. i got the information that “_hs_code” is a product meta-field. It seems to me that your provided code for functions.php should specifically work on products. Any ideas why not?
thank you
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] HS/HSN Code on packing-sliplet me ask in the other thread what type of field this is …. i′ll get back
(the name of the field is “_hs_code”)
thanks!
Forum: Plugins
In reply to: [Germanized for WooCommerce] HS-Code HerkunftslandK?nntest du mir die Art der beiden Felder etwas genauer erkl?ren? Der freundliche Mensch aus
https://www.ads-software.com/support/topic/hs-hsn-code-on-packing-slip/#post-18344414
m?chte gerne weiterhelfen und stellt unter anderem zur Disposition:
Product fields, Item fields und andere
Es war mir nicht bewu?t, dass es so viele verschiedene Fields gibt. Dachte alles sog. Meta fields ??
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] HS/HSN Code on packing-slipI will! (or i did? …. i have to check)
Besides that, i′m not succesful with the code. I don′t know if this field is “not a meta field” or if “variable products” create confusion.
The fields are implemented by germanized -> https://de.www.ads-software.com/plugins/woocommerce-germanized/
and are part of the tab delivery in products. I did ask the programmer what the meta field name is -> “_hs_code” ….. but no luck.
Forum: Plugins
In reply to: [Germanized for WooCommerce] HS-Code HerkunftslandMmh, ich bekomme es nicht gedruckt. SInd die beiden irgendwie “besondere” Felder oder in irgendeiner Form nicht wie andere Felder hinterlegt? Oder hat es was damit zu tun, dass die Produkte “variable Produkte” sind. Wahrscheinlich geh?rt das eher in einen anderen Support Thread, aber vielleicht hast du eine schnelle Idee?
Forum: Plugins
In reply to: [Germanized for WooCommerce] HS-Code HerkunftslandDanke dir!