• Resolved ipolska

    (@ipolska)


    Hi,
    is it possible to cut $fee_no permanently?
    I did it in price.php and woocommerce.php and it works but only to next update.

    I’ve got 2 PPO (Personalized Product Option) in one product. In cart it show: 1-… and 2-… – i don’t need that.

    In prices.php
    line 1086: function ppom_price_cart_fee
    line 1140: $label = “{$fee_no}-{$label} ({$option_label})”;

    Cutting {$fee_no}- works. Is it possible to hook that from my template function file and rewrite permanently?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    we have provided the filter on line number 1141

    apply_filters('ppom_fixed_fee_label', $label, $fee, $item);

    you can add this filter into your theme’s functions.php 🙂

    Thread Starter ipolska

    (@ipolska)

    Can you show an example use of this?

    
    add_filter('ppom_fixed_fee_label', function($label, $fee, $item){
       return $label;
    },22,3);
    
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Hide $fee_no’ is closed to new replies.