“Stock” converted to a numeric value
Stock should be converted to a numeric valueBy replacing {stock[1]} by “available ” to 100, and “limited stock” to 10, “out of stock” to 0. The idea is to work with numeric values and update stocks.
Stock should be converted to a numeric valueBy replacing {stock[1]} by “available ” to 100, and “limited stock” to 10, “out of stock” to 0. The idea is to work with numeric values and update stocks.