• Resolved masterfugazi

    (@masterfugazi)


    Hello,

    I really like the plugin however current it only adds one item to the shopping cart.

    I have the most up to date version. (That came out today 4/5/2020)

    I also tried one of the code modification you had recommended in another support ticket like mine it didn’t work and I reverted my changes.

    Any recommendations would be great appreciated!

    Best,

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author taisho

    (@taisho)

    Hello,

    you are using a Divi theme which is a paid plugin, therefore, I can’t test it, thanks for understanding.

    The problem comes directly from the fact that the quantity field appears in the wrong place – DIVI uses a non-standard way to position things on archive pages. Normally, tt should be in the same DIV as Add to cart button. Currently, the Add to cart button can’t find the corresponding product quantity, so always the quantity of 1 is added.

    You can get in contact with DIVI support team and ask for 2 hooks: before Add to cart button and after Add to cart button. Then I will be able to make an exception for DIVI in the code of my plugin to position the buttons.

    Also, on the product page, you can see that there is an !important rule coming from the theme which causes an undesired gap before the “+” button and would need to be handled by child theme / extra CSS.

    View post on imgur.com

    Best regards,

    Ryszard

    Thread Starter masterfugazi

    (@masterfugazi)

    Hi Taisho,

    Thanks for the prompt reply I really really appreciate it. I understand!

    Best,

    Hi Taisho,

    Just checking in to let you know I had the same problem of only one product being added to the cart (theme: Astra Pro). In this theme the quantity field also appears in the wrong place, but applying the same fix as in 2.6.4 at line 478 worked anyway.

    Cheers!

    Site: https://freshapp.cl/

    Plugin Author taisho

    (@taisho)

    @Itm0

    Hello,

    I really appreciate the feedback. Now with 2.7.0 version, the fix is included in the code (to make it work with WooCommerce 4.0).

    However, the buttons must still be placed in the correct position for the plugin to match them correctly with the corresponding Add to cart button. To clarify my previous message about the same DIV – the buttons need to be placed within the same PRODUCT container (doesn’t need to be a DIV, can be li for example), where exactly it completely doesn’t matter.

    As you can see here, on your page the buttons are a sibling of DIV that includes price, Add to cart and other stuff. Both are within the product container:

    https://i.imgur.com/XYEJIoJ.png

    The reported issue on Divi theme concerned a case where the buttons landed outside the product container.

    Best regards,

    Ryszard

    • This reply was modified 4 years, 11 months ago by taisho.

    Thanks! Good to know that it is supposed to work while it’s in the same product container. Weirdly enough it didn’t work for me until changing line 478 (in version 2.7.0).

    Plugin Author taisho

    (@taisho)

    OMG, thank You! No idea how I somehow mixed up the files and released the one without this fix. I will double-check the one I was supposed to distribute and release an update fast ??

    Once again BIG thanks!

    Best regards,

    Ryszard

    No problem! Thanks for developing this great plugin!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Only 1 item added to cart’ is closed to new replies.