How to add Paypal cost from meta?

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #89937
    Carlo Semplici
    Participant

    Hi there,
    when I add Item handling fees in Orders > Admin Order Edit > it will calculated only once, even if there is 3 items in one. how do I can make it calculate this fixed number per items in the order?

    #89938
    Zohaib
    Participant

    Hi Ida,

    There are 2 options for handling fees in the plugin’s setting.

    1. Orders > Admin order edit > Item handling fees if you enable this option, if an order has multiple products you can add handling fees for each product when you edit the order.

    2. Order > Extra Costs: Per Order > Handling fees if you enable this, the you will get a new meta box in the order edit page and you can add the handling fees for the whole order here.

    #89939
    Carlo Semplici
    Participant

    Hi, Thanks I saw it. but I want to put default value for Item handling fee per item.
    exactly like method one. but not fill the value every time.
    like a fixed fee that added automatically per item each time.

    #89940
    Zohaib
    Participant

    Hi,

    Unfortunately, it is not possible to add a fixed handling fee per item to all orders. You can use the option under Orders > Extra Costs: All Orders and set a Fixed cost or Percent cost.  But again this would be per order and not per item.

    #89941
    Carlo Semplici
    Participant

    Thanks. we can add it to product cost then.
    my last question is about paypal fee meta.
    as you know recently paypal plugin for woocommerce is changed to this  and for this plugin I can not find the proper meta key for paypal fee. I used these two
    _PayPal_Transaction_Fee
    _ppcp_paypal_fees

    but seems not working.

    #89942
    Pablo
    Moderator
    Plugin Support

    Hi Ida,

    I found out the Paypal fee is being saved with the meta _ppcp_paypal_fees as you pointed out but not as a simple string. It is being saved in the array form.

    So I improved the Orders > Extra Costs: From Meta option for you. Previously it was only possible to access an order meta if there was a string returning from it. Now it’s possible to access a serialized array too using dots.

    Then you can access the Paypal fee using this:

    _ppcp_paypal_fees.paypal_fee.value

    I’ve improved the option description as well. You can find this tip over there too.

    Please update the plugin to version 2.5.3 I just released and let me know if it works 😉

    #89943
    Carlo Semplici
    Participant

    yes. it is fixed now.
    Thanks a lot for your support.

    #89944
    Pablo
    Moderator
    Plugin Support

    Great, glad to hear it.

    In that case, please consider leaving a review here or here if you are enjoying the plugin/support. It would be much appreciated 🙂

    #89945
    Carlo Semplici
    Participant

    sure. absolutely I will do that.
    also there is still a little bug. those changes that you made for new paypal. it does not effect on new orders. and I have to do bulk recalculate every-time to meta fee added to new orders. which stripe for example is not like that.

    #89946
    Pablo
    Moderator
    Plugin Support

    Ok,

    I’ll take a look.

    #89947
    Carlo Semplici
    Participant

    Hi dear, Any update on this?
    paypal meta fee after those changes only added every time I do bulk calculated all orders. for new orders not coming automatically like stripe.

    #89948
    Pablo
    Moderator
    Plugin Support

    Hi Sina,

    Sorry for the delay. I’ll give you a feedback about it at the end of the day.

    #89949
    Pablo
    Moderator
    Plugin Support

    Please try to enable the “Advanced > Force costs update” options and let me know if it helps.

    #89950
    Carlo Semplici
    Participant

    I did it on but it did not change anything.

    #89951
    Pablo
    Moderator
    Plugin Support

    Hi again Sina,

    Please try to enable a new option I’ve created for you on version 2.5.4 I just released:
    – Advanced > Force costs update > Auto fill empty order items costs on order meta update

    Let me know if it helps 😉

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