.col-md-3
  =link_to public_p_product_path(p_product) do
    -PProductRef.where(p_product_id: p_product.id).all.each do |ppf|
      .shop-grid-item
        .shop-item-thumb
        
          .img_cover.with_ratio{:style => "background-image:url('#{(p_product.default_image.image_file.file.large.medium.small.url if p_product.default_image and p_product.default_image.image_file)}');"+("background-color:white;background-position:center center;background-size:contain;" if p_product.conserve_proportion).to_s, :data => {:ratio => 1}}
        
          -if false
            .shop-item-hidden
              %a.btn.btn-new-white{:href => "#"} Add to cart
        .shop-item-captions
          %h6.shop-item-title=p_product.name
          %span.shop-item-price
            

