Current stock problem

I have a problem.
The current stock is kept but not displayed on the website.
These products are shipped externally via a dropshipping app.
The stock is therefore kept up-to-date via the dropshipping app.
My own products that are shipped via my address are displayed.
Is there an easy way to show the stock on the product page of my website?

I found this line in my-product.liquid, what should I change here?

              {%- when 'inventory' -%}
                <p
                  class="product__inventory{% if block.settings.text_style == 'uppercase' %} caption-with-letter-spacing{% elsif block.settings.text_style == 'subtitle' %} subtitle{% endif %}{% if product.selected_or_first_available_variant.inventory_management != 'shopify' %} visibility-hidden{% endif %}"
                  {{ block.shopify_attributes }}
                  id="Inventory-{{ section.id }}"
                  role="status"
                >
                  {%- if product.selected_or_first_available_variant.inventory_management == 'shopify' -%}
                    {%- if product.selected_or_first_available_variant.inventory_quantity > 0 -%}
                      {%- if product.selected_or_first_available_variant.inventory_quantity
                          <= block.settings.inventory_threshold
                      -%}
                        <span class="svg-wrapper" style="color: rgb(238, 148, 65)">
                          {{- 'icon-inventory-status.svg' | inline_asset_content -}}
                        </span>
                        {%- if block.settings.show_inventory_quantity -%}
                          {{-
                            'products.product.inventory_low_stock_show_count'
                            | t: quantity: product.selected_or_first_available_variant.inventory_quantity
                          -}}
                        {%- else -%}
                          {{- 'products.product.inventory_low_stock' | t -}}
                        {%- endif -%}
                      {%- else -%}
                        <span class="svg-wrapper" style="color: rgb(62, 214, 96)">
                          {{- 'icon-inventory-status.svg' | inline_asset_content -}}
                        </span>
                        {%- if block.settings.show_inventory_quantity -%}
                          {{-
                            'products.product.inventory_in_stock_show_count'
                            | t: quantity: product.selected_or_first_available_variant.inventory_quantity
                          -}}
                        {%- else -%}
                          {{- 'products.product.inventory_in_stock' | t -}}
                        {%- endif -%}
                      {%- endif -%}
                    {%- else -%}
                      {%- if product.selected_or_first_available_variant.inventory_policy == 'continue' -%}
                        <span class="svg-wrapper" style="color: rgb(62, 214, 96)">
                          {{- 'icon-inventory-status.svg' | inline_asset_content -}}
                        </span>
                        {{- 'products.product.inventory_out_of_stock_continue_selling' | t -}}
                      {%- else -%}
                        <span class="svg-wrapper" style="color: rgb(200, 200, 200)">
                          {{- 'icon-inventory-status.svg' | inline_asset_content -}}
                        </span>
                        {{- 'products.product.inventory_out_of_stock' | t -}}
                      {%- endif -%}
                    {%- endif -%}
                  {%- endif -%}
                </p>

I solved it myself.

To make the stock for products updated via the dropshipping app visible on your website, you need to remove the condition that hides inventory information when the inventory is not managed by Shopify.

  1. Remove the visibility-hidden part or adapt it to always show the inventory, regardless of whether it’s managed by Shopify.
  2. If you also want to ensure that the inventory quantity from your dropshipping app is displayed, ensure that the block processing the inventory_quantity does not depend solely on Shopify management.

First, confirm that the inventory for your dropshipped products is being tracked in Shopify not just within the app:

Go to Shopify Admin Products.

Click on a product that’s not showing stock.

Scroll to the Inventory section.

Make sure Track quantity is checked.

Ensure the inventory location e.g, the dropshipping app is selected.

If the app syncs inventory but doesn’t mark it to Track quantity in Shopify you may need to adjust that app’s settings or contact the app developer.