批量添加多个项目到 osCommerce 网站?
我需要向 osCommerce 添加数百个产品(呃,我知道,这不是我的选择),但 osCommerce 没有内置方法(或者至少我找不到它),有人知道吗在哪里可以找到有关 osCommerce 如何存储产品的一些(甚至是一半不错的)文档(因为它肯定不是以任何合乎逻辑的方式)? 或者可能有一些免费插件/软件可以做到这一点?
I need to add several hundred products to an osCommerce (ugh, I know, it wasn't my choice) but osCommerce doesn't have a built in method for this (or at least I couldn't find it), does anyone know where some (even half decent) documentation on HOW osCommerce stores products ('cause it certainly is not in any logical manner) can be found? Or possibly some free addon/software that will do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用过诸如 Easy Populate 之类的东西,但发现它的属性部分不符合要求一个项目的需求。 修改了一些代码以允许根据客户端规范进行修复。
如果您要导入没有属性的批次原始数据,并且只想将它们放入商店的基本类别中,则只需要使用三个表:
产品 -处理价格和图像
products_description - 处理名称以及描述和设置制造商。
products_to_categories - 整理出产品将被放置在商店的哪个类别下。 就该表的工作而言,0 应该是商店的基本文件夹类别。
Have used something of the likes of Easy Populate but found the attributes part of it not meeting a project's needs. Hacked up some code to allow for the fix up according the client specs.
If you're importing a batch raw with no attributes, and just want to drop them into the base category of the store, you'll only need to three tables to work with:
products - Deals with the prices and the images
products_description - Deals with the name as well as the description and setting of manufacturers.
products_to_categories - Sorts out which of the store's categories the products will be placed under. Far as working this table goes, 0 should be the base folder category of the store.
我使用 phpMyAdmin 插入以前商店中的商品。
首先,我必须使用 iconv 进行一些转换为 utf-8,您可能不需要,然后我使用了这些 sql 语句:
4 是我的安装中的英语 - 检查表语言。 您必须为每种语言插入一次每个产品,并为 language_id 提供相应的编号,
然后您需要将插入的每个产品插入到某个类别中。 我将它们全部放在基本类别中:
我不确定是否还填写了制造商和产品描述表。 如果您发现必须这样做,您还应该在产品表中为每个产品设置制造商_id。 此外,products_description 表需要为您使用的每种语言提供一个条目
I used phpMyAdmin to insert items from the previous store.
First I had to do some converting to utf-8 with iconv, which you might not need, then I used these sql statements:
4 is for english in my installation - check table languages. You must insert every product once for every language you have with a corresponding number for language_id
then you need to insert every product you inserted into a category. I put them all in the base category:
I'm not sure if I also filled the manufacturers and products_description tables. If you find out you have to do it, you should also set manufacturer_id in products table for each product. Also the products_description table needs an entry for every language you use