• Resolved tomslavik

    (@tomslavik)


    We have free version of plugin (v1.5.2.)
    A customer ordered 6x 30,00 EUR coupons, but the plugin generated 1x 180,00 EUR coupon.
    Do you have any idea, what could go wrong?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support rzepsen

    (@rzepsen)

    Hello @tomslavik

    You would probably like the plugin to generate three coupons, exactly as described in the order. The solution to this problem would be to add the theme you are using to the functions.php file.

    /**
     * @snippet       Display Separate Cart Items for Product Quantity > 1 | WooCommerce
     * @how-to        Get CustomizeWoo.com FREE
     * @sourcecode    https://businessbloomer.com/?p=72541
     * @author        Rodolfo Melogli
     * @testedwith    WooCommerce 3.5.1
     * @donate $9     https://businessbloomer.com/bloomer-armada/
     */
     
    // -------------------
    // 1. Split product quantities into multiple cart items
    // Note: this is not retroactive - empty cart before testing
     
    function bbloomer_split_product_individual_cart_items( $cart_item_data, $product_id ){
      $unique_cart_item_key = uniqid();
      $cart_item_data['unique_key'] = $unique_cart_item_key;
      return $cart_item_data;
    }
     
    add_filter( 'woocommerce_add_cart_item_data', 'bbloomer_split_product_individual_cart_items', 10, 2 );
     
    // -------------------
    // 2. Force add to cart quantity to 1 and disable +- quantity input
    // Note: product can still be added multiple times to cart
     
    add_filter( 'woocommerce_is_sold_individually', '__return_true' );

    Best regards

    Plugin Support rzepsen

    (@rzepsen)

    Hello @tomslavik

    As we haven’t got any replies, I’m marking this topic as resolved for now.

    Best regards

    Plugin Support rzepsen

    (@rzepsen)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘One cupon instead of 6’ is closed to new replies.