Magento 配置产品简单的产品
当前 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= configurableAssociated 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先要尝试的是突破 PHP 的内存限制。 40M 相当低,提高它可能会解决您的问题。
否则,是否可以对产品进行稍微不同的排列?例如,如果当前的可配置属性是 foo、bar 和 baz,那么为 baz 的每个值制作一个乘积来限制配置数量?
希望有帮助!
谢谢,
乔
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
你应该提高一点内存限制。您可以使用 vps 或专用服务器在 php.ini 中执行此操作,也可以在服务器中允许 php.ini 自定义。或者您可以更改 .htaccess 中的值
例如:
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: