r/PHPhelp • u/DylanW40 • Dec 14 '25
I need Help
Okay let’s see if i can explain this properly. I have recently started setting up an online parts store. We have the website itself setup and designed. We had it professional designed and built and then it has sat ever since. It is using Wordpress and woocommerce. The issue i am having is inventory. I am a distributer for 5 large parts supplies/manufactures. I have contacted my sales reps and they have all responded saying i cannot have access to their API’s until we do X amount a year with them. (Sounds pretty backwards right?). Anyways i’m trying to find a work around to this problem. We have 1158 items in our physical inventory shown through Quickbooks. I have been researching onsaas for that issue so it should be handled. But how can i transfer their 50,000+ parts that i am allowed to sale without doing it manually and without any kind of API support from them? The parts require; a picture, a SKU, a description, shipping weight and dimensions, brand tags, and category tags. This takes roughly 15 minutes per part. I’m really not trying to spend months on setting up the inventory for this site.
7
u/sveach Dec 14 '25
Will they provide you with a CSV/Excel/some other kind of dump of their parts with details?
2
u/ColonelMustang90 Dec 14 '25
Can you please clarify the following:
6
u/M_Me_Meteo Dec 14 '25
Welcome to the world of online auto parts. Aftermarket parts has been fighting against modern retail since at least 2011 when I last worked in the industry.
Yes, you will have to make and manage the price list if they won't give it to you. It's called "merchandising".
Best part? When they do finally give you access, all the prices and inventory will be wrong and you'll go back to calling in to confirm everything. That's how we did it at RevZilla.
I worked at NAPA for 8 years and I've worked on logistics software for the automotive industry for a other 7 years. HMU if you're looking for some consulting.
2
u/equilni Dec 14 '25
No, it's a thing. Same thing with EDI (PO/Invoicing) because of costs.
Can you start working with this?
You need to get some information from them. This isn't a PHP issue at all. Once you get the information, then it's getting it to the website. If you do the above, then it's really updating or skipping over what's already present.
2
u/FreeLogicGate Dec 14 '25
To summarize:
You have an inventory system with < 1200 items
As others have stated, you could write scrapers for the sites.
Aside from any legal issues, the distributors could note the scraping activity from scraping bots you provide and block your activity. This is far more likely to happen if you are doing this with no approval or support from the distributors.
Each distributor will most likely have different html/markup formats for their sites. People writing scrapers can tell you there can be many technical issues, especially if the distribution sites make extensive use of javascript where simple http protocol GET requests don't just return full html pages.
There are PHP libraries out there that can do scraping, but other languages like Python are more typical. Having a php site that talks to a mysql or postgresql database doesn't require the use of php, particularly if you're going to utilize woocommerce import features.
I saw at least one responder with relevant industry expertise. You will need a developer regardless, so you might want to reach out to that person.
1
u/Neat_Witness_8905 Dec 14 '25
are the actual parts online? If so, we can parse it.
1
u/echo138 Dec 14 '25
Do they have an online product catalog? It may be possible to crawl their websites and extract the data.
1
u/da_bugHunter Dec 14 '25 edited Dec 14 '25
You do not have a technical problem. You have a data access and scale problem.
It's the restrictions imposed by the Manufacturer/First Party. It's possible to get the data technically with web extraction from their website or using CSV File, but it's not ethical in most case.
1
u/boborider Dec 14 '25
Long time ago around 2005 i used to import thousands of item using CSV file. The system we used was virtuemart. Im not sure of virtuemart is still relevant these days. Outdated i think.
New systems exist now. Wordpress is bad for this.
1
u/[deleted] Dec 14 '25
[removed] — view removed comment