Page 1 of 1

How to create a strike-through option

Posted: Thu Jul 03, 2014 9:53 pm
by aryne
Dear opencart expert, I am new to opencart and is in the midst of setting up my store.

I would like to know if it is possible to add an option which will display as strike-through if the stock for that option is no longer available. Something like this:

Image


If it is possible, how?
Would greatly appreciate any advice or comment!

Re: How to create a strike-through option

Posted: Fri Jul 04, 2014 3:22 am
by tacobandito
Not possible by default. I couldn't find any extension that would do that either...so you'd need to figure it out for yourself, or post on the commercial support forum.

Re: How to create a strike-through option

Posted: Fri Jul 04, 2014 10:18 am
by aryne
tacobandito wrote:Not possible by default. I couldn't find any extension that would do that either...so you'd need to figure it out for yourself, or post on the commercial support forum.
Thanks ~ Was wondering if it can at least be made grayed out?

Re: How to create a strike-through option

Posted: Fri Jul 04, 2014 10:40 am
by aryne

Re: How to create a strike-through option

Posted: Sat Jul 05, 2014 5:20 am
by tacobandito
Let us know if it worked for you!

Re: How to create a strike-through option

Posted: Sat Jul 05, 2014 5:43 am
by billynoah
coincidentally I just wrote something like this for a client a few days ago. shows out of stock options as disabled and accompanying "out of stock" text in red.

see it in action here (click on "size"):
http://envirotechgreenhouse.com/ground- ... -coldframe

pm me if you're interested pm me.

Re: How to create a strike-through option

Posted: Wed Jul 30, 2014 8:22 pm
by aryne
It worked in the sense that it fulfilled my objective but just not in the exact text block display format shown above which was what I initially wanted.

Check out following site for what I have currently achieved:

http://www.cheekylilmummy.com/Isabel-Pe ... ink-Ribbon

Expand the Size option list