Magento 配置产品简单的产品

发布于 2024-10-04 04:20:51 字数 1398 浏览 3 评论 0原文

当前 Magento 设置
配置产品 + 简单产品

问题
2000 个简单产品中的可配置产品会导致问题,因为如果我从超过 500 个简单产品中制作可配置产品,Magento 就会停止响应

错误消息:致命错误:第 228 行 /homepages/3/d347795961/htdocs/magento/lib/Zend/Db/Statement/Pdo.php 中允许的内存大小已耗尽(尝试分配 2186999 字节)< /p>

产品名称=测试
类型=可配置

关联产品 = 696 个简单产品

错误消息:致命错误:/homepages/3/d347795961/htdocs/magento/app/design/frontend/default/flp/template/catalog/product 中允许的内存大小 41943040 字节已耗尽(尝试分配 311296 字节) /price.phtml 第 290 行

操作系统:1&1双核-L专用服务器
CPU:皓龙1216
时钟频率:2 x 2.4 GHz
内存:2GB(RAID 1 软件)
内存:40m

评论
我的开发人员告诉我,如果我获得一台内存为 312m 或更多的服务器 – 他推荐了一家名为 www.bluehost.com 的公司 – 这应该可以解决问题吗?
我有 3 种产品,每种产品都有多种尺寸可供选择——这 3 种不同产品之间的可能性多达 2000 种。我还有另外 2 种产品,大约有 1500 种尺寸变体或可能的组合,由于上述原因,我们甚至还没有尝试加载这些产品。

我的开发人员现在提供“具有自定义选项的简单产品”作为解决方案 http://s347795977.websitehome.co.uk/magento/index.php/test-product-4158.html - 然而,这样做显然不允许我检查库存 - 这将与尝试将 Magento 集成到 Sage Accounting 包有直接关系......我也不确定它会引发什么其他问题或限制,即轻松更改定价

问题
- 使用“配置产品”+“简单产品设置”是否可以在特定产品上有多种变体(尺寸组合)
- 在这种情况下,如果我切换到另一个提供 312m 或更多的服务器包 – 这会解决问题 – 更重要的是允许我在我目前遇到问题的 2000 个产品之上领导额外的 1500 个产品。 任何有关此事的建议或帮助将不胜感激。

Current Magento setup:
Configure Products + Simple Products

Problem:
Configurable product from 2000 simple products is causing an issue as Magento stops responding if i make configurable products from more than 500 simple products

Error Message: Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 2186999 bytes) in /homepages/3/d347795961/htdocs/magento/lib/Zend/Db/Statement/Pdo.php on line 228

product name = test
Type= configurable

Associated products = 696 simple products

Error Message: Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 311296 bytes) in /homepages/3/d347795961/htdocs/magento/app/design/frontend/default/flp/template/catalog/product/price.phtml on line 290

Operating System: 1&1 Dual Core – L Dedicated Server
CPU: Opteron1216
Clock Rate: 2 x 2.4 GHz
Ram: 2GB (RAID 1 Software)
Memory: 40m

Comments:
I have been told by my developer that if i obtain a server with 312m memory or more – he recommended a company called www.bluehost.com – this should solve the problem?
I have 3 products with numerous size variants in each – adding up to 2000 possibilities between the 3 different products. I also have 2 more products with approx 1500 size variants or possible combinations, which we have not even attempted to load yet due to the aforementioned.

My developer is now offering “Simple products with custom option” as a solution http://s347795977.websitehome.co.uk/magento/index.php/test-product-4158.html - this will however doing it this way will apparently not allow me to check stock – which will have direct bearing of trying to integrate Magento into the Sage Accounting package.......I am also not sure of what other problems or restrictions it will raise i.e changing pricing easily

Questions:
- Is it possible to have numerous variations (size combinations) on a specific product using Configure Products + Simple Products Setup
- This being the case, if i swop to another server package offering 312m or more – will this solve the problem – and more importantly allow me to lead the additional 1500 products on over and above the 2000 i am currently having a problem with.
Any advice or assistance regarding this matter would greatly be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

赤濁 2024-10-11 04:20:51
  1. 是的,从理论上讲,完全有可能为可配置产品提供大量简单产品的组合。在实践中,性能问题(例如您遇到的问题)会限制您。
  2. 或许?增加限制将允许您提高 PHP 内存限制(您现在就可以做到这一点),但加载许多产品的基本问题仍然存在。

首先要尝试的是突破 PHP 的内存限制。 40M 相当低,提高它可能会解决您的问题。

否则,是否可以对产品进行稍微不同的排列?例如,如果当前的可配置属性是 foo、bar 和 baz,那么为 baz 的每个值制作一个乘积来限制配置数量?

希望有帮助!

谢谢,

  1. Yes, theoretically it's entirely possible to have large combinations of simple products for a configurable product. In practice, performance problems (such as the one you are experiencing) will limit you.
  2. Maybe? Increasing the limit will allow you to bump your PHP memory limit higher (something which you may be able to do even now), but the essential problem of loading that many products is still present.

The first thing to try is to bump PHP's memory limit. 40M is pretty low, and upping it may resolve your problem.

Otherwise, would it be possible to make slightly different permutations for the products? e.g. if the current configurable attributes are foo, bar and baz, make a product for each value of baz to limit the number of configurations?

Hope that helps!

Thanks,
Joe

薆情海 2024-10-11 04:20:51

你应该提高一点内存限制。您可以使用 vps 或专用服务器在 php.ini 中执行此操作,也可以在服务器中允许 php.ini 自定义。或者您可以更改 .htaccess 中的值

例如:

php_value memory_limit 128M

You should raise memory_limit a bit. You can do it in php.ini with vps or dedicated server, also in server allows php.ini custom. Or you can change value in .htaccess

For example:

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