Jump to content

Sizes crossed out (attributes) if out of stock


TG Team

Recommended Posts

  • 1 month later...

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

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

  • 3 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...