Home Forums Basel support forum Sold Out text

Sold Out text

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #1774

    Funkierbike
    Participant

    Hello,

    I would like to know how I can change the ‘sold out’ text to something else.

    Thanks,

    Yuval.

    #1776

    Artem Temos
    Keymaster

    Hello,

    Could you please provide a screenshot where this text is located? Is it included in our theme or comes with woocommerce?

    #1778

    Funkierbike
    Participant

    I think it’s included in your theme.
    You can see it for example here: https://www.funkierbike.com/product-category/men/summer-long-sleeve-jerseys/

    #1780

    Artem Temos
    Keymaster

    Yes, it is our theme word. You can change it with Loco Translate plugin. Here is a video tutorial that should help you https://www.youtube.com/watch?v=tAFq1yTfWfU

    #1782

    Funkierbike
    Participant

    Ok, thanks.

    In addition, you can see here:
    https://www.funkierbike.com/product-category/men/shorts-men/
    that there are some space between the products.
    Do you have any idea what is the reason for that problem?
    you can see it also here:
    https://www.funkierbike.com/product-category/men/short-sleeve-jerseys-men/
    under the Sorrento product. The Sorrento have a review and stars so maybe it will help you to understand the problem.

    Thanks.

    #1783

    Artem Temos
    Keymaster

    We have found the following CSS code snippet in your child theme that breaks your products grid, please remove it

    error

    #1788

    Funkierbike
    Participant

    Hey,

    I did it and it didn’t solve the problem πŸ™

    #1789

    Funkierbike
    Participant

    In addition, I didn’t managed to change the ‘sold out’ text as you told me.
    Do you know where is the source of this text so I can change it on the source file?

    #1791

    Funkierbike
    Participant

    Ok, the problem with the space on the category page been solved and now it’s ok.

    #1796

    Artem Temos
    Keymaster

    This text is located in the file \basel\woocommerce\loop\sale-flash.php

    #2018

    Funkierbike
    Participant

    Hey, I tried to go for the \basel\woocommerce\loop\sale-flash.php file and change the ‘Sold out’ text but when I do that I makes me an error on the category page and it’s write:

    Parse error: syntax error, unexpected ‘soon’’ (T_STRING) in /home/funkiernewbike/public_html/wp-content/themes/basel/woocommerce/loop/sale-flash.php on line 25

    Do you know what is the problem?

    Thanks πŸ™‚

    #2025

    Artem Temos
    Keymaster

    Try to place the following code to this file

    <?php
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly
    }
    
    global $post, $product;
    
    ?>
    <?php if ( $product->is_on_sale() ) : ?>
    
    	<?php echo apply_filters( 'woocommerce_sale_flash', '<span class="onsale">' . __( 'Sale', 'woocommerce' ) . '</span>', $post, $product ); ?>
    
    <?php endif; ?>
    
    <?php if ( ! $product->is_in_stock() ) : ?>
    
    	<?php echo apply_filters( 'basel_stock_flash', '<span class="out-of-stock-label">' . __( 'Soon', 'basel' ) . '</span>', $post, $product ); ?>
    
    <?php endif; ?>
    
    #2028

    Funkierbike
    Participant

    Great, I managed to change it to ‘Coming soon’ as I want but not I have to make the font-size smaller because it’s out of the circle.
    How can I do that?

    Thanks.

    #2033

    Artem Temos
    Keymaster

    Try to add the following code

    .out-of-stock-label {
        padding: 15px 0;
        font-size: 8px;
    }
    #2037

    Funkierbike
    Participant

    You are great πŸ™‚

    Thanks a lot!

    #2042

    Artem Temos
    Keymaster

    You are always welcome πŸ™‚

Viewing 16 posts - 1 through 16 (of 16 total)