Jump to content

Customize Quantity button with images


BenoitS
 Share

Recommended Posts

Hi

I would like to customize my Quantity "button".

But I would I like to do is more than just customization through CSS.

Basically, I would like to illustrate my values 1, 2 and 3 with an image for each one.

In my example just below, by clicking on "More" the classic quantity selector appears and allows the user to choose a quantity greater than 3. This is quite a good experience for users!

Any idea of how it's possible to achieve something like that? Or if a module can do the job?

Thanks in advance for your help!

image.png.9b39d7ccd3bb5ca30aa61af4dd139656.png

Share this post


Link to post
Share on other sites

Hi,

this can be solved by creating custom CSS, JS and HTML code, adding custom html code of three buttons inside the product template and also by adding custom JavaScript for the 1,2,3 button clicks and also for the More button click, which will hide the 3 buttons and display the quantity input.

Kind regards, Leo

Share this post


Link to post
Share on other sites

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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More