Closed mazharoddin closed 8 years ago
Please check if #44 fixes that, sorry.
Np, but it didn't fixed the issue, I am seeing same error.
Looks like I missed a spot, please try #47
Now I am getting below error with latest commit.
NoMethodError in CamaleonCms::Frontend#post
undefined method `sum' for 3.0:Float
else
(product.get_field_value('ecommerce_qty').to_f || 0).
sum("#{Plugins::Ecommerce::ProductItem.table_name}.qty")
end
end
end
/Users/mazhar/.rvm/gems/ruby-2.3.0@rails4.2.7/bundler/gems/camaleon-ecommerce-536cfab43475/app/services/plugins/ecommerce/product_service.rb:16:in `available_qty'
/Users/mazhar/.rvm/gems/ruby-2.3.0@rails4.2.7/bundler/gems/camaleon-ecommerce-536cfab43475/app/decorators/plugins/ecommerce/product_decorator.rb:112:in `the_qty_real'
/Users/mazhar/.rvm/gems/ruby-2.3.0@rails4.2.7/bundler/gems/camaleon-ecommerce-536cfab43475/app/decorators/plugins/ecommerce/product_decorator.rb:86:in `the_stock_status'
/Users/mazhar/.rvm/gems/ruby-2.3.0@rails4.2.7/bundler/gems/camaleon-ecommerce-536cfab43475/app/views/post_types/commerce/single.html.erb:42:in
Is that when you are not logged in?
Yeah @p-decoraid.
Hi, I am getting below error with latest commit.