• Resolved Luis Braschi

    (@casper-braske)


    Hello. I’m authoring a shipping method and got stuck one very small detail.

    In the file wcfm-script-wcfmmarketplace-settings.js there’s a function editShippingMethod bound to the pop-up’s “submit-ish” button responsible for sending the shipping method data to the back-end to save it.
    It turns out you can’t hook the data sent to the back-end. Trigering an event to manipulate the data.args object would suffice:

    jQuery( document.body ).trigger( 'wcfm_method_args', data.args );

    BTW I have other three plug-ins that could take advantage of that.

    Best regards.

    • This topic was modified 4 years, 3 months ago by Luis Braschi.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WC Lovers

    (@wclovers)

    It’s not possible to add custom shipping method by editing this JS file.

    You may use this filter for the purpose – vendor_shipping_methods

    Thread Starter Luis Braschi

    (@casper-braske)

    Sorry, but I think you are a little far from understanding what I mean here. I’m not asking how to add a shipping method. I already did it. Problem is, I have 12 fields for my method and I can’t save them because I can’t send them to the back-end so I’m proposing you to add this feature.

    Hope it’s clear now.

    Plugin Author WC Lovers

    (@wclovers)

    Understand, will do this in coming update.

    Thread Starter Luis Braschi

    (@casper-braske)

    Great! More costumers for us both.
    Thank you very much.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[feature] Allow authors to add third-party shipping methods to vendor’s zones’ is closed to new replies.