Thanks! Works exactly as I need.
I think the main problem is that I’m using the custom gateway (we’re using the special tokens instead of money).
I implemented the process_payment method in my custom gateway where I send all requests. But this method runs after the process_checkout method from the standard WooCommerce functionality. So, the process_checkout creates the order, and only after that my custom gateway checks whether the user has enough tokens or not.
Hello, @sukafia !
Thank you for responding.
- Yes, I added the products to categories. Even more: I enabled the “Show product counts” option in the Product Categories widget. Now my widget displays not only the names of the categories, but also the number of the products in every category, and it’s not equal to zero, so the products really exist and they are placed in the categories.
- Yes, my main page is my Shop page.