Hello @annariel ,
Okay, I understand the query.
Out of the box, there is no direct way to change the order of categories. I do not have an exact coding solution for this. I can share the file location and the function details.
The categories and tag information in the single product page is coming from this file –
https://github.com/woocommerce/woocommerce/blob/trunk/templates/single-product/meta.php
The function resposible for this category list is – wc_get_product_category_list
.
You can see its definition here – https://github.com/woocommerce/woocommerce/blob/9e8db78ad6a2d1bcc25c200e5b11a99b9982e82d/includes/wc-product-functions.php#L1116
This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.
I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.
You can also visit the WooCommerce Facebook group or the #developers
channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.
If you need a paid solution, you can consider taking help from one of our partner’s website.
Thank you 🙂
Plugin Support
laceyrod a11n
(@laceyrod)
Automattic Happiness Engineer
Hi there,
Since we haven’t heard back from you, and this thread has been inactive for a bit, I’m going to mark it as Resolved
now for the overall health of the forums. Please feel free to open a new one if you have any further questions.
Cheers!