Home › Forums › Basel support forum › Quantity select field
Quantity select field
- This topic has 13 replies, 2 voices, and was last updated 6 years, 3 months ago by
Artem Temos.
-
AuthorPosts
-
November 7, 2018 at 2:10 pm #87755
ALGOParticipantHello,
I have the same issue as lelikletter, after added “override-loop-template-and-show-quantities-next-to-add-to-cart-button” code, the choice of the number appears, but the product is not added to cart and when I select ‘+’ or ‘-‘, the quantity order increase of 2 steps, for exemple, I have ‘1’ on quantity order and if I click on ‘+’, I have ‘3’ on quantity order.
How can I correct that ?
Thank you in advance.
Have a good day !
Benoît
PS : my website is not yet online.
November 7, 2018 at 3:15 pm #87781
Artem TemosKeymasterHi,
Please, describe to us your problems in a bit more details. Attach some screenshots and provide us with a list of steps on how to reproduce it on your website. Unfortunately, we are not able to check it while your website is not online yet.
Thank you in advance.
November 7, 2018 at 4:30 pm #87818
ALGOParticipantHi,
As I said before, I added the following code “override-loop-template-and-show-quantities-next-to-add-to-cart-button”.
After that, I have the quentity order next to add-to-cart button like that (img_001).
It is ok for me, but when I want to add a product, for exemple my product “INO Essentiel”, I want 2 quantities of this product, I can’t, I have automaticly 3 quantities (img_002)and if I add another time a product, it steps from 3 to 5, …
It is the same thing with all products.
After when I click on add-to-cart button, the cart window on the right appears (img_003)but the number of product currently on card doesn’t change.
If necessary I can send you editor account to see directly.
Thank you in advance.
Benoît
November 7, 2018 at 5:00 pm #87832
Artem TemosKeymasterPlease, send us at least your admin access.
November 7, 2018 at 5:40 pm #87847
ALGOParticipantMy admin access in private
November 7, 2018 at 5:51 pm #87855
Artem TemosKeymasterWhere exactly have you added this code? You need to place it to the child theme only. Be sure that the parent theme doesn’t have any code modification.
November 8, 2018 at 9:22 am #87967
ALGOParticipantHi,
I added the code on function.php on Basel theme but not the child theme.
I created few hours ago a child theme and added this code but nothing work yet, there is no quantity select field.I don’t understand.
Thank you in advance for your help.
November 8, 2018 at 10:50 am #87983
Artem TemosKeymasterYou should activate the child theme in Appearance -> Themes to make it work https://gyazo.com/b0077a129b29c66531269cbe7d36ff4f
November 8, 2018 at 11:22 am #87990
ALGOParticipantHi,
I activate the Child theme, know I have the add-to-cart button and the quantity select field but it still doesn’t work as I said before.
There is an incrementation of 2 steps and it doesn’t work when I add something on the cart.
Nothing has changed.Thank you
November 8, 2018 at 12:08 pm #88001
Artem TemosKeymasterTry to disable all external plugins that are not related to our theme first.
November 8, 2018 at 4:21 pm #88090
ALGOParticipantHi,
I disabled plugin by plugin and I find a plugin which added a step, it was the ‘WooCommerce Quantity Increment’ plugin.
So now it’s ok for the incrementation but there is always an issue to add to cart, it doesn’t work.Thank you
November 8, 2018 at 4:28 pm #88091
Artem TemosKeymasterTry to replace this line
$html .= '<button type="submit" class="button alt">' . esc_html( $product->add_to_cart_text() ) . '</button>';
with this one
$html .= '<button type="submit" value="' . $product->get_id() . '" class="button alt">' . esc_html( $product->add_to_cart_text() ) . '</button>';
November 9, 2018 at 3:12 pm #88453
ALGOParticipantHi,
It works !
Thank you very much !Have a nice day !
Benoît
November 9, 2018 at 3:12 pm #88454
Artem TemosKeymasterGreat, you are welcome!
-
AuthorPosts
The topic ‘Quantity select field’ is closed to new replies.
- You must be logged in to create new topics. Login / Register