• Resolved kmmathis

    (@wereallthieves)


    Hello,

    I’m in need of an additional filter in the cart html on line 1341 of wpc-fly-cart.php. Below is my example using woofc_cart_item_inner as the filter name

    Basically I just need the filter there to add some additional html between the .woofc-item-inner and .woofc-item divs.

    
    $cart_html .= '</div><!-- /.woofc-item-inner -->';
    $cart_html .= apply_filters( 'woofc_cart_item_inner', '', $cart_item );
    $cart_html .= '</div><!-- /.woofc-item -->';
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Henry N

    (@henrynguyen259)

    Hi @wereallthieves.

    Show at, them I have to 1 filter as after:

    apply_filters( 'woocommerce_cart_item_remove_link', '<span class="woofc-item-remove"><span class="hint--left" aria-label="' . esc_attr( self::localization( 'remove', esc_html__( 'Remove', 'woo-fly-cart' ) ) ) . '"><i class="woofc-icon-icon10"></i></span></span>', $cart_item_key );

    If the parameters passed in this filter are not enough to solve your problem. We will add the $cart_item parameter in a future update.

    Thanks for your feedback.

    Plugin Author WPClever

    (@wpclever)

    Hi @wereallthieves

    Thanks for your suggestion!

    We already added a new filter hook ‘woofc_below_item_inner’ at this position on the latest version 5.0.5

    $cart_html .= '</div><!-- /.woofc-item-inner -->';
    $cart_html .= apply_filters( 'woofc_below_item_inner', '', $cart_item );
    $cart_html .= '</div><!-- /.woofc-item -->';
    Thread Starter kmmathis

    (@wereallthieves)

    This is perfect, thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add another filter to cart html’ is closed to new replies.