Sha256: 19ae81d01d50577232d3bd55af60949423cac8fcd0557fcb5450f74c493926c5
Contents?: true
Size: 486 Bytes
Versions: 1
Compression:
Stored size: 486 Bytes
Contents
json.extract! product, :created_at, :updated_at, :deleted_at, :magento_id, :magento_type, :sku, :visibility, :status product.product_attribute_set.product_attributes.pluck(:code).each do |code| # skip attribute codes that are already on the model next if (product.attributes.keys.map(&:to_s) + %w[tier_price group_price]).include? code json.set! code.to_sym, product.attribute_value(code) end json.configurable_attribute_order product.configurable_attribute_order(current_store)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemgento-2.8.0 | app/views/gemgento/api/v1/products/_attributes.json.jbuilder |