kpitn / spree-suggestions

Extensions for spree, too add products suggestions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spree-suggestions

Installation

script/extension install git://github.com/kpitn/spree-suggestions.git

Use

In products/show.html


<% suggestions=@product.suggestions >
<
if suggestions.size>0 >


<= t(‘suggestions’) >:


<
= render :partial => ‘products/suggestions’,:locals=>{:suggestions=>suggestions} %>

<% end %>

create products/_suggestions.html


<% suggestions.each do |product| >

<= product.images.first.attachment(:mini) if product.images.nil? >
<
= link_to(product.name,:controller=>:products,:action=>:show,:id=>product.id) %>

<% end %>

About

Extensions for spree, too add products suggestions


Languages

Language:Ruby 100.0%