将产品导入magento后,他们不会显示目录 [英] after importing products into magento they dont show up catalog

查看:72
本文介绍了将产品导入magento后,他们不会显示目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将产品导入magento后,看起来顺利没有错误;产品在商店中不可见。但是,如果我去任何产品并保存(即使没有改变任何东西),它立即可用。为什么这些产品不会立即显示...

After i import the products into magento which appears to go smoothly no errors; the products aren't visible in the store. however if i go to any product and save(even without changing anything) it it is instantly available. Why are these products not visible right away...

运行最新的稳定版本。

谢谢

推荐答案

以编程方式解决此问题的最佳方法是

The best way to solve this problem programmatically is to


  1. 导入产品

  1. Import the product

通过一些自定义代码检查所有产品的属性

Examine all the product's attributes via some custom code

保存产品

通过一些自定义代码检查所有产品的属性

Examine all the product's attributes via some custom code

比较#2和#4的结果

确保您的导入过程明确设置了#2中缺少的但属于#4的属性

Ensure your import process explicitly sets whatever attributes were missing in #2 but present in #4

这是我用来检查产品属性的剪辑。在phtml模板,自定义控制器等中运行此类似的东西。

Here's the snipping I'd use to examine the product attributes. Run this or something like it in a phtml template, custom controller, etc.

var_dump( 
Mage::getModel('catalog/product')
->getCollection()
->addAttributeToSelect('*')
->addAttributeToFilter('sku','SKUGOESHERE')
    ->getFirstItem()
->getData()
);

这篇关于将产品导入magento后,他们不会显示目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆