Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Elxis documentation
for users and developers.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
Creating an eshop and importing products from xls files
« previous
next »
Print
Pages: [
1
]
Author
Topic: Creating an eshop and importing products from xls files (Read 8035 times)
ROUBOS
Hero Member
Posts: 699
Creating an eshop and importing products from xls files
«
on:
May 17, 2014, 17:29:57 »
Hi,
I want to create an eshop. Now I will install Elxis (the latest) and I want to use the .xls / .txt file I get from my suppliers to update the website with products and their availability.
Could someone please direct me the right way? What would be the right steps and howto?
An example of a script I could try out?
Will each product become an elxis article? (since ios shop does not work with the latest elxis?)
Any directions and information would be greatly appreciated.
I want to play around with this before I create a template for the site.
thanks a lot
«
Last Edit: May 17, 2014, 17:32:17 by ROUBOS
»
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Creating an eshop and importing products from xls files
«
Reply #1 on:
May 17, 2014, 18:33:18 »
These tools are custom and need a lot of programming. It is not simple.
If you use Mini Shop plugin, which is currently the only option for Elxis 4.x, then each row should become an entry in Mini Shop's products database table. The db table that stores products is
elx_minishop
and has the structure show below. Green columns are required, red are optional. If you set
amount
to 0.00 you must provide at least one
price option
(poption).
pid int(10)
sku varchar(20)
cid int(10)
category varchar(80)
title varchar(160)
description varchar(255)
image varchar(160)
amount decimal(9,2)
poption_title varchar(160)
pname1 varchar(160)
pamount1 decimal(9,2)
pname2 varchar(160)
pamount2 decimal(9,2)
pname3 varchar(160)
pamount3 decimal(9,2)
pname4 varchar(160)
pamount4 decimal(9,2)
pname5 varchar(160)
pamount5 decimal(9,2)
option_title varchar(160)
oname1 varchar(160)
oname2 varchar(160)
oname3 varchar(160)
oname4 varchar(160)
oname5 varchar(160)
optionb_title varchar(160)
onameb1 varchar(160)
onameb2 varchar(160)
onameb3 varchar(160)
onameb4 varchar(160)
onameb5 varchar(160)
maxquantity int(10)
dlfile varchar(255)
shipable tinyint(2)
created datetime
«
Last Edit: May 17, 2014, 18:38:41 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
ROUBOS
Hero Member
Posts: 699
Re: Creating an eshop and importing products from xls files
«
Reply #2 on:
May 17, 2014, 22:29:22 »
so now I need to examine the text and xls files, then write an SQL statement to load all the products into the table...
when another xls file comes along, with the same products but just information such as availability needing updates, how do I do that? I will have to keep track of the IDs in the databe entries?
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Creating an eshop and importing products from xls files
«
Reply #3 on:
May 18, 2014, 08:53:51 »
Xls cannot be imported, you need to convert it to csv, utf8 encoded. For each product you need a unique identifier to check if the product already exists. This can be SKU. If exist execute Update, else Insert.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
ROUBOS
Hero Member
Posts: 699
Re: Creating an eshop and importing products from xls files
«
Reply #4 on:
May 18, 2014, 10:46:53 »
I have to do some reading regarding sku, and how to use it.
Sku is another column that acts as an id of the csv file. Does this value get inserted?
What will the update process be?
So it is not something simple to update the products every second day. And i will have csv files from different providers.
Reading this now
http://forum.lemonstand.com/topic/5986-how-to-mass-update-skus-without-causing-duplicates/
Logged
ROUBOS
Hero Member
Posts: 699
Re: Creating an eshop and importing products from xls files
«
Reply #5 on:
May 18, 2014, 11:07:28 »
Read the mini shop documentation and it mentions the sku. This is someithing i have to insert right? Not auto created.
I have an elxis installation, i need to start testing.
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Creating an eshop and importing products from xls files
«
Reply #6 on:
May 18, 2014, 13:22:18 »
You dont have to use xls or csv if the provider gives an api, an xml one for example. In this case the script can be fully automatic without the need of human interfere. SKU most probably exist in provider as it is very common in most eshops.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
ROUBOS
Hero Member
Posts: 699
Re: Creating an eshop and importing products from xls files
«
Reply #7 on:
May 18, 2014, 22:06:53 »
Does this mean that if they provide an api, I can just import it through phpMyAdmin or Elxis Mini Shop?
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Creating an eshop and importing products from xls files
«
Reply #8 on:
May 19, 2014, 09:20:07 »
No. Whatever solution you pick you need to develop an integration php script.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
ROUBOS
Hero Member
Posts: 699
Re: Creating an eshop and importing products from xls files
«
Reply #9 on:
May 19, 2014, 14:58:23 »
That is where it gets tricky, as I have never done such a thing.
And I will run that same script everytime I want to update the items.
Logged
ROUBOS
Hero Member
Posts: 699
Re: Creating an eshop and importing products from xls files
«
Reply #10 on:
May 21, 2014, 10:16:11 »
Has anyone written such a script? Some guid I could follow?
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Creating an eshop and importing products from xls files
«
Reply #11 on:
May 21, 2014, 18:46:58 »
There is no guide in such custom scripts, you either know how to do it and do it, or hire a developer to do it for you. If you need a generic guide I can tell you how but you will need to write a mid-to-advanced level script of 500-1000 lines size. If you can't write such a script forget the guidance...
«
Last Edit: May 21, 2014, 18:50:18 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
ROUBOS
Hero Member
Posts: 699
Re: Creating an eshop and importing products from xls files
«
Reply #12 on:
June 04, 2014, 13:29:40 »
seems like too much work and time (wich I don't have)
the problem is that there are several providers with different exported files. Which means different scripts...
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
Creating an eshop and importing products from xls files