Top WooCommerce & WordPress Plugins › Forums › Product XML Feeds for WooCommerce › Find & replace help
- Support forum for the Product XML Feeds for WooCommerce.
- This topic has 9 replies, 2 voices, and was last updated 4 years ago by
Tom Anbinder.
- AuthorPosts
-
October 30, 2019 at 11:36 am #105660
Barna
GuestHello,
Is there a way to make find/replace only trigger on exact full string match while doing multiple cases? My issue arises when trying to find and replace values that contain each other, like – find=”x,xy,xyz” replace=”1,2,3″ – output ends up being 1, 1y, 1yz instead of 1,2,3.
Regards
- This topic was modified 6 months, 2 weeks ago by
Omar.
October 30, 2019 at 11:52 am #105661Hi,
Could you please try changing the order of your values by listing longer ones first, i.e.:
find="xyz,xy,x" replace="3,2,1"
October 30, 2019 at 12:06 pm #105662Barna
GuestThank you, that worked.
October 30, 2019 at 1:05 pm #105663Barna
GuestAlso, is there a way to get the result of multiple shortcodes inside one CDATA tag?
October 31, 2019 at 1:14 am #105664Yes, you can put it inside one CDATA tag.
To do that, instead of adding
cdata="yes"
attribute to the shortcodes, like you would normally do:[alg_product_name cdata="yes"] [alg_product_short_description cdata="yes"]
you will have to use the “ugly” form:
<![CDATA[ [alg_product_name] [alg_product_short_description] ]]>
i.e. wrap it in
<![CDATA[ ]]>
Hope that helps. And if you like the plugin, please consider leaving me a rating.
October 31, 2019 at 9:24 am #105665Barna
GuestThank you, it sure did. I didnt realise I’d have to substitute < to [. Tried it with [ but that killed the shortcodes.
November 1, 2019 at 2:12 pm #105666Yes, we need to substitute, because it seems that shortcodes are not allowed inside HTML tags in WordPress.
Anyway, glad it helped 🙂
November 5, 2019 at 12:57 pm #105667Barna
GuestHello, is there a way to put a hard cap on the number of products in the feed?
November 6, 2019 at 1:10 am #105668Hi,
Unfortunately no, at the moment there is no hard cap on number of products, but I will try to add this option in the next plugin version.
November 10, 2019 at 6:12 am #105669Hi,
As promised, we’ve released new plugin version 1.7.1 today, where I’ve added “Total products” option to “Products Filtering Options” section in plugin settings. This should solve the task, i.e. adding hard cap on number of products in feed.
Please let me know if you have any questions. And if you like the plugin, please consider leaving me a rating.
- This topic was modified 6 months, 2 weeks ago by
- AuthorPosts
- You must be logged in to reply to this topic.