Jump to content

Modify product quantity touchspin


DARKF3D3

Recommended Posts

On 9/17/2023 at 10:32 AM, DARKF3D3 said:

I need to modify product quantity field moving decrease quantity button to the left, and increase to the right. (quantity field showed on product page and checkout).
To be done on PS8.1
Avoiding to edit theme.js file

touchspin.png

we have solution which might interest you, at category when add to cart it changes  the add to cart to show qty, they can then see the category as a 'real' isle shopping.  

 

her is client example, click any add to cart, others require options.

https://calligraphyartsuk.com/en-co/8-calligraphy-dip-pens-ink

this has proven over and over again to improve visitor experience and increase total products  by car...

this post only to show our passion for making solutions that are better than any idea store amin might have looool

Link to comment
Share on other sites

  • 4 months later...
<div class="cart-input-wrapper">
	<div class="input-group bootstrap-touchspin">
      <span class="input-group-addon bootstrap-touchspin-prefix" style="display: none;"></span>
      <input style="width: 40px; display: block;" class="js-cart-line-product-quantity form-control" 
             data-down-url="op=down" 
             data-up-url="op=up" 
             data-update-url="" 
             data-product-id="idproduct" 
             type="number" 
             value="25" 
             name="product-quantity-spin" 
             min="1">
      <span class="input-group-addon bootstrap-touchspin-postfix" style="display: none;"></span>
      <span class="input-group-btn-vertical">
        <button class="btn btn-touchspin js-touchspin js-increase-product-quantity bootstrap-touchspin-up" type="button">
          <i class="material-icons touchspin-up"></i>
        </button>
        <button class="btn btn-touchspin js-touchspin js-decrease-product-quantity bootstrap-touchspin-down" type="button">
          <i class="material-icons touchspin-down"></i>
        </button>
      </span>
  </div>
</div> 

OK - so I have it wrapped in DIV. Looks OK but buttons with +/- are not inline.
It is preview of HTML that is generated by all js in Presta. I was thinking to change the CSS to make buttons looks in line like this: "-" "input" "+"

If I make it looks good it doesn't work as it should - buttons do not increase or decrease..
I do not want to change core files.

To tell the truth it is really annoying - such a simple and obvious thing and such a pain the a...

 

Edited by Butch0071 (see edit history)
Link to comment
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
×
×
  • Create New...