Create a sold out badge when quantity is 0 that will be displayed on the front end. (remember to use branches feature/sold-out-badge
To be able to see your badge in action, change one of the products in the db/seeds.rb file to have a product with 0 quantity in stock, and then rake db:reset (recreate and reseed)
Create a sold out badge when quantity is 0 that will be displayed on the front end. (remember to use branches
feature/sold-out-badge
To be able to see your badge in action, change one of the products in the
db/seeds.rb
file to have a product with 0 quantity in stock, and thenrake db:reset
(recreate and reseed)