jdesignz
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Minimum Amount for Local Delivery – Working!Update!
Found the culprit!On class-wc-shipping-local-delivery.php, find and edit the line:
From
return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', true, $package );
To
return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', $is_available, $package );
HTH.
Forum: Plugins
In reply to: [WooCommerce] Minimum Cart Amount for DeliveryIt works like a charm when I update the cart to the specific value needed for Local Delivery to show up. But I get a little problem, when the cart updates to 1 item only, Local Delivery shows up can be tick. But when the value is 2 or so, it does not show up (except to the right value and amount it need before showing up).
Forum: Plugins
In reply to: [WooCommerce] Minimum Cart Amount for DeliveryI got the same question here. I’d like to have a minimum amount for my local delivery same as the free shipping but free shipping does not have a delivery fee. So here’s what I did..
I open up these files on Notepad++ (or any editor you use)
– class-wc-shipping-free-shipping.php
– class-wc-shipping-local-delivery.phpOn class-wc-shipping-free-shipping, find and copy these lines:
$this->enabled = $this->get_option( 'enabled' ); $this->min_amount = $this->get_option( 'min_amount', 0 ); $this->requires = $this->get_option( 'requires' );
Then paste them inside class-wc-shipping-local-delivery.php under function init().
Another one from free-shipping.php, find and copy these lines:
'requires' => array( 'title' => __( 'Free Shipping Requires...', 'woocommerce' ), 'type' => 'select', 'default' => '', 'options' => array( '' => __( 'N/A', 'woocommerce' ), 'coupon' => __( 'A valid free shipping coupon', 'woocommerce' ), 'min_amount' => __( 'A minimum order amount (defined below)', 'woocommerce' ), 'either' => __( 'A minimum order amount OR a coupon', 'woocommerce' ), 'both' => __( 'A minimum order amount AND a coupon', 'woocommerce' ), ) ), 'min_amount' => array( 'title' => __( 'Minimum Order Amount', 'woocommerce' ), 'type' => 'price', 'placeholder' => wc_format_localized_price( 0 ), 'description' => __( 'Users will need to spend this amount to get free shipping (if enabled above).', 'woocommerce' ), 'default' => '0', 'desc_tip' => true ) );
Then paste them on local-delivery.php under function init_form_fields().
Forum: Plugins
In reply to: [Import Tweets as Posts] CommentsThat gladly work without getting sweaty. Thanks you very much!
Oh, for the SQL thingy, here’s what I did (via phpAdmin)
UPDATE wp_posts SET comment_status = ‘open’;
Again, thanks!
Jhay