• Resolved przemyslawjd

    (@d3bsky)


    Hello, I have an online store based on wordpress + woocomerce. I use Themify Ultra Theme and Themify Bulider. The plugin works well, but the ‘description’ field in my case contains a lot of information (description, table with dimensions, photos). Is it possible to add custom field (woo comerce source) and assign to it, e.g. via html tags, the interesting part of the page that contains the description (without further information)?

    Thank you in advance for your help!
    greetings!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author AukeJomm

    (@aukejomm)

    Hello @d3bsky,

    Check this function: https://gist.github.com/Auke1810/c62bb043926f539f9a99b418c06a3e6e
    The part with

    “$attributes[‘description’] = strip_shortcodes( $attributes[‘description’] );”
    “$attributes[‘description’] = preg_replace(“/\[(\/*)?vc_(.*?)\]/”, ”, $attributes[‘description’] );”

    Plugin Author AukeJomm

    (@aukejomm)

    Umh, sorry, did not read your question properly.

    You can choose the short description as well as creating a custom post field and fill that with the product description without all the junk.

    So, yes you can!

    Thread Starter przemyslawjd

    (@d3bsky)

    Can I create a custom field and assign it to, for example, an html tag so that the plugin gets a description from that field?

    Regards!

    Plugin Author AukeJomm

    (@aukejomm)

    Yes, create a custom field and you will find it in the source dropdown in the feed builder. The can than use in in any attribute you like.

    Thread Starter przemyslawjd

    (@d3bsky)

    Thank you! Can I create my own attribute?

    Plugin Author AukeJomm

    (@aukejomm)

    Not in the free version.
    And you do not have to create your own attribute because all the required and possible attributes are in the feed builder.

    Thread Starter przemyslawjd

    (@d3bsky)

    I do not know what to do. The problem is that when I select the description field from the woocomerce sources in the plugin, the plugin downloads the entire content of the product page (which contains a description and many other elements that I do not want to transfer to google merchant). However, the short description option is also dropped. Because in this field on the page I have a gallery. How do you think I should do it?

    Thank you very much for your time! If necessary, I will buy the premium version of your plugin.

    Plugin Author AukeJomm

    (@aukejomm)

    You had answered your own question.

    Can I create a custom field and assign it to, for example, an html tag so that the plugin gets a description from that field?

    You can do that.
    So 1. create a custom field
    2. fill it with the content you want for your product
    3. Open the feed manager and select the custom field in the source dropdown of the description field (click the edit link)

    Thread Starter przemyslawjd

    (@d3bsky)

    How do you create a custom field to make it visible in the plugin?

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Hello @d3bsky,

    Here is a comprehensive explanation about how to make a custom field: https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Hello @d3bsky,

    Where you able to solve the issue and can we close your topic?

    Thread Starter przemyslawjd

    (@d3bsky)

    Yes, thanks for your help!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘How to add custom field’ is closed to new replies.