Sha256: 716b01a91dc5b9e1c65db13512d6924f44fe87c86ab57b9b9a8211a1c21e4cb7
Contents?: true
Size: 1.83 KB
Versions: 1
Compression:
Stored size: 1.83 KB
Contents
%article.container %h1= @product.name - if @product.on_sale? %p= number_to_currency(@product.original_price) - else %p= number_to_currency(@product.price) - if @product.magento_type == 'configurable' %code This is a configurable product, so we show the attrs. - @product.configurable_attribute_order.each do |code, values| = select_tag code, options_for_select(values) - else %code This is a simple product %input{type: 'hidden', name: 'product_id', value: "#{@product.id}"} %figure = image_tag @product.assets.first.asset_file.file.url(:medium), class: "img-responsive" -# %article -# -# %figure -# = image_tag @product.assets.first.asset_file.file.url(:default_index) -# -# %header -# %h1= @product.name -# .price -# - if @product.on_sale? -# %h2= number_to_currency(@product.original_price) -# %h2= number_to_currency(@product.price) -# -# %section -# %p= @product.description -# -# = form_for current_quote, url: gemgento.cart_url, method: 'patch', html: { id: 'add_to_cart' } do |f| -# %input{type: 'hidden', name: 'activity', value: 'add_item'} -# -# -# - if @product.magento_type == 'configurable' -# -# - default_product_id = @product.simple_products.first.id -# -# %input{type: 'hidden', name: 'product_id', value: default_product_id} -# -# - @product.configurable_attribute_order.each do |code, values| -# .form-group -# %label SELECT COLOR -# = select_tag code, options_for_select(values) -# -# - else -# %input{type: 'hidden', name: 'product_id', value: @product.id} -# -# .form-group -# %label QUANTITY -# = select_tag 'quantity', options_for_select(1..10) -# -# .from-group -# = f.submit 'ADD TO BAG'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemgento-2.8.0 | app/views/gemgento/products/show.html.haml |