Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #4569823
Problems with Smart Gift Cards
Open

Comments

  • Jake started the conversation

    Hi,

    Plugin Name: WPC Gift Cards for WooCommerce (Premium)
    Plugin URI: https://wpclever.net/
    Description: Sell, manage, and redeem digital gift cards with beautiful templates, analytics, and a powerful balance engine.
    Version: 1.0.0

    No email response so here goes...not sure if previous went through.
    1. Orders with only Gift Cards should really auto-Complete once sent as is usual practice.

    2. Gift Cards from orders that are refunded still show in Admin and My Account as Active, even though they cannot be used. Rather confusing on both sides. There needs to be further info or Disabled and not able to be Activated with further info ie Refunded. See screenshots.

    3. There really needs to be a way for Admin to send a manual Gift Card with info ie a manual Admin version of front-end that does not generate an order, that may go to a non-customer, and shows up in Admin Gift Card list.

    4. There is some HTML code showing at Gift Card acceptance on Cart/Checkout. I have not tracked down yet. See video.

    5.   Gift Cards are showing in Cart/Checkout INCLUDING Tax due to incorrect use of WOO add_fee(). See scrrenshot.
    I have tracked this down to /includes/class-wpcgc-cart-handler.php

    WOO states...###(do not enter negative amounts)###

    * @uses WC_Cart_Fees::add_fee 
    * @param string $name      Unique name for the fee. Multiple fees of the same name cannot be added. 
    * @param float  $amount    Fee amount ###(do not enter negative amounts)###. 
    * @param bool   $taxable   Is the fee taxable? (default: false). 
    * @param string $tax_class The tax class for the fee if taxable. A blank string is standard tax class. (default: '').
    WC()->cart->add_fee( $name, $amount, $taxable, $tax_class );

    I have also tried these variations and no good.

    $woocommerce->cart->add_fee( 'Plus Fee', -$fee, false, 'zero-rate' );
    $woocommerce->cart->add_fee( 'Plus Fee', -$fee, false, '0' ); 
    $woocommerce->cart->add_fee( 'Plus Fee', -$fee, false );

    This fix is a little beyond me.

    Love the front-end for choosing Gift Cards...well done!

    Jake

    Attached files:  Screenshot From 2026-06-11 17-48-57.png
      Screenshot From 2026-06-11 17-45-36.png
      Screencast From 2026-06-10 16-56-03.mp4

  • Jake replied

    Missed screenshot.

    Attached files:  Screenshot From 2026-06-11 17-52-54.png

  • Jake replied

    Added to start, missed the update.