• Resolved xfinallight

    (@xfinallight)


    Hi there,

    Where can i find the code that injects the form into the page part?
    I have a sticky add to cart bar below my product page and it duplicates the form into that part also which makes nothing work anymore.

    css of where the uni cpo container is being injected is as followed (where i don’t want it to show):
    .barberry-add-to-cart-fixed .barberry-wrap-content-inner .barberry-wrap-content .barberry-wrap-content-sections .barberry-fixed-product-btn .uni-builderius-container

    • This topic was modified 4 years, 11 months ago by xfinallight.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author moomooagency

    (@moomooagency)

    Which form? The main form? With all options?

    Thread Starter xfinallight

    (@xfinallight)

    yeah the main form, cuz i see it twice now.
    on top of the page and in my fixed cart bar below (which appears after x scroll)

    I don’t want it to render it into the fixed bar also which makes nothing work anymore.
    Conditional logics etc

    Plugin Author moomooagency

    (@moomooagency)

    Hmm.. It means you have a mess with hooks. The form is outputted by one of them. There is no other way to do that.

    Thread Starter xfinallight

    (@xfinallight)

    can you point me out the hook, maybe i can edit the theme php files so it works like it should.
    like does it add before cart, or in a certain div etc ?

    Thread Starter xfinallight

    (@xfinallight)

    I found the issue, it’s cuz the builder form hook is injected in “woocommerce_before_add_to_cart_button”
    now I need to find a alternative to hook it in since the fixed cart bar has a cloned cart button that’s why it duplicates the form.

    Thread Starter xfinallight

    (@xfinallight)

    now a second issue popped up, i fixed the duplicate form by hooking it into my custom hook.
    but the fixed bar’s cart button is sometimes greyed out and has ajax disabled in it’s code.
    happens every few refreshes.

    Plugin Author moomooagency

    (@moomooagency)

    Look, it is not a support request anymore. It is a customisation. So, you have to deal with it on your own or order such service from professional.

    Thread Starter xfinallight

    (@xfinallight)

    I can do pretty much it by myself but i’m stuck with this https://prnt.sc/s0s0sw
    If i change the hook before cart to something else, then nothing happens when i click the cart button.
    doesn’t add to the cart etc

    i’m currently in talk with the theme designer he is helping me out with my fixed cart issue.
    if you can only tell me why it stops working on hooking it to a different spot than before cart i’m pretty much done with what I need.

    Plugin Author moomooagency

    (@moomooagency)

    Probably because you are using hook which is not inside .cart form element. Options must be inside that form.

    Thread Starter xfinallight

    (@xfinallight)

    guess that makes sense, i’ll try to figure it out.
    Appreciate the reply, have a great weekend guys!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘inject form into specific div or body’ is closed to new replies.