批量添加多个项目到 osCommerce 网站?

发布于 2024-07-10 20:20:48 字数 185 浏览 7 评论 0原文

我需要向 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

没有心的人 2024-07-17 20:20:49

使用过诸如 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.

薄情伤 2024-07-17 20:20:49

我使用 phpMyAdmin 插入以前商店中的商品。

首先,我必须使用 iconv 进行一些转换为 utf-8,您可能不需要,然后我使用了这些 sql 语句:

insert into products_description (
SELECT art_id as products_id, 4 as language_id, naziv as products_name, CONCAT(dolgOpis, '<br /><br />', kratekOpis) as products_description, NULL AS products_url, 0 AS products_viewed from artikel_utf;
);

4 是我的安装中的英语 - 检查表语言。 您必须为每种语言插入一次每个产品,并为 language_id 提供相应的编号,

然后您需要将插入的每个产品插入到某个类别中。 我将它们全部放在基本类别中:

insert into `products_to_categories` (SELECT products_id, 0 FROM products);

我不确定是否还填写了制造商和产品描述表。 如果您发现必须这样做,您还应该在产品表中为每个产品设置制造商_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:

insert into products_description (
SELECT art_id as products_id, 4 as language_id, naziv as products_name, CONCAT(dolgOpis, '<br /><br />', kratekOpis) as products_description, NULL AS products_url, 0 AS products_viewed from artikel_utf;
);

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:

insert into `products_to_categories` (SELECT products_id, 0 FROM products);

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文