truongln88
Forum Replies Created
-
Hi @webtoffee,
I’m using this plugin https://www.themehigh.com/product/woocommerce-checkout-field-editor-pro/ to add custom fields and custom fees to the checkout page.
Because of this behaviour I switched to the old good deprecated paypal plugin and it works perfectly.
Thank you.
Why this code part is commented out?
//when checkout using express button some fee details are not saved in order //$order = wc_get_order($args['order_id']); /*if(!empty(WC()->cart->get_fees()) && (count($order->get_fees()) != count(WC()->cart->get_fees()))){ foreach( $order->get_items( 'fee' ) as $item_id => $fee_obj ){ $fee_item_data = $fee_obj->get_data(); $fee_data_id = $fee_item_data['id']; $order->remove_item($fee_data_id); } //adding fee line item to order foreach ( WC()->cart->get_fees() as $fee_key => $fee ) { $item = new WC_Order_Item_Fee(); $item->legacy_fee = $fee; $item->legacy_fee_key = $fee_key; $item->set_props( array( 'name' => $fee->name, 'tax_class' => $fee->taxable ? $fee->tax_class : 0, 'amount' => $fee->amount, 'total' => $fee->total, 'total_tax' => $fee->tax, 'taxes' => array( 'total' => $fee->tax_data, ), ) ); // Add item to order and save. $order->add_item( $item ); $order->save(); $order->calculate_totals(); } }*/
I see this comment in another thread: “The plugin sends the total amount including the shipping charge from the cart page.”
We calculate programmatically some extra fees based on custom fields in checkout page. If the comment above is correct, then our fees won’t be passed to paypal. Do you have any solution for this? Why do you take the amount from cart page, not checkout page? Thank you.
Forum: Plugins
In reply to: [Order Tip for WooCommerce] Wrong label in checkout summaryIn line 64 https://plugins.trac.www.ads-software.com/browser/order-tip-woo/tags/1.1.2/frontend/assets/js/woo-order-tip.js#L64 the current label is used for the new amount. Could you fix this? Thank you.
Forum: Plugins
In reply to: [Order Tip for WooCommerce] Wrong label in checkout summaryThe POST request has the wrong label, please have a look https://asialoop-public.s3.eu-central-1.amazonaws.com/others/2021-03-11_09-08-55.png
Hi,
yes, but it doesn’t change the address of the customer.
Do you know any way to block the navigation to payment from checkout page. In other words, is it possible to implement some kind of checks before payment?
Regards,
Truong