更新时间:2023-11-30 12:42:28
我的产品索引上有一些时髦的内容.我删除了所有产品并修复了索引,尽管效果不佳,但现在可以正常工作.
I had some funky stuff going on with my product index. I deleted all my products and fixed my index and this now works, albeit not well.
这就是我从过程中收集到的信息:
So here is what I gleaned from the process:
如果要购买两个简单产品并将其捆绑在一起,则需要通过上面的$p = array
代码创建一个新的捆绑产品,然后添加两个简单产品.
If you want to take two simple products and bundle them, you'll need to create a new bundled bundled product via the $p = array
code above, then add both simple products.
否则,您将需要通过magento gui预先制造的捆绑产品.那么您将使用$ product-> load(product_id)命令启动该产品,然后向其中添加简单的产品.
Otherwise, you'll need a bundled product that is premade via the magento gui. then you'll have bring up that product using the $product->load(product_id) command, then add your simple products to that.