• Hi,

    Looking for a way to clearly mark items that will ship for free on my woo-commerce website.
    I am trying to find a plugin or snippet that will show something similar to the “on sale” bubble but with “Free shipping”. Is there a way to do this without editing the “on sale” bubble to say “free shipping”? I would still like “on sale” items to show “on sale” so editing the the bubble text is not an option.

    Even if it is not a bubble any kind of marking that would distinguish items that offer free shipping would solve my issue.

    Thank you.

    https://wordpress.org/plugins/woocommerce/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hey @palexandra,

    By default, shipping is calculated with your total products on cart and not on a per-product basis. You can use the per product shipping premium plugin for this, but I’m not sure if you can set a product as “free shipping” with that.

    Also, to add the bubble, you will still have to create a new function for it’s display. You won’t need to replace the “on sale” bubble though, as you will just have to hook your function to woocommerce_before_shop_loop_item_title. But you’ll have to add your own custom CSS for that.

    Hope this helps!

    Thread Starter Palexandra

    (@palexandra)

    Hi Wooassist,

    I see what you mean.
    I have my Free shipping set for orders over $99 (except for some big items that are exempt from this rule with a snippet in my function.php)
    I was thinking about a bubble for items over $99.00 just so that it would be clear that this items ship for free just for being $99 or over. Just to make them stand out a little more.
    My temporary solution was to install “jetpack for woocommerce” and use the setting “Use text instead of price” and use the text to say “$99.00 – Free Shipping”.
    I am not great with css so this is the best i could do so far.
    Any ideas?

    Hey @palexandra,

    For that you can use the code below I’ve created to check products that have prices greater or equal to $99.00 and show the free shipping bubble.

    add_action( 'woocommerce_before_shop_loop_item_title', 'woa_free_shipping_bubble' );
    function woa_free_shipping_bubble() {
        global $product;
    
        $price = $product->get_regular_price();
    
        if ( $price == 3.00 ) {
            echo "<span class='free-shipping-bubble'>free shipping</span>";
        }
    }

    All you need to do now is to add the styles for .free-shipping-bubble class.

    Thread Starter Palexandra

    (@palexandra)

    Hi @wooassist ,

    Thank you! Is this code something that can be used alone on my functions.php file or does it only work only when “per product shipping” is installed?
    Thanks!

    Surferchic

    (@surferchic)

    Hi guys,

    Do you know how to create a “On Special” or “Sale” bubble to show that the product is on sale or on special?

    I am not good with CSS. Appreciate if you could help.

    Rose

    Thread Starter Palexandra

    (@palexandra)

    Just an update on this:

    I found that for my specific case using woocommerce jetpack: Custom price labels does the job just fine. It is not a bubble but allows me to write “Free shipping” right besides the price (I am using the “instead of price” label and writing “$99 + Free shipping” on it for example).

    Products with prices “on sale” will still show the “on sale” bubble and it does not interfere with showing that this item is granted free shipping.
    This was the simplest solution I could find.
    Hope it helps!

    Cheers.

    Hi Palexandra… Have you ever find a solution for that?
    https://wordpress.org/support/topic/cross-reference-categories-for-search?replies=1

    Thank you

    Thread Starter Palexandra

    (@palexandra)

    Hi @nasroo7
    No, this is something I have not been able to figure out yet.
    If you do come across a solution, please let me know, it would be very much appreciated.
    Thanks!

    Hi Palexandra,
    Well, I will do.
    So far, the only option I found was to add Attributes, which enables me to make a Filtered search using “Woocommerce Layered Nav” Widget
    You place a few different of these widgets for each Attribute in your sidebar, and leave “AND” in the settings, so you can cross reference your products.
    And you can have a search of products that have a Characteristic 01, and 02: All from different categories, but they all share these two Characteristics.

    Or, during my research, I came across these (I didn’t purchase them):
    http://codecanyon.net/item/woocommerce-product-filter/8514038
    http://www.woothemes.com/products/product-finder/

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘"Free shipping" Bubble?’ is closed to new replies.