BuddyBoss Home – Web Support Forums Themes OneSocial theme Can we change wording of ORDERS to PURCHASES?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Question

    #64049
    @conscious-crafties

    Hello,

    I’d like to make it very clear to my sellers that the tab for ‘Orders’ within their profile is for the items they have purchased themselves and NOT the orders they have received from customers.

    Can you tell me how to change the wording of ‘Orders’ to ‘Purchases’ within the Profile tabs and also within the Profile menus please?

    Many thanks for your help,

    Karen

    Answers

    #64789

    Alyssa
    Participant
    @alyssa-buddyboss

    Hi @conscious-crafties,

    Add following lines of code in functions.php of your child theme.

    function change_shop_label() {
    	return __('Purchases', 'textdomain');
    }
    
    add_filter('bp_shop_link_label', 'change_shop_label');

    Then go to Dashboard -> BuddyBoss -> OneSocial Theme -> Custom Codes -> JavaScript and add following line of code.

    jQuery('#wp-admin-bar-my-account-orders > .ab-item').html('Purchases');

    Hope this helps you.

    Thanks

    #64801
    @conscious-crafties

    Worked perfectly! Thank you @sagar! 😀

    #64806

    Alyssa
    Participant
    @alyssa-buddyboss

    @conscious-crafties You are welcome 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The question ‘Can we change wording of ORDERS to PURCHASES?’ is closed to new replies.