Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/56.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 如何添加使用spree commerce购买的客户_Ruby On Rails_Spree_Product_Related Content - Fatal编程技术网

Ruby on rails 如何添加使用spree commerce购买的客户

Ruby on rails 如何添加使用spree commerce购买的客户,ruby-on-rails,spree,product,related-content,Ruby On Rails,Spree,Product,Related Content,在it上,它会在每个产品下为您提供一个“购买此产品的客户也购买了”Div。如何设置它。在扩展安装和迁移之后,您是否尝试过此rakerake spree:extensions:related_products:find_relations其中一个显示了您在管理部分设置的相关产品。我试图展示购买该产品的其他客户也购买的产品。在完成此rake任务后,Spree::product.fist.related_products,这里我们假设一些人购买了第一个产品。嘿,我刚刚学习了Spree related

在it上,它会在每个产品下为您提供一个“购买此产品的客户也购买了”Div。如何设置它。

在扩展安装和迁移之后,您是否尝试过此rake
rake spree:extensions:related_products:find_relations
其中一个显示了您在管理部分设置的相关产品。我试图展示购买该产品的其他客户也购买的产品。在完成此rake任务后,
Spree::product.fist.related_products
,这里我们假设一些人购买了第一个产品。嘿,我刚刚学习了Spree related product,即添加了“客户也购买了”的产品与spree 3.x兼容的功能不同。我看到noe4j推荐系统看起来很有希望。谢谢你的支持。