Admin API not working on a live site, how can I make AJAX requests without querying the admin/api?

Jordy1
New Member
2 0 0

Hi there, I need help clarifying whether I need to continue using the Shopify Admin API (which is not accessible on the front end), or am I better off just using the basic search functionality that Shopify offers?

Requirements:

  • Using AJAX requests on collection pages to filter results
  • Filter using vendor and any other product types/filters

Currently we have the Shopify theme working using the admin/api which we found out doesn't work when the site is live. Could you please instruct us on the best move forward?

 

 

Kind regards, 
Jordy

0 Likes
Michal_Morek
Shopify Partner
819 71 132

Hi @Jordy1 

Hope you're having a great day!

I need help clarifying whether I need to continue using the Shopify Admin API (which is not accessible on the front end), or am I better off just using the basic search functionality that Shopify offers?

You should use Shopify Storefront API.

You could use JS Buy SDK (Full doc) from Storefront API. 

Using the JS Buy SDK, you can:

Useful resources:

Founder of Shopify agency - Accomplishify.com
If you would like to hire us as Shopify experts, please reach out via:
  • Email michal.morek@accomplishify.com
  • WhatsApp +48 507 613 425