• Resolved redbullfx

    (@redbullfx)


    Hello,

    Im trying to change the text “Base Price”, however my changes are not being registered when I modify the PO file. Am I missing something?

    Thank you,
    Red

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter redbullfx

    (@redbullfx)

    To fix this guys/gals, go to yith-woocommerce-product-add-ons/includes/class-yith-wapo-cart.php change base price text there.

    Adios,
    Red

    Plugin Support Pablo Pérez

    (@pperez001)

    Hi Red,

    Is not recommend to makes changes on the plugin’s core files because any change will be lost on the next update.

    We added a hook that will allow you change the label by using a function in the functions.php of your theme. This hook will be available on the next update release. Once you have it, use the following functions to change it:

    if(!function_exists('yith_wapo_change_label_base_price')){
         add_filter('yith_wapo_base_price_cart_data', 'yith_wapo_change_label_base_price');
    
         function yith_wapo_change_label_base_price($args){
                  $args['name'] = '-Your name-';
                  return $args;
         }
    }

    You only have to change “-Your name-“.

    • This reply was modified 2 years, 9 months ago by Pablo Pérez.

    Hello Pablo,

    Is there any way to remove the base price information completely?

    We have a situation where the Base price is always zero (https://eatcleanachara.com/shop/custom-meal/ ), so it’s not necessary to show that on the cart/checkout/orders page

    Not a priority but would be a major upgrade: ability to display/hide addons which don’t change product price on cart/checkout/order pages ??

    Thanks

    • This reply was modified 2 years, 3 months ago by samthedev.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change text “Base Price”’ is closed to new replies.