TG Team Posted August 19, 2020 Share Posted August 19, 2020 I'm looking for a way to strike out a size (attribute) if this one is out of stock, like this screenshot. More precision, I use color / size as an attribute 1 Link to comment Share on other sites More sharing options...
chemocycling Posted September 26, 2020 Share Posted September 26, 2020 hi looking for the same think . did you solve this ? Link to comment Share on other sites More sharing options...
Prescol Posted September 26, 2020 Share Posted September 26, 2020 You can do it with a combination of smarty and css. For the strike through: - For size position:relative; Now make use of css pseudoelements: .your-size-selector:after { position: absolute; top:50%; left:50%; transform: translateX(-50%) translateY(-50%); content:""; display:block; width: 60px; //may need some adjusts to fit your size border-top: 2px solid darkgray; } Link to comment Share on other sites More sharing options...
chemocycling Posted September 26, 2020 Share Posted September 26, 2020 22 minutes ago, Prescol said: You can do it with a combination of smarty and css. For the strike through: - For size position:relative; Now make use of css pseudoelements: .your-size-selector:after { position: absolute; top:50%; left:50%; transform: translateX(-50%) translateY(-50%); content:""; display:block; width: 60px; //may need some adjusts to fit your size border-top: 2px solid darkgray; } i am not programmer . where to put these ? Link to comment Share on other sites More sharing options...
Prescol Posted September 30, 2020 Share Posted September 30, 2020 Well, if you are not familiar with css and smarty templates, i suggest to find a developer to do the job for you. Link to comment Share on other sites More sharing options...
dudecorn Posted February 29 Share Posted February 29 The same problem here. Maybe someone? 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