New Landing How can we help? Themeforest Theme Support Neighborhood Changing 'out of stock' text

Viewing 11 posts - 16 through 26 (of 26 total)
  • #233224
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me specific page url with issue. Anyway you can try to use this plugin https://wordpress.org/plugins/real-time-find-and-replace/.
    Thanks
    Mohammad

    #233227
    zigame
    Member
    Post count: 13

    Hi, Thank you for your reply.
    Please see the page with issue.
    http://zigame.jp/product/daisuke-kimura-trey-anastasio-band-ssgss/

    #233232
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Try to use this plugin https://wordpress.org/plugins/real-time-find-and-replace/.
    Thanks
    Mohammad

    #233237
    zigame
    Member
    Post count: 13

    I’ll try. Thank you!

    #233257
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Let me know your feedback.
    Thanks
    Mohammad

    #234763
    zigame
    Member
    Post count: 13

    Hi Mohammad,

    Sorry for the late response.
    I tried to use real time find and replace as you said, but could not be fixed.

    Can you see if I enter something wrong below?

    Find:
    <span class=”wishlist-out-of-stock”>’ . __( ‘Out of Stock’, ‘swiftframework’ ) . ‘</span>’

    Replace with:
    <span class=”wishlist-out-of-stock”>’ . __( ‘SOLD OUT’, ‘swiftframework’ ) . ‘</span>’

    Please advise!

    #234765
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom code at functions.php of child theme.

    add_filter( 'woocommerce_get_availability', 'sf_custom_get_availability', 1, 2);
    function sf_custom_get_availability( $availability, $_product ) {
       
        if ( ! $_product->is_in_stock() ) {
        	$availability['availability'] = __('SOLD OUT', 'woocommerce');
        }
        return $availability;
    }
    

    Thanks
    Mohammad

    #236632
    zigame
    Member
    Post count: 13

    Hi Mohammad,

    Thank you for above custom code. Although I still can not make child theme well, I tried to use this code at function.php of parent theme and it worked. I continue to make child theme. Could you please advise the code for “AVAILABE” too? (not “In Stock”)

    #236738
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this plugin https://wordpress.org/plugins/one-click-child-theme/ to make the child theme.
    Thanks
    Mohammad

    #237924
    zigame
    Member
    Post count: 13

    Hi Mohammad,
    Happy New Year!

    Thank you for teaching me how to make the child theme. I could make it well but I think maybe a font of the product name has been changed to “Bold”. http://zigame.jp
    Could you please advise how to change a normal font? Also the code for displaying “AVAILABE” too?

    Thank you for your help as always.

    #237989
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-

    .woocommerce ul.products li.product a {
       font-weight: normal !important;
    }
    

    Thanks
    Mohammad

Viewing 11 posts - 16 through 26 (of 26 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register