| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
File Attachments Module - Importing links | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
File Attachments Module - Importing links
I need to import links for attachments, such as datasheets, brochures, manuals etc for each of my products. As I have over 3,000 products, it will take far too long to manually load each file.
Has anyone been able to work out how to import the links from a csv file?
__________________
John Legg www.TheDebugStore.com 5.4.1.18 Business, Crisp White Skin Template Backorder-Preorder Module X-Cart to Zoho Creator (in progress) Zoho Creator <-> Zoho Inventory for order processing NGINX hosted - XC virtual server |
|||||||||
#2
|
|||||||
|
|||||||
Re: File Attachments Module - Importing links
At a first glance, the models created by file attachment module don't have many columns, so it might sound easy to write an importation module. However, there is
a difficulty. The file attachment module creates tables "product_attachment_storages", "product_attachments", "product_attachment_translations" and add a column to the table "product". And there are several "cascade relations". Because of these relations, the tables have to be updated in the right order. Now, presumably a correct use of Doctrine would take care of "the right order", but I have never done this myself, so I don't know how easy or difficult to put all that in place.
__________________
X-cart 5.2.12, php 5.6 Ed from Grenoble, France |
|||||||
|
#3
|
|||||||||
|
|||||||||
Re: File Attachments Module - Importing links
The way I would suggest is direct database import but depending on where you are importing from - data from XC4 database or csv file.
I use this approach with XC4 to XC5 database conversion. Way faster and easier. Of course a module can be coded as well and it is not that difficult to do.
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|