Giter Club home page Giter Club logo

Comments (8)

JBenAnderson avatar JBenAnderson commented on August 11, 2024 2

Hi first off great project and resource thanks @notrab! I see no one has responded to this issue yet and wanted to say that I ran into this same problem with only returning 20 products and found a fix.

I was able to increase the size by adding a parameter within the printful-request get statement near the bottom of index.tsx to set limit to 100 (which I believe is the max amount not sure). This will return up to 100 products on your page at a time.

Screen Shot 2022-07-31 at 5 10 59 PM

from headless-dropshipping-starter.

pythlang avatar pythlang commented on August 11, 2024 1

#47

This question was already answered thoroughly here. We should mark this as closed.

from headless-dropshipping-starter.

andy3o0 avatar andy3o0 commented on August 11, 2024

Kindly help I need to deliver it to the client :(

from headless-dropshipping-starter.

notrab avatar notrab commented on August 11, 2024

Hey @andy3o0

Do you see anything in the response? I'd take a look at the Printful API docs to see if they accept a pagination param that you can adjust.

from headless-dropshipping-starter.

andy3o0 avatar andy3o0 commented on August 11, 2024

thanks for responding, I have 51 products added in printful. I console log the products it's fetching on the index page. The array shows the length of the first 20 products only. I am not an expert programmer. :( @notrab

from headless-dropshipping-starter.

andy3o0 avatar andy3o0 commented on August 11, 2024

https://www.loom.com/share/e7fa3bda61fd4b56a9056c4e89e04a17

@notrab

from headless-dropshipping-starter.

tzbodula avatar tzbodula commented on August 11, 2024

I'm having this same issue, the get request is only getting 20 of my 35 products. Not really sure how to fix this

from headless-dropshipping-starter.

notrab avatar notrab commented on August 11, 2024

I will try to replicate this and support further. In the meantime Iā€™d suggest looking at the products that come back from printful and see if the products are being paginated correctly inside the code for the index page props.

from headless-dropshipping-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.