Jeff Alvarez
Forum Replies Created
-
Hi @ianatkins ,
Deleting those scheduled task will likely stop future automatic updates. Can you please check for any failed action scheduler and see if it explains why it failed?
adt_pfp_as_fetch_google_product_taxonomy fetches taxonomy: https://adtribes.io/taxonomy-with-ids.en-US.txt
But in most cases deleting them won’t cause any major problems. But please have a backup ready before making any changes or deleting them.
Hi @wood1e ,
I confirm this concern, please add the following snippet to your child theme’s functions.php or through the Wp Code plugin.
/**
* Escape special characters in Product Feed Pro link attribute (g:link) for valid XML.
* Prevents invalid feed when URLs contain &, <, >, etc. (e.g. UTM parameters).
*
* @param mixed $v The attribute value.
* @param string $k The attribute key/name.
* @return mixed Filtered value (escaped when $k is the link attribute).
*/
add_filter( 'adt_product_feed_xml_attribute_value', function( $v, $k ) {
$link_keys = array( 'g:link', 'link' );
if ( ! in_array( $k, $link_keys, true ) ) {
return $v;
}
if ( ! is_string( $v ) ) {
return $v;
}
return htmlspecialchars( $v, ENT_XML1 | ENT_QUOTES, 'UTF-8' );
}, 10, 2 );Once added, it should escape the values so Google can safely read the feed without any parsing errors. Please note to refresh the feed after adding the snippet and view the feed file via Incognito mode to verify the changes.
Hi @antonellov10 ,
That’s currently not possible via rules or snippet. At the moment it’ll always give the variation product it’s not possible to add a Parent product.
What you could try is the use the include default variation option:
Also, with variations – Meta will automatically group them.
Hi @chrisv234 ,
At times the feeds can misbehave. To fix this simply try creating a new feed or duplicating the feeds and see if that fixes things.
Also, please go to WooCommerce > Status > Logs >> Scheduled Actions. Check for any failed scheduled actions related to product feed pro. It should give an idea on why the refresh fails.
But in your case where the automatic refresh results to less products is usually fixed by creating a new feed.
I’ll mark this as solved as it seems you’ve created multiple post, please reply on the other post: https://wordpress.org/support/topic/feed-empty-4/
Hi @antonellov10 ,
If you disable the include variations option then, only simple product types will be added to the feed. Can you please confirm if you only have Variation products in your store?
If yes, then you will need the include variations option. It’s okay to include this as Meta requires the item_group_id to determine the products parent.
If you are using our Meta template on feed creation then the item_group_id should be automatically added.
See: https://www.facebook.com/business/help/120325381656392?id=725943027795860
Hi @jtphelan ,
The auto apply feature is only available for our premium/paid users and it’s against WordPress TOS to support here.
Please reach out via our contact form here: https://advancedcouponsplugin.com/my-account/support/
Hi @golfball-uhu,
The snippet I’ve provided should work with all types of feed or marketplace.
See video here: https://www.loom.com/share/635d39c2ec34433fa3e7c19c47fdb3cb
But looking at your video, you are using product parent description; The code I’ve provide only works with description and short_description
Here’s an updated code that targets all description field mappings:
function storefront_pfp_strip_description_formatting( $product_data, $feed, $product ) {
$description_keys = array(
'description',
'short_description',
'raw_description',
'raw_short_description',
'mother_description',
'mother_short_description',
'variation_description',
'variation_short_description',
'raw_parent_description',
'raw_parent_short_description',
'raw_variation_description',
'raw_variation_short_description',
);
foreach ( $description_keys as $key ) {
if ( ! empty( $product_data[ $key ] ) && is_string( $product_data[ $key ] ) ) {
$product_data[ $key ] = wp_strip_all_tags( $product_data[ $key ] );
$product_data[ $key ] = preg_replace( '/\s+/', ' ', $product_data[ $key ] );
$product_data[ $key ] = trim( $product_data[ $key ] );
}
}
return $product_data;
}
add_filter( 'adt_get_product_data', 'storefront_pfp_strip_description_formatting', 5, 3 );Test it out and it should work now – when added refresh the feed and view the feed via incognito to verify the changes.
Hi @wood1e ,
Our plugin will automatically detect these attributes. Just make sure that they are actually added to the product as an attribute.
On your feed then set the fields like:
You can then use the rules to remove the field or change the value depending on the outcome.
I’ll mark this as solve as it seems to be a duplicate post. Please refer to the other responded post: https://wordpress.org/support/topic/missing-color-attrbute/
Hi @wood1e ,
Please check that the attributes have value attached to them. They will show up on the feeds as long as it attached to the product/has a value and is added on the product feed fields.
Here’s a sample:
https://ibb.co/XrRW5CDD
https://ibb.co/wFcgjLrb
https://ibb.co/Nn6kJ500
https://ibb.co/bRHw2SSd
https://ibb.co/1GJpgDVgRefresh the feed then, view the feed via incognito.
Hi @zlager ,
Please include a screenshot of how your feeds are setup and the rules and filter. Alternatively, you can provide a debug.log: https://adtribes.io/knowledge-base/send-your-debug-log-to-support/
Hi @nsnidhi ,
Yes, you are using an elite plugin so it’s best to continue support through our form as it’s against TOS to provide support here. Please reach out here: https://adtribes.io/my-account/support/
Scroll down and you’ll see a link to create a support ticket. I’ll mark this as solve for now and we’ll wait for your email.
- This reply was modified 2 months, 2 weeks ago by Jeff Alvarez.
Hi @nsnidhi,
Our plugin should support PHP versions up to 8.5, try this version and see if that helps. Also, for feeds being stuck please try changing your batch size: https://adtribes.io/knowledge-base/batch-size-configuration-product-feed/
Or enable the disable HTTP generation option: https://adtribes.io/knowledge-base/what-does-disable-http-feed-generation-requests-do/
Hi @pos2012 ,
Sorry to hear about that, can you please provide more information on what version you were on before migrating to the newer versions.
Also, to get fix your issue – please run a backup or downgrade to the previous version.