Hi Annaika,
Could you please let me know how did you add origin country info to your products? Did you use “custom fields”, or just added it to product description or something else?
Best regards,
Tom
Hello!
I have a list of countries to choose on edit product site under product data, attributes
Thank you!
Annaika
Hello!
Do you understand what I mean or do you need any other informations?
Thank you
Annaika
Hi Annaika,
Sorry for the delay. Please try adding product_attribute=country column to [wcj_order_items_table] shortcode, something like this:
[wcj_order_items_table table_class="pdf_invoice_items_table"
columns="item_name|product_attribute=country|item_quantity|line_total_tax_excl"
columns_titles="Product|Country|Qty|Total"
columns_styles="width:50%;|width:25%;|width:10%;|width:15%;text-align:right;"]
Please let me know if you need any help.
Best regards,
Tom
Hello Tom!
Thank you for your help!
This seems to work, just products with different kinds (“variations”) are not showing the country. Do I need to change there something?
Annaika
Hello Tom!
Just wanted to ask if you may have a solution für the variations products not showing the attributes with product_attribute=country?
Thank you!
Hi Annaika,
Again sorry for the delay. If country attribute is used to create variations, please try adding add_variation_info_to_item_name=yes to [wcj_order_items_table] shortcode, something like this:
[wcj_order_items_table table_class="pdf_invoice_items_table"
add_variation_info_to_item_name="yes"
columns="item_name|product_attribute=country|item_quantity|line_total_tax_excl"
columns_titles="Product|Country|Qty|Total"
columns_styles="width:50%;|width:25%;|width:10%;|width:15%;text-align:right;"]
Again, please let me know if you need any help.
Best regards,
Tom
Hello Tom!
No, this attribute is not used for the variations, it is another one.
It generally does not show the attribute for products with variations.
Thank you!
Hi Annaika,
I think I found the problem. If attribute is not used for variation, then it’s really becoming parent product’s attribute (and not variation’s itself). Anyway, I’ve made some changes to the plugin. Please download the development version here – https://booster.io/dev/. You will need to uninstall the old plugin version first (don’t worry your saved settings won’t disappear). Now it should display attributes for variations also. Please let me know if it’s working.
And if you like Booster, please leave us a rating.
Best regards,
Tom