E
E
Evgeny Fedorov2014-03-06 21:34:24
PHP
Evgeny Fedorov, 2014-03-06 21:34:24

How to programmatically add a product to Open cart?

Trying to transfer products from one site to another. Otparsil created asoc. array, but how now, using the Open cart API, add this entire array to the database?
The only answer in Google did not bring any closer to understanding the implementation. Maybe someone had experience with Open Cart? And then somehow I don’t want to through the iframe.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Sokharev, 2014-03-06
@greabock

I don't quite understand what API you are talking about. I have always written parsers myself.
Below I give the minimum required filling in tables for the store to work adequately:
product,
product_description,
product_to_category,
product_to_store,
category,
category_description,
category_path,
category_to_store,
manufacturer,
manufacturer_to_store,
filling in other tables with product/category/manufacturer prefixes is desirable, but not critical. Also, you should understand the structure of openCart itself. For example, if the site uses custom layouts, then the category_to_layout table also needs to be filled in... well, and the like.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question