• Resolved elankathir

    (@elankathir)


    Hi,

    We liked the idea (Out of Box) of this plugin to show QR for UPI payment without any Online Gateway Providers.

    In our requirement, we like to collect only the advance payment to process the order like 20%, 50%. Is there any way to make an option to collect advance payments in this plugin?

    Regards,
    Elankathir

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Sayan Datta

    (@infosatech)

    Hello,

    Could you please tell me, how you want to collect the remaining amount from your customers?

    Awaiting your return.

    Thanks!

    Thread Starter elankathir

    (@elankathir)

    Hi,

    Thank you for your quick reply!

    We primarily work on offline mode since we are a retail outlet located near the customer and we like to use the online tool to collect the orders from our customers for home delivery or store pickup.

    Generally, we collect advance payment of 20% or 30% while collecting the order, remaining will be paid by the customer while delivering the items (pickup from store/home delivery).

    Also, the final bill value may differ due to weight-based items (like fruits and vegetables). In other words, Customer may get 950g or 1.1kg when they order for 1kg of the specific item. Our retail billing system takes the actual weight of the items and creates the final bill, which may have some differences in the final value.

    So we are ended up collecting the remaining values in an offline way (Cash, Card, UPI, etc).

    Thanks.

    • This reply was modified 4 years, 11 months ago by elankathir.
    • This reply was modified 4 years, 11 months ago by elankathir.
    Plugin Contributor Sayan Datta

    (@infosatech)

    Hello,

    Add this code to the end of your theme’s functions.php file:

    function upiwc_update_order_total( $total ) {
        // Modify 30 according to your need.
        $total = ( $total * 30 ) / 100;
    
        return $total;
    }
    //add_filter( 'upiwc_order_total_amount', 'upiwc_update_order_total' );

    Thanks!

    Thread Starter elankathir

    (@elankathir)

    Hi,

    Thank you for your reply.

    I have added this code on the Snippet, but it looks like the function is not getting called..

    Code On Snippet

    add_filter( 'upiwc_order_total_amount', 'upiwc_update_order_total' );
    function upiwc_update_order_total( $total ) {
        $total = ( $total * 30 ) / 100;
        return $total;
    }

    Everything looks perfect, But I’m not sure about “upiwc_order_total_amount” !

    Plz help me to resolve this issue.

    Thanks in advance.

    Plugin Contributor Sayan Datta

    (@infosatech)

    Hi,

    Please scan the QR Code and try again.

    Thanks!

    Thread Starter elankathir

    (@elankathir)

    Yes ! I have tried the QR Code only after enabling this snippet.

    But it’s not working.. it shows the same total invoice value on the payment app (Paytm & BHIM App).

    Ex: I have added 10 qty of item A (Cost Rs.1 each) on the cart so that the total cart value Rs. 10. Then I have filled the checkout form for the total value of Rs. 10 and submitted for payment. Same order has been received at the back office (Woocommerce Order) and the user gets the option to scan the QR Code, So I have used my phone to scan the QR Code using my PayTM App and I have received the VPA and order id as a note along with the full value of the order (ie Rs.10). But we suppose to get Rs. 3 as per our code.

    Thanks ??

    Thread Starter elankathir

    (@elankathir)

    Hi..,

    It’s working now after updating the plugin.

    Thank you.

    Thread Starter elankathir

    (@elankathir)

    Hi,

    Looks like again, it’s not working after the latest updates.

    I have tried the QR Code only after enabling this snippet.

    add_filter( 'upiwc_order_total_amount', 'upiwc_update_order_total' );
    function upiwc_update_order_total( $total ) {
        $total = ( $total * 30 ) / 100;
        return $total;
    }

    But it’s not working.. it shows the same total invoice value on the payment app (Paytm & BHIM App). It also shows the Amount to be Paid (below the QR Code) as order total only.

    Plugin Contributor Sayan Datta

    (@infosatech)

    Hello,

    Please update the plugin to v1.0.9. It should work as expected.

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Option to Collect Part Payment like 50% as Advance’ is closed to new replies.