{"id":9461163,"date":"2017-09-01T15:38:49","date_gmt":"2017-09-01T15:38:49","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/hooking-under-the-coupom\/"},"modified":"2017-09-01T15:38:49","modified_gmt":"2017-09-01T15:38:49","slug":"hooking-under-the-coupom","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/hooking-under-the-coupom\/","title":{"rendered":"Hooking under the coupom"},"content":{"rendered":"<p>Hi, I chose the option to hook under the coupom, but it is splitting up previously existing elements.<\/p>\n<p>Wish I could post a picture here to show you, but I\u00b4ll try to show you on text:<\/p>\n<p>&lt;div class=&#8221;coupon&#8221;&gt;<br \/>\n     &lt;label for=&#8221;coupon_code&#8221;&gt;Coupon:&lt;\/label&gt;<br \/>\n      &#8230;<br \/>\n     &lt;div id=&#8221;wc-giftwrap&#8221; class=&#8221;wc-giftwrap giftwrap-coupon&#8221;&gt;<br \/>\n     &lt;input type=&#8221;submit&#8221; class=&#8221;button&#8221; name=&#8221;update_cart&#8221; value=&#8221;Update Cart&#8221;&gt;<br \/>\n&lt;\/div&gt;<\/p>\n<p>As you can see, the #wc-giftwrap is being hooked before the update cart buton. How can we solve it?<\/p>\n","protected":false},"template":"","class_list":["post-9461163","topic","type-topic","status-publish","hentry","topic-tag-hook","topic-tag-update-cart-button"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9461163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9461163\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=9461163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}