brownd92 Posted November 7, 2013 Share Posted November 7, 2013 (edited) Hi there, At the moment I have sale and new as product labels. Is there anyway of creating new labels and then the admin can pick a label in the back end? By labels I mean the image that is displayed over the product image... Thanks Edited November 7, 2013 by brownd92 (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted November 8, 2013 Share Posted November 8, 2013 No, the only way to do it is through html/css. WHat do you want the labels for, exactly? Link to comment Share on other sites More sharing options...
brownd92 Posted November 8, 2013 Author Share Posted November 8, 2013 I would like to have labels like 50% off, save 25% etc etc Link to comment Share on other sites More sharing options...
NemoPS Posted November 8, 2013 Share Posted November 8, 2013 Okay, in this case, say, in the product-list.tpl file (theme folder) you can locate the appropriate spot where to add the code (perhaps near the block with the on_sale class, and add things like {if $product.reduction && $product.reduction_type == 'percentage'} <div class="redperc"> {$product.reduction}% <div> {/if} (not sure these are the correct variables) THen, in global.css (theme folder/css) you must style that redperc class so that it has an absolute position, some background etc. Kinda long to explain in detail in a single post! 1 Link to comment Share on other sites More sharing options...
brownd92 Posted November 8, 2013 Author Share Posted November 8, 2013 Excellent! thanks for the heads up :-) 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