WebSite X5Help Center

 
Big S.
Big S.
User

"This product is not available" despite I set a + number as available quantity  en

Autor: Big S.
Visitado 479, Followers 1, Compartido 0  

I faced the "This product is unavailable" problem despite I set positive quantity in Availability Tab.
I use PHP 7.1 with MySQL 5.7. Database connection established, up and running. 5 tables are generated at launch, but nothing related to stock. In Preview mode appears the correct quantity but on online not.
Product list/update seemingly works, not produces an error at any rate. I feel like I tried everything and more:)

Any help would be much appreciated!

Publicado en
3 RESPUESTAS - 1 ÚTIL
Aleksej H.
Aleksej H.
Moderator

Hello.Try clearing your browser cache.Try deleting all site files from the hosting and re-uploading it.Is there a error when you update the number of items in the database?

Leer más
Publicado en de Aleksej H.
Big S.
Big S.
User
Autor

Thanks Aleksej, 

I tried to clear cache, several different browsers, incognito mode. 

I made a local environment using wampserver to avoid provider blocking issues. The update is working, with no errors. When I set the quantity after that I see a  0 + 1000 in the product list, and after a successful update remains still the same format, not how I see in yours(simply 1000).

I have these tables: invoice_addresses, orders,orders_attachments, products,shipping_addresses. Is it ok, or there is missing something? The reason why I am asking is, that in getDynamicProductAvailabilityLevel($id) function I saw a ['dynamicproducts_table'] reference. Which points to a dynamicproduct table , how I understand. Maybe that is the problem, that this table is missing.

I tried to debug and, in one case I saw an error(this error produced using PHP7.4 (just trying) the base is 7.1): 

Warning: count(): Parameter must be an array or an object that implements Countable in C:\wamp64\www\res\x5engine.php on line 3569Call Stack#TimeMemoryFunctionLocation10.0018365192{main}( )...\page-3.php:020.1713499712ImCart->getDynamicProductAvailabilityLevel( )...\page-3.php:270
( ! ) Notice: Trying to access array offset on value of type bool in C:\wamp64\www\res\x5engine.php on line 3570Call Stack

Leer más
Publicado en de Big S.
Aleksej H.
Aleksej H.
Moderator

Try to create a subdomain on the hosting, close this subdomain from being indexed by the search engine. Upload the site there and create a second database for it. I recommend running tests on real hosting.

"Warning: count(): ..." - warnings can be ignored.

Leer más
Publicado en de Aleksej H.