Support » Plugin: Woocommerce Gift Wrapper » Other placement for gift wrapper

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Little Package

    (@littlepackage)

    Hi Click-Factor,

    The placement using the two hooks provided ultimately depends on what theme you’re using. Could you tell me what theme you’re using and more about where you’d like the gift wrapping option to show up on the page?

    Thank you!

    hello

    I’m using the mindig theme of YITH including visual composer.
    When I add a section right after the cart shortcode section, it displays after your plugin. I’d rather have this new section between the cart and gift wrapper. Is that possible?
    See this screenshot
    or
    To see for yourself visit
    http://akamatra.gr/wp-login.php
    Enter

    [moderated]
    Go to http://akamatra.gr/shop
    and add some products by clicking the green button of the product preview blocks.
    Then go to cart page

    Thanks for the support

    Plugin Author Little Package

    (@littlepackage)

    Thanks for the information, the screenshot was especially helpful. You can delete the username you provided; I recommend it.

    The plugin hooks either into the ‘woocommerce_after_cart’ or the ‘woocommerce_cart_coupon’ actions. You could probably hook into the ‘woocommerce_after_cart’ with a higher priority than the Gift Wrapper plugin and achieve what you are showing in the screenshot. Or you can try an edit to the Gift Wrapper plugin code with a lower priority to see if it works, and if so, I can permanently edit it for the next release. My concern is I don’t know how that will affect everyone else…

    Are you able to edit line 91 of woocommerce-gift-wrapper.php, change it from

    add_action( 'woocommerce_after_cart', array( &$this, 'add_gift_wrap_to_cart_page' ) );

    to:

    add_action( 'woocommerce_after_cart', array( &$this, 'add_gift_wrap_to_cart_page' ), 99 );

    OMG i forgot that the thread is public.
    Can you delete that message for me?.
    I modified the code as you suggested and worked fine.
    Thank you very much

    Moderator Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Done but you need to change those details as soon as possible

    This what I’m doing now. Thank you

    Plugin Author Little Package

    (@littlepackage)

    Thank you, Andrew! 🙂

    Plugin Author Little Package

    (@littlepackage)

    Click-Factor, I’m glad to see that helped in your specific case. I’ll keep this in mind for a future release, but again, I will have to think about how it will affect *most* people. If I decide to not add it into the core code, you will need to add in the 99 priority with plugin updates.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Other placement for gift wrapper’ is closed to new replies.