I am trying to create a plugin for WooCommerce. I am trying to fetch a JSON from a URL and then show price what I fetched from the JSON on beside the WooCommerce Product Price. And I want to divide the Fetch Price with the current WooCommerce product price then show it on the product. But, the problem is when I am running the code it's all time showing me "Warning: Division by Zero". It may be because the WooCommerce price is a String. We will have to convert it to Integer but I don't know why. Or I might apply the filter to anything else.
I am attaching the code on here. Please, review the code let me know who's able to help me for this issue
7 freelancere byder i gennemsnit $39 for dette job
Hi, I have 5+ years of experience in PHP and wordpress development. I have read your requirement and I can work on it Please let me know if interested. Thanks, Bhupinder Skyp- coderoach