what you want to update. Please specify reason of update and which field you want to update?
– Amit BeraFeb 19 '19 at 08:52
here is the reason https://magento.stackexchange.com/questions/262302/why-is-a-simple-product-not-added-to-the-cart-for-the-first-time?noredirect=1#comment370454_262302
– RobinioFeb 19 '19 at 08:55
I am testing adding a product to the cart, then it will be a separate file where it will work with the cron once a week
– RobinioFeb 19 '19 at 09:07
Please don't do add to cart from a block on page load.It creates the issue on Cache and Private content https://devdocs.magento.com/guides/v2.3/extension-dev-guide/cache/page-caching/private-content.html.
– Amit BeraFeb 19 '19 at 09:13
As you have want to build your code cronjob,they why you try with test script work like https://magento.stackexchange.com/questions/39981/how-can-i-bootstrap-magento-2-in-a-test-php-script
– Amit BeraFeb 19 '19 at 09:15
This matters that it will work then when the customer logged into the account
– RobinioFeb 19 '19 at 09:17
'qty' => $products_count,
– Amit Bera Feb 19 '19 at 08:57AutoAddtocart/ProductAddtocart/Block/Addtocartauto.phpon page load – Amit Bera Feb 19 '19 at 09:05