- Support forum for the Product XML Feeds for WooCommerce.
October 30, 2019 at 11:36 am #105660BarnaGuest
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.
October 30, 2019 at 11:52 am #105661
- This topic was modified 6 months, 2 weeks ago by Omar.
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 #105662BarnaGuest
Thank you, that worked.October 30, 2019 at 1:05 pm #105663BarnaGuest
Also, is there a way to get the result of multiple shortcodes inside one CDATA tag?October 31, 2019 at 1:14 am #105664
Yes, 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
Hope that helps. And if you like the plugin, please consider leaving me a rating.October 31, 2019 at 9:24 am #105665BarnaGuest
Thank 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 #105666
Yes, 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 #105667BarnaGuest
Hello, is there a way to put a hard cap on the number of products in the feed?November 6, 2019 at 1:10 am #105668
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 #105669
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.
- You must be logged in to reply to this topic.