I really need some help here. I am trying to get the value of a custom field so I can compare it to the amount in stock, and display a message depending on the returned value.
The problem? No matter what I try I keep being met with boolean false
– string length 0
or Uncaught Error: Call to a member function get_meta() on boolean
Please for the love of god, how can I get the value of this custom field that is stored in the meta information of that product’s variation?
I’ve been trying for 2 days without luck! I will love you forever!