• Resolved mjwareha

    (@mjwareha)


    Hello,

    All my gift vouchers are sold individually, but when a customer adds a gift card to their cart, the product name is appended with the price of the voucher, so they have the price twice – once on the product name & once on the line item.

    Is there a way to just use the product name as the cart item and remove the confusing price appendage?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author pimwick

    (@pimwick)

    The PW Gift Card product type is an extension of the Variable product type available in WooCommerce.

    By default, WooCommerce will display the “Product Name – Variation Name” on the Cart and Checkout pages. They do provide a hook to alter this behavior.

    Add this to your functions.php file or use a plugin such as Code Snippets to add it to your site:

    add_filter( 'woocommerce_product_variation_title_include_attributes', '__return_false' );

    Thread Starter mjwareha

    (@mjwareha)

    Thanks for the snippet, it worked like a charm.

    Plugin Author pimwick

    (@pimwick)

    Great, glad to hear that did the trick!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove Price from Product Name’ is closed to new replies.