Repository Forums Support WooCommerce Extended Coupon Features PRO Free Product Selection Text Display for Product Variants

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5172
    ict-admin
    Participant

    Hi there,

    I have created a coupon that functions like a buy one get one free product on the site except the free product must be chosen by the customer.

    I included product variants among the list of choices for them to pick but I noticed that the product selection for those product does not display its product variant attribute name.

    Here is an example image: https://imgur.com/XZBmAxJ

    Any advice would be appreciate for this.

    Thank you.

    #5181
    Soft79
    Keymaster

    Hi,

    You can achieve this with a template override:

    1) copy wp-content/plugins/woocommerce-auto-added-coupons-pro/templates/coupon-select-free-product.php to:
    wp-content/themes/YOUR-CHILD-THEME/woocommerce-auto-added-coupons/coupon-select-free-product.php

    2) In the copied file find $product->get_title() and replace with $product->get_name()

    this should fix it for you.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.