小编Fra*_*ndo的帖子

WooCommerce 在结帐页面上使用 ajax 向购物车总数添加自定义费用

I am trying make it when user changes the Shipping address select dropdown it dynamically add a fee to cart totals using ajax.I could able to to get the value but when select a another state it wont update the totals.

我的ajax请求:

jQuery(document).ready(function () {
    jQuery('#shipping_state').change(function () {
        var data = {
            action: 'woocommerce_custom_fee',
            security: wc_checkout_params.update_order_review_nonce,
            add_order_fee: 'state',
            post_data: jQuery('form.checkout').serialize()
        };
        jQuery.ajax({
            type: 'POST',
            url: wc_checkout_params.ajax_url,
            data: data,
            success: function (code) {
                var result = '';
                result = jQuery.parseJSON(code);
                if …
Run Code Online (Sandbox Code Playgroud)

php ajax wordpress woocommerce woothemes

6
推荐指数
1
解决办法
5935
查看次数

像@mentions一样反应原生Facebook

任何人都使用@mentions实现TextInput,就像它在脸书和推特中的表现一样?

我试过https://github.com/harshq/react-native-mentions但是没有处理删除.

mention react-native mentionsinput.js

5
推荐指数
0
解决办法
599
查看次数