bellian
Forum Replies Created
-
Ach, sehe grade WC macht das genau so.. Da ham se wohl vergessen die zu promoten.
Danke.
Ich weiß aber nicht wie nachhaltig es ist auf die globale var $product zu vertrauen.Währe vlt etwas nachhaltiger auf WordPress explizite loop API zurückzugreifen
$product = wc_get_product(get_the_ID());Ok taxrates can be imported using:
\Vendidero\EUTaxHelper\Helper::import_tax_rates();So there is a simple fix for me:
the global “$product” is just empty. you can get them using:$id = get_the_ID();
$product = wc_get_product($id);By adding this just under the “global $product” solves all other errors too….
Please fix this 😉Forum: Plugins
In reply to: [GenerateBlocks] Query Loop Block – Default output when no postsHi, since the Query Loop may output some whitespaces,
:emptywill not work. Is there another way to introduce content here?I have noticed that there is a core/query-no-results block. this does the trick 😉
Just add it inside your loop and add content there.
- This reply was modified 3 years, 1 month ago by bellian.