Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajax API with new 2000-variant limit #1209

Open
MathieuJDS opened this issue Jul 14, 2024 · 5 comments
Open

Ajax API with new 2000-variant limit #1209

MathieuJDS opened this issue Jul 14, 2024 · 5 comments
Labels

Comments

@MathieuJDS
Copy link

Description

Hello,

I don't know where to add this issue exactly so I'm doing it here.

I am using the AJAX API to get product information directly from a store (to get variants).

I used the dev preview store to get the new 2000-variant limit.

I created a product with 820 variants.

When using the ajax API: /product/.js

I get only the first 100 variants (and no pagination system)

I don't know if it's me and I didn't find something, or if it wasn't updated

Expected behavior

We should get all the variants of the product or at least a pagination system

Actual behavior

Only 100 variants are sent

Steps to reproduce the problem

  1. Use a dev store with the new variant limit
  2. Create a product with a minimum of 101 variants
  3. Call the ajax API to get product information with the endpoint /products/.js
@sle-c
Copy link
Contributor

sle-c commented Jul 15, 2024

hi @MathieuJDS,

This question is more suitable in the Shopify Community forum. The Ajax api doesn't return more than 100 variants on purpose due to the payload size. Would you tell about your use case and why you need to get more than 100 variants using the AJAX api?

Thank you,

@MathieuJDS
Copy link
Author

I had posted on the forum but have yet to receive a response. Now, I did receive one.

I am using this endpoint to get information about the variants, such as the actual prices of a product (for example, when there is Shopify Market, it allows me to get the prices of the currently selected currency) and many similar situations.

They returned 100 variants, which made sense when the limit was 100.

But now that it will increase, isn't it logical to improve it with a pagination system?

Thanks,

Mat

@MathieuJDS
Copy link
Author

Hello, any news here?

Thank you!

@MathieuJDS
Copy link
Author

Hello

I am still waiting for a solution there if you have anything

Thanks,

Mat

Copy link
Contributor

We're labeling this issue as stale because there hasn't been any activity on it for 60 days. While the issue will stay open and we hope to resolve it, this helps us prioritize community requests.

You can add a comment to remove the label if it's still relevant, and we can re-evaluate it.

@github-actions github-actions bot added the Stale label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants