Home › Forums › Product XML Feeds for WooCommerce › Categories-related inquiries
- Support forum for the Product XML Feeds for WooCommerce.
- This topic has 0 replies, 1 voice, and was last updated 8 months, 3 weeks ago by
WPWhale.
- AuthorPosts
-
September 3, 2022 at 2:34 am #105941
Xing
GuestHello Support Team, I purchased PRO version of this plug in.
Please see an example XML feed: https://land.elegment.com/LandSearch.xml
Question 1: [alg_product_categories] for Product Category vs. Product Subcategory.
Currently the XML feed generates “Product_Category, Product_Subcategory”. An example is I have California as (parent/main) category. Modoc County is one of the Subcategories under California. Meaning the XML feed generates [alg_product_categories] => “California, Modoc County” when called.
Desire Output: [alg_product_category] => “Calforina”. [alg_product_subcategory] => “Modoc County”
Question 2: [alg_product_tags] outputs all product tags. In this case, “Residential Land, Wooded Land” both are tags of the listing.
Desire Output: [alg_product_tag1] => “Residential Land”. [alg_product_tag2] => “Wooded Land”. SO that they can be separated.
Are the two desire output possible?
- This topic was modified 5 days, 12 hours ago by
Omar Dabbas.
September 5, 2022 at 7:17 pm #105942WPWhale
ModeratorHi Xing,
Sorry for the delay, currently the available shortcodes don’t allow this, give me a couple of days, I might be able to include this in the next update.
Omar
September 6, 2022 at 8:29 pm #105943WPWhale
ModeratorHi Xing,
Glad to tell you that in the new version (just released, 2.5.4) we’ve made changes to meet your needs.
To show parent category, use this:
[alg_product_terms is_parent="yes" taxonomy="product_cat"]
To show child category:
[alg_product_terms is_child="yes" taxonomy="product_cat"]
To show attribute:
[alg_product_terms pick_order="N" taxonomy="product_tag"]
Where N is the number of attribute (you will need to create multiple rows of this based on number of atts.
I hope this meets your needs, let us know how it goes please.
Omar - This topic was modified 5 days, 12 hours ago by
- AuthorPosts
- You must be logged in to reply to this topic.