Home Forums WoodMart support forum How to show 0 stock status on variable products

How to show 0 stock status on variable products

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #519406

    Rene
    Participant

    Hi there,

    Good day! I hope the WoodMart team is well.

    A quick 2 questions.
    I have a lot of variable products in the shop and i’ve checked also almost every topic about this on the support section, however i’m not able to find the solution for it:

    Question 1: (see example product in private content)
    At this variable product i have 1 variable on stock (colour chrome), and other ones not.
    At the chrome the displaying of the stock status works.
    At the other colours isnt working, and it isnt dispalying the 0 stock status.

    a. The progressbar is enable at: Dashboard > Theme Settings > Single Product > Elements > Stock
    b. Every variable product has its values inserted into the inventory tab of the product page, and “manage stock” is checked on.
    c. Woocommerce > settings > inventory > inventory > inventory display is on “show always stock”
    d. I’m comming from another builder where the standard dispay was working at the products

    How can i achive that the stock status will alway display, even when stock status is 0 at variable products?

    Question 2: (see Question 2 stock text adjustment code snippet in priv content)
    I’ve wrote a simple PHP snippet that overwrites the standard woocommerce stock status display text at products with certain tags. It is proved to be working with standard woocommerce. However this isnt working anymore with the WoodMart theme.
    Could you guys put me in the right direction to make it working?

    Many thanks in advance,

    Br. Rene

    #519414

    Rene
    Participant

    A quick third question:
    How to change the category-nav-link background colour?
    I’ve tried the advance typographi but it doesnt seem to be targeting this.

    Please see image attached in priv info.

    Many thanks in advance,

    #519833

    Luke Nielsen
    Keymaster

    Hello,

    I apologize for the delay.

    1. Please navigate to WooCommerce -> Settings -> Products and enable the “Out of stock visibility” option here: https://take.ms/303aE

    2. Could you please attach some screenshots from the default theme of how it is working?

    3. Try to use the below code, define it in Theme Settings -> Custom CSS -> Desktop CSS.

    .woocommerce-page .page-title .wd-nav-product-cat .children.wd-dropdown-menu {
        background-color: #121355;
    }

    Kind Regards

    #520041

    Rene
    Participant

    Dear Luke,

    No problem, many thanks for your reply.
    Question 3 has been solved. Many many thanks!

    About 1:
    I have enabled the option as requested, and used all woocom status tools, purged all chaches, but no result.
    Could you please check again?

    About 2, i have unfortunatety no example of how it was working as i already deleted the theme.
    I think Woodmart is better allready;)
    It basicly worked this this: It targets only the woo_cust_stock_quantity_text which is by default a translatable text field, and there to be customized.

    On this way, core function are not affected such as the . $stock. fuction ect. It is pretty easy to overrwrite it, and when the standard “on stock” text is smartly rewrapped, it can be used for anything.

    The PHP snippet in the previous extra information consist of multiple If terms that each targets a Tag ID to give the same standard Woo com .$stock but with different woo_cust_stock_quantity_text for each tag. So basicly it’s only 5 lines of PHP code to target 1 tag, and 2 additional lines for each more tag.

    In WooCommerce Custom taxonomies like product categories or product tags are not managed by Product Variations, but by their parent Variable Product.

    Could you please help me with this? Perhaps you could provide this function as a future addition to all your customers to have great stock texts with accurate custom lead/delivery times per product per tag.

    Many thanks in advance,

    Br. Rene

    #520082

    Rene
    Participant

    Dear Luke,

    About question 1: I have just tried to disable all plugins, only woocm + woodmart core, but still no result.

    Br.

    Rene

    #520300

    Luke Nielsen
    Keymaster

    Hello,

    Please confirm the permission for plugins deactivation, and switch to the parent/default theme. As soon as we complete the testing of this plugin we will enable it all back, You would better make the full backup of your site.

    So I will check both issues. Thank you in advance.

    Kind Regards

    #520454

    Rene
    Participant

    Dear Luke,

    Thank you for your reply.

    Please hold on a few days and i”ll have to finish something first.
    I’ll post here when ready.

    To be continued,

    Br. Rene

    #520762

    Luke Nielsen
    Keymaster

    Hello,

    Okay, I will wait for your response.

    Have a good day!

    Kind Regards

    #522916

    Rene
    Participant

    Dear Luke,

    All is ready to be tested.
    Please note, Artem is also testing something very soon, therefor only Xtemos plugins are activated at the moment.
    But i think that needs to be activated anyhow.

    Please see Artem issue here:
    https://xtemos.com/forums/topic/render-blocking-issue-woo-widget-product-cat-shopping-cart-and-header-el-searc/#post-522818

    About the php code not working. I was futher testing it on a standard theme (my previous theme was divi, i tested in standard 22 and 23 with no plugins). And i might suspect that with the latest woocommerce update of ca 2 weeks a go it could have gotten broken aswell. I’m not sure about it, as i migrating website at that exact time.

    However, it doesnt change the issue of the 0 stock status of variable product are not showing.

    However, I was checking to bypass the PHP snippet methoded with a Xtemos template method aswell.
    Thus showing different templates with a custom stock notification based on tag.
    I’ve came up with a template solution mentioned in this topic:
    https://xtemos.com/forums/topic/page-title-adjustment/
    However, i believe your Aizaz, suppose to check it with your lead developer yet, or the the latter havnt gotten to it yet.

    My appologies that it is going a bit messy over multiple topics, but i guess it all a bit related.

    I’ve made full back-ups ect.

    Awaiting your testing to have 0 stock status shown, and / or if willing, to check if it is possible to have a cutom stock status shown with a PHP snipped based on tags with the Xtemos theme.

    Many thanks in advance,

    Br. René

    #522969

    Luke Nielsen
    Keymaster

    Hello,

    For now, it has the same behavior as on the default theme:

    https://take.ms/Y6ZTw

    So if you want to hide the out of stock attributes, I suggest you disable the “Allow backorders?” option here: https://take.ms/iidLCX and change the design of out of stock attributes in its settings (Products -> Attributes): https://take.ms/5ZE5Q

    As a result, it will have such appearance: https://take.ms/6MeHI

    Let me know if you have any questions.

    Kind Regards

    #523697

    Rene
    Participant

    Dear Luke,

    Good day!

    Many thanks! i’ve got them shown.

    That issue is solved.

    Many thanks,

    Br. Rene

    #523775

    Luke Nielsen
    Keymaster

    Hello,

    You are welcome!

    If you do not mind, can you please leave 5 stars rating for our theme by going here: http://themeforest.net/downloads It will allow us to release more updates and provide dedicated support in future. It would encourage our work a lot.

    Have a good day!

    Kind Regards

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

The topic ‘How to show 0 stock status on variable products’ is closed to new replies.