1
Answers
Updating stock using preprocess
Hi, I am developing a site for a client with an EPOS system, and ideally I'd need to check stock value on page load.
Is this possible? My initial attempts using preprocess_node altered the stock value in the database, but I'm not sure what I'd need to set in $variables to display that change on the page (particularly in terms of add to cart/sold out messages). Just wondering if someone could point me in the right direction?