• user9876789

    (@user9876789)


    Hello, we support a site that was originally set up to use an ACF wysiwyg field for the product description, rather than the default product description field. Is there a code snippet we can add to make the shopping feed use this field for the description? They have around 700 products so we don’t want to do this manually.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Mahfuzur Rahman(woo-hc)

    (@mahfuzurwp)

    Hi @user9876789,

    Thank you for reaching out. This would require custom code to map the ACF field to the Google Shopping feed, which is outside our support scope. We recommend consulting a developer for assistance. You can also join our WooCommerce Community Slack to connect with other developers who might be able to help.

    Thank you.

    Thread Starter user9876789

    (@user9876789)

    Hello, we are developers. Do you have any documentation on what actions / filters you have that we can hook into?

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello user9876789,

    Thank you for your reply.

    It is good to know that you are a developer.
    The snippet you are looking for is unique and might be readily available in the documentation.

    As providing custom code is not covered by our support policy, the best way forward is either to consult another WooCommerce developer who might have some experience with this or post your question on Woo Community Slack.

    I hope this helps.

    Best regards.

    Thread Starter user9876789

    (@user9876789)

    Hello, I’ve added a code snippet now to change what field the description uses. I tested this locally and it was returning the correct data. I have put the changes live, but it still lists out each of my products as having a missing description field. How can I resync this so it can pick up the new values? In my Issue to resolve section each of my products show with the issue as ‘This value should not be blank [description]’

    Plugin Support Jonayed (woo-hc)

    (@jonayedhosen)

    Hi @user9876789 ,

    Thanks for reaching out!

    If you’ve updated the product description using a custom field, those changes might not sync automatically since the feed typically updates within 1-2 days based on channel visibility settings. A good way to nudge the sync is to toggle the Channel Visibility setting—switch it from “Sync and Show” to “Don’t Sync,” save the change, then switch it back to “Sync and Show.” That should help trigger the update.

    If you need help with custom code or more advanced tweaks, we can’t provide in-depth support for customizations, but you might find what you need through Codeable or a Certified WooExpert.

    I hope this helps point you in the right direction!

    Thread Starter user9876789

    (@user9876789)

    Hello, it’s still saying all my products don’t have a description. I couldn’t see a way to change the sync in bulk but I did a few products and didn’t work either. The code I’ve used is

    function custom_gla_product_description($description, $product) {

    $custom_text = get_field(‘text’, $product->get_id());

    return !empty($custom_text) ? $custom_text : $description;

    }

    add_filter(‘woocommerce_gla_product_attribute_value_description’, ‘custom_gla_product_description’, 10, 2);

    Is there any other advice you can offer?

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello user9876789,

    Thank you for your reply.

    As suggested previously, support for custom code is not covered by our?support policy, the best way forward is either to consult another WooCommerce developer who might have experience with this or post your question on?Woo Community Slack for answers from the developer community.

    Have a great day!

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.