Home Forums WoodMart support forum Issues with Product Layout

Issues with Product Layout

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #638807

    DELAYON
    Participant

    Hi there!

    We have an issue on our product page thats most likely linked to the customised product layout:

    We use a Back in Stock notifier via an external plugin. This plugin add a popup button and signup field in the add to cart section, once a product is sold out. However this button is not displayed. We have tried two different plugins doing the same thing, but it’s the same with both plugins. We are running the same theme and plugin (inc. settings) on a different page and it works fine. We have also troubleshooted the website and the error is persistent, same with a different theme.

    Also the add to cart button doesn’t change to “Out of stock”.
    We have tried locating the translation in a different translation plugin but could not find it.
    Please advice.

    Thanks

    #639094

    Hung Pham
    Participant

    Hi DELAYON,

    Thanks for reaching to us.

    1. WoodMart theme does have Waitlist option, please try to use it without using an extra plugin. You can enable it under Theme Settings > Shop > Waitlist.

    2. Regarding translation, please provide URL of the mentioned page, so I can take a closer look.

    Regards,

    #639120

    DELAYON
    Participant

    Hi there!
    Thanks for the info. We have now enabled the waitlist feature and it des work. Where can we change the text “This product is currently sold out”? We use Loco Translate to translate plugins and theme, but we cant find this expression in the WoodMart .pot files.

    On both website, the add to cart button does not change it`s text to sold out, once the product stock equals zero.
    We also couldn`t find the “out of stock” text n the pot files.

    thanks,

    Nico

    #639238

    Hung Pham
    Participant

    Hi DELAYON,

    + In order to change / translate words. Please make sure you synced the strings first before changing / translating WooCommerce, WoodMart Core plugins and WoodMart theme. You can refer to article

    https://xtemos.com/docs-topic/theme-translation/
    https://xtemos.com/docs-topic/how-to-make-woodmart-multilingual-with-wpml/

    + You are also need to select the language for the backend and theme settings for admin from the admin user profile, please edit the user’s profile and then select the language for that user it will show the same on the backend.

    + Some strings related to Wishlist / Compare / Login & Register page, you can change in Theme Settings > Shop or Theme Settings > My account https://prnt.sc/W8Tt95stG3YC

    Regards,

    #639354

    DELAYON
    Participant

    Hell0,

    thanks for the info.
    We updated the PO files from your link and edited it to our demands. We also changed the admin language, however the Translations are not considered. The theme s displayed in english.

    #639370

    DELAYON
    Participant

    Please find the translation status below.

    Attachments:
    You must be logged in to view attached files.
    #639708

    Hung Pham
    Participant

    Hi DELAYON,

    Thanks for your patience.

    Would you mind if I deactivate extra plugins for testing? Please confirm me back.

    Regards,

    #639765

    DELAYON
    Participant

    We use a troubleshooting plugin, so you can deactivate all plugins in troubleshooting mode. Would that work?
    Thanks

    #639843

    Hung Pham
    Participant

    Hi DELAYON,

    So you can create a dev site – also called a Staging platform where you can test issues, enable/disable features/plugins thus such changes will affect the main site. The below article will help you to create it:

    https://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/

    Regards,

    #642739

    DELAYON
    Participant

    Hi there! Please find the staging site via the plugin.
    Thanks.

    #642929

    Hung Pham
    Participant

    Hi DELAYON,

    I’ve fixed your issue. Please check your site again.

    Format name should be woodmart-de_DE.po not woodmart-de.po

    Regards,

    #643289

    DELAYON
    Participant

    Hi there!

    Thanks a lot.

    Concerning the second issue: is there an option to change the add to cart to sold out once the product is out of stock? Of course ideally without having to add any code to functions.php?

    #643348

    Hung Pham
    Participant

    Hi DELAYON,

    When product is out of stock, the add to cart button won’t display. Please provide URL of the mentioned page, so I can take a closer look.

    Regards,

    #643376

    DELAYON
    Participant

    Hi!

    So we have issues on our alpine-safety.org site. I have attached a link below where the issue is visible. We manually changed the translation to “sign up now”.
    On our other page, Delayon-eyewear.com, the add to cart button is still displayed, however at least we see a little out of stock notification above. Please find screenshots and links below.
    Both pages use the same customised layout, only with minor differences.

    Attachments:
    You must be logged in to view attached files.
    #643685

    Hung Pham
    Participant

    Hi DELAYON,

    Please let me explain better:

    The Add to cart button still showing with Variable products, so it is actually not an issue. And there is no way to change text of the button with CSS code only. You can add below code to functions.php of child theme to change the text

    add_filter( 'woocommerce_product_single_add_to_cart_text', 'custom_add_to_cart_text_for_variable' );
    
    function custom_add_to_cart_text_for_variable( $text ) {
        $product = wc_get_product( get_the_ID() );
        if ( $product && $product->is_type( 'variable' ) ) {
            return 'Register Now';
        }
        return $text;
    }

    Regards,

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