Ajax Query returns zero

if ajax returns zero, the function bound is not registered properly have a read: http://arresteddeveloper.net/woocommerce-get-variation-description-variation-select-changes/ this might point you in the right direction

getJSON on WordPress Page

Turns out the issue was not with WordPress but with the PHP Configuration. allow_url_fopen was set to off on the server, whereas on the localhost it was on. When I updated that, the script worked fine. Thank you.

jQuery ajax empty exeption on wordpress

As I said in the comments. The problem was on api side. Error: (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). How to solve: Add this to .htaccess of api <IfModule mod_headers.c> Header set Access-Control-Allow-Origin: myUrl </IfModule>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)