AI Assistant
Notifications
Clear all

Custom Fields in Product Description

4 Posts
3 Users
0 Reactions
5,199 Views
(@tiabradford)
New Member
Joined: 10 years ago
Posts: 2
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#335]

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: 11 years ago
Posts: 4248
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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: 10 years ago
Posts: 2
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Thank you.

Tia



   
ReplyQuote
(@bjorn)
New Member
Joined: 10 years ago
Posts: 1
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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: 11 years ago
Posts: 4248
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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