• Resolved mrsmurf

    (@mrsmurf)


    Nice plugin, but there is a bug..

    However I wanted to have one “Free shipping (hide other methods)” method with some rules when a customer applies a discount code and another “Free shipping (hide other methods)” method with different rules when a customer have a cart value over a fixed amount.

    Adding one “Free shipping (hide other methods)” method works fine, but as soon as I add one more “Free shipping (hide other methods)” method then my wordpress runs out of memory and the page hangs.

    [php:error] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/wp-content/plugins/woocommerce/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php on line 70, referer: https://perssonsgarn.se/wp-admin/admin.php?page=wc-settings&tab=shipping&zone_id=1

    In my use-case I have three “normal” shipping methods: Standard, Express and Local Pickup.

    For users that purchase over $20 i want a “Free shipping (hide other methods)” method named “Free Standard shipping” that hides the “normal” Standard shipping method.

    For users with a discount code i want a “Free shipping (hide other methods)” method named “Free Express shipping” that hides the “normal” Standard, Express and Local Pickup options as well as the “Free shipping (hide other methods)” method named “Free Standard shipping” if that is shown.

    Best regards

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Multiple “Free shipping (hide other methods)” methods’ is closed to new replies.