• Resolved hamergil

    (@hamergil)


    Hi

    Im checking some stuff and playing around before purchasing your premium version. I have a question:
    I see you are using hooks for the location of the quantity in the shop / archive pages as seen here in my project
    https://prnt.sc/vVZ1V8P7rMC2
    Is there a an action I can use in order to place the quantity box elsewhere? for example in my case – Above the title?
    without modifying the plugin core files of course
    Let me know. thanks

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author moiseh

    (@moiseh)

    Hello,

    You can try to hack into this hook that this plugin uses:

    add_filter(‘woocommerce_loop_add_to_cart_link’, array($this, ‘shop_quantity_input’), 10, 2 );

    But it may break some JS event’s that need to be considered.

    Another choice would move this section using jQuery/JS independently on page load, so you don’t need to modify the hooks/JS events

    Thread Starter hamergil

    (@hamergil)

    I can’t use this filter in my functions.php
    because $this needs to be referred to something
    anything I can do? I don’t want to modify the plugin. thanks

    Thread Starter hamergil

    (@hamergil)

    I purchased the PRO version. can you try and answer my question above?
    I prefer to use PHP and not jQuery

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change location of quantity in archive / shop page’ is closed to new replies.