dwaynehertroys Posted January 4, 2017 Share Posted January 4, 2017 Hello Forum,I'm working on optimizing my product page. I have a product with multiple product attributes (colors, sizes) only now I want that if the stock of the product 0 is that the background color is red, but when the stock 1 is green.For all product attributes I use the color_to_pick_list function.So if the stock of the product is 0 then the background color to change to red but as the stock one or more than the background color should be green. I have attached two pictures. The image (first.png) is what it is today. And the image (result.png) is the end result. I hope someone knows this. thanks in advanceDwayne Link to comment Share on other sites More sharing options...
dwaynehertroys Posted January 4, 2017 Author Share Posted January 4, 2017 Up! Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted January 5, 2017 Share Posted January 5, 2017 HI...which product page portion you need change background color ? if you need to use this way code {if $product->quantity > 1} //your code here {else} //your code here {/if} Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now