• Resolved frolovsite

    (@frolovsite)


    Hello! Please help me!
    The problem is that the products added to the main page of my site using shortcodes are added to the cart only 1 piece. That is, 50 is displayed in the quantity input field, and 1 piece is added to the cart.
    Everything works correctly on the archive page and on the category pages.
    Tried adding is_home() and is_front_page() everywhere I could, but that didn’t solve the problem.

    I will be looking forward to your reply. I’d be glad for even a little hint.

    Thank you in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Condless

    (@condless)

    Hi,
    Please try the ‘How to display the quantity field of the ‘Archive Quantity’ option only on fully supported pages?’ from the plugin’s docs.

    Thread Starter frolovsite

    (@frolovsite)

    Thank you for your reply! But this is not the solution that could satisfy me.
    With my meager knowledge of programming, I had to spend a lot of time searching for the problem. But the problem has been on the surface all this time.
    The main page (is_front_page()) simply does not have the “woocommerce_after_shop_loop” hook, to which the “wc_archives_quantity_fields_script” function was connected, responsible for the “data-quantity” attribute. Now I have connected this function to the footer and everything seems to work as it should. Maybe I’ll find a better solution later.

    Thanks for the cool plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with products added by shortcode’ is closed to new replies.