Notifications
Clear all

Custom Fields in Product Description

4 Posts
3 Users
0 Likes
4,110 Views
(@tiabradford)
New Member
Joined: 8 years ago
Posts: 2
Topic starter  

Hello,

I have been using PODS to create simple custom fields for my Woocommerce Store.

The fields show up under Product Description.

As seen here:

http://industrial.howitworks.com/product/giddings-lewis-cnc-floor-type-hbm/

When I would use the PDF or Word export option those fields used to show up on the print document. Now they do not display. Only text that is entered into the text editor displays, but no custom fields. I am using WordPress 4.4.1 and Woocommerce 2.5.1. I have tried using older versions of woocommerce with the same problem.

I do have Product Description ticked in the plugin settings.

Any help would be greatly appreciated.

Tia


   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 9 years ago
Posts: 4172
 

Hi tiabradford,

PODS stores custom fields with its own logic and keys. WooPP plugin can't detect those. I'll add it in our to-do list and make it available in future releases.


   
ReplyQuote
(@tiabradford)
New Member
Joined: 8 years ago
Posts: 2
Topic starter  

Thank you.

Tia


   
ReplyQuote
(@bjorn)
New Member
Joined: 8 years ago
Posts: 1
 

Do you have any advice on how to call the custom field values by editing the plugin template?


   
ReplyQuote
 Tom
(@tomson)
Famed Member Admin
Joined: 9 years ago
Posts: 4172
 

In woocommerce-pdf-print/functions.php file on line 369 you can add new custom filed title and values in these two arrays:

$custom_tab_title_html
$custom_tab_content_html
Woocommerce PDF Print Custom Field

To get current product custom fields you can use:

$product_meta = get_post_meta( $post->ID )

   
ReplyQuote
Share:
Scroll to top