Change Credit Product Bundle Shop Category

February 9, 2019 2:36 am

Would be nice if a section could be added under Manage Labels in settings to edit the default category name for credit bundles. Currently it will display under product category – ‘Credit Bundles’

The category name can be manually edited via the woocommerce Products –> Categories page. However it reverts back to the default term ‘Credit Bundles’ if the plugin options are updated.

Cheers!

Published by 1 Comment

1 Reply

  • Found the function that creates the Category after I sent support an email. (A bit blind today apparently)
    If and when you guys have the time and can add in a back end field to avoid it getting overwritten when an update comes would be super appreciated.

    For a temporary hardcoded fix for anyone else who needs it find the following code line in woo-download-credits-platinum.php

    wp_set_object_terms($post_id, ‘Credits Bundle’, ‘product_cat’);
    There are two instances at line 5703 & 5729. Change both instances ‘Credits Bundle’ term to whatever you want your category to be called.

    Example to have the bundles show under a Shop Category named ‘Buy Credits’ simply change to :
    wp_set_object_terms($post_id, ‘Buy Credits’, ‘product_cat’);

Leave a Reply

Your email address will not be published.