简体   繁体   English

前端 Magento 社区版中未显示自定义选项

[英]Custom options not showing Up in front-end Magento Community Edition

I wrote a script for importing products in Magento community edition 1.5.10 from CSV file.我编写了一个脚本,用于从 CSV 文件中导入 Magento 社区版 1.5.10 中的产品。 The products are displaying fine in both front end and backend产品在前端和后端都显示良好

The problem is the Product custom options(size and Color).问题是产品自定义选项(尺寸和颜色)。 It is not displaying in the front end.它没有显示在前端。 But it is displaying properly in admin.但它在管理员中正确显示。

When I edit the same product in adminpanel and saving without modifying anything, then its showing up fine in front end.当我在管理面板中编辑相同的产品并保存而不修改任何内容时,它在前端显示得很好。

Please help me to figure out this problem请帮我解决这个问题

Thanks in advance提前致谢

Selva.塞尔瓦。

I too had the same problem with the custom option.我也对自定义选项有同样的问题。 Then i found out the solution after a long search in the database.然后我在数据库中长时间搜索后找到了解决方案。 You just forget to insert the values in "catalog_product_entity_varchar" table.您只是忘记在“catalog_product_entity_varchar”表中插入值。 For custom option we need to insert 4 records in the "catalog_product_entity_varchar" table.对于自定义选项,我们需要在“catalog_product_entity_varchar”表中插入 4 条记录。 After inserting the table it works well.. Hope it will helps you.. Thanks Rajamani.插入表格后它运行良好..希望它会帮助你..谢谢 Rajamani。

Try to refresh the Magento caches and re-indexing.尝试刷新 Magento 缓存并重新索引。

I Hope custom option will display我希望自定义选项会显示

For me it was fixed by setting the has_options attribute to 1 - from catalog_product_entity table.对我来说,它是通过将 has_options 属性设置为 1 来修复的 - 从 catalog_product_entity 表。 Also make sure that the options_container attribute have the value 'container2' for products with custom options - this attribute is found in catalog_product_entity_varchar.还要确保 options_container 属性对于具有自定义选项的产品具有值“container2” - 此属性可在 catalog_product_entity_varchar 中找到。

This almost always means that you've forgotten to add data to a necessary table, very likely an indexing table.这几乎总是意味着您忘记将数据添加到必要的表中,很可能是索引表。 Magento often clones the same data over to several tables to use for fast lookups. Magento 经常将相同的数据克隆到多个表中以用于快速查找。

Does your script import using objects, or does it write direct SQL queries to enter the data?您的脚本是使用对象导入,还是直接编写 SQL 查询来输入数据? Try reindexing everything on the site first, hopefully that will fix it.首先尝试重新索引网站上的所有内容,希望可以解决它。 If not, you'll need to spelunk in the DB to find the table that you are failing to enter data for.如果没有,您将需要深入研究数据库以找到您无法为其输入数据的表。

Hope that helps!希望有帮助!

Thanks, Joe谢谢,乔

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 WordPress Advnaced自定义字段日期选择器未在前端显示正确的日期 - WordPress Advnaced Custom Fields date picker not showing correct date on front-end 如何更改magento前端中的日期选择器设计? - How to Change date-picker design in magento front-end? Magento一次将产品从前端上传到其他商店 - Magento Upload product from front-end to different stores at a time Magento 2 产品图片在前端显示顺序不正确 - Magento 2 product images are not displayed in the correct order on the front-end 无法使用magento 1.9.2社区版中的自定义模板发送电子邮件 - Not able to send email using custom template in magento 1.9.2 community edition 如何在magento 1.9.2社区版中的产品网格上添加自定义属性 - How to Add Custom Attribute on product Grid in magento 1.9.2 community edition 显示元数据在cmb2前端没有显示任何东西 - Display the Metadata is not showing anything in the front-end in cmb2 以编程方式创建 Woocommerce 产品变体未显示在前端 - Programmatically created Woocommerce Product Variation Not showing on Front-End Laravel - 背包多图像显示在前端 - Laravel - Backpack multi images showing on front-end 可变商品价格未在woocommerce前端中显示 - Variable product prices not showing in woocommerce front-end
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM