tanghuiyung
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] product variation term pagination not workingyou misunderstand what I mean….
Because I want to reorder product attribute terms. Now it splits to two page, so I can’t drag to reorder. It is nothing about shop page. I just find the screen option didn’t work, when I change setting to a different number in the backend terms page. Not knowing what’s wrong?Forum: Plugins
In reply to: [AJAX Login and Registration modal popup + inline form] translation errorHi,
I just delete all another files and the error message is gone. I think the plugin should be translated now.
Forum: Plugins
In reply to: [WooCommerce] hide shipping part of shipping field base on shipping methodHi,
I figure out this problem.
Here is my code:
add_action( ‘woocommerce_after_checkout_form’, ‘bbloomer_disable_shipping_local_pickup’ );function bbloomer_disable_shipping_local_pickup( $available_gateways ) {
// Part 1: Hide shipping based on the static choice @ Cart
// Note: “#customer_details .col-2″ strictly depends on your theme
$shippingSelector = ‘#shipping_last_name_field.form-row.form-row-last,#shipping_country_field.form-row.form-row-wide,#shipping_address_1_field.form-row.form-row-wide,#shipping_address_2_field.form-row.form-row-wide,#shipping_city_field.form-row.form-row-wide,#shipping_state_field.form-row.form-row-wide,#shipping_postcode_field.form-row.form-row-wide,.woocommerce-additional-fields’;$chosen_methods = WC()->session->get( ‘chosen_shipping_methods’ );
$chosen_shipping = $chosen_methods[0];
if ( 0 === strpos( $chosen_shipping, ‘ecpay_shipping’ ) ) {
?>
<script type=”text/javascript”>
jQuery(‘<?php echo $shippingSelector ?>’).fadeOut();
</script>
<?php
}// Part 2: Hide shipping based on the dynamic choice @ Checkout
// Note: “#customer_details .col-2″ strictly depends on your theme?>
<script type=”text/javascript”>
jQuery(‘form.checkout’).on(‘change’,’input[name^=”shipping_method”]’,function() {
var val = jQuery( this ).val();
if (val.match(“^ecpay_shipping”)) {
jQuery(‘<?php echo $shippingSelector ?>’).fadeOut();
} else {
jQuery(‘<?php echo $shippingSelector ?>’).fadeIn();
}
});
</script>
<?php}
Hi,
thanks you solve most of my questions. for number 2 there are still some problems.
blue check box:tick inside the checkbox is disappear, and also when it is checked,
the outline of check box is blue.(it should be some color like dark gray…)for number three, I still see it. but is I disable jetpack. It will be gone.
Forum: Plugins
In reply to: [WooCommerce] layout problemHi,
thanks a lot, it is better. At least it remove those white space. But as you said,it is not exactly what I want…those lines should be at the bottom of the left side.
https://drive.google.com/file/d/1ag1iOG-6wGJZSSVQEBiuyztl7UDY2ym1/view?usp=sharing