{"id":104,"date":"2025-03-10T14:27:55","date_gmt":"2025-03-10T05:27:55","guid":{"rendered":"https:\/\/memo-log.net\/?p=104"},"modified":"2025-03-14T14:46:02","modified_gmt":"2025-03-14T05:46:02","slug":"welcart%e3%82%ab%e3%83%bc%e3%83%88%e3%81%8b%e3%82%89%e5%95%86%e5%93%81%e3%82%92%e5%89%8a%e9%99%a4%e3%81%97%e3%81%9f%e6%99%82%e3%81%aewcex-coupon%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae","status":"publish","type":"post","link":"https:\/\/memo-log.net\/?p=104","title":{"rendered":"welcart\u30ab\u30fc\u30c8\u304b\u3089\u5546\u54c1\u3092\u524a\u9664\u3057\u305f\u6642\u306eWCEX Coupon\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u52d5\u4f5c"},"content":{"rendered":"\n<p>\u6b21\u306e\u6d41\u308c\u3067\u51e6\u7406\u3057\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<p>$usces-&gt;cart-&gt;del_row()<br>\u2193<br>do_action( &#8216;usces_action_after_cart_del_row&#8217;, $index )<br>\u2193<br>wccp_action_after_cart_del_row_unset_usedcoupon()<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-file=\"plugins\/wcex_coupon\/front\/enter_form.php\" data-lang=\"PHP\"><code>add_action( &#39;usces_action_after_cart_del_row&#39;, &#39;wccp_action_after_cart_del_row_unset_usedcoupon&#39; );\n\n\n\/**\n * \u30af\u30fc\u30dd\u30f3\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u30af\u30ea\u30a2\n * usces_action_after_cart_del_row\n *\/\nfunction wccp_action_after_cart_del_row_unset_usedcoupon() {\n\tunset( $_SESSION[&#39;usces_entry&#39;][&#39;order&#39;][&#39;usedcoupon&#39;] );\n}<\/code><\/pre><\/div>\n\n\n\n<p>$_SESSION[&#8216;usces_entry&#8217;][&#8216;order&#8217;][&#8216;usedcoupon&#8217;]\uff08\u9069\u7528\u6e08\u307f\u30af\u30fc\u30dd\u30f3\u540d\u306estring\uff09\u3092\u524a\u9664\u3059\u308b\u3060\u3051\u3067\u3042\u308b\u3002<br>$_SESSION[&#8216;usces_entry&#8217;][&#8216;order&#8217;][&#8216;discount&#8217;]\u306e\u5024\u306f\u305d\u306e\u307e\u307e\u3002\u518d\u8a08\u7b97\u3057\u3066\u3044\u306a\u3044\u3002<br>$_SESSION[&#8216;usces_entry&#8217;][&#8216;order&#8217;][&#8216;coupon_discount_op&#8217;]\u3068$_SESSION[&#8216;usces_entry&#8217;][&#8216;order&#8217;][&#8216;coupon_discount&#8217;]\u306e\u5024\u3082\u305d\u306e\u307e\u307e\u6b8b\u308b\u3002<\/p>\n\n\n\n<p>$_SESSION[&#8216;usces_entry&#8217;][&#8216;order&#8217;][&#8216;usedcoupon&#8217;]\u304cunset()\u3055\u308c\u308b\u306e\u3067\u3001\u3053\u306e\u5024\u3092\u30d5\u30e9\u30b0\u306b\u3057\u3066\u5b9f\u884c\u3057\u3066\u3044\u308b\u30af\u30fc\u30dd\u30f3\u5024\u5f15\u304d\u306f\u884c\u308f\u308c\u306a\u3044\u3002<br>\u8907\u6570\u306e\u5546\u54c1\u304c\u30ab\u30fc\u30c8\u5185\u306b\u3042\u3063\u3066\u3001\u305d\u306e\u5185\u306e1\u3064\u3060\u3051\u524a\u9664\u3057\u305f\u5834\u5408\u3082\u3001\u30af\u30fc\u30dd\u30f3\u5024\u5f15\u304d\u5b9f\u884c\u306e\u30d5\u30e9\u30b0\u5024\u304cunset()\u3055\u308c\u308b\u306e\u3067\u3001\u5bfe\u8c61\u306b\u306a\u308b\u3059\u3079\u3066\u306e\u5546\u54c1\u306e\u30af\u30fc\u30dd\u30f3\u5024\u5f15\u304d\u304c\u884c\u308f\u308c\u306a\u304f\u306a\u308b\u3002<br>\u305f\u3060\u3057\u7e70\u308a\u8fd4\u3059\u304c\u3001$_SESSION[&#8216;usces_entry&#8217;][&#8216;order&#8217;][&#8216;discount&#8217;]\u306e\u5024\u306f\u6b8b\u3063\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<p>$_SESSION[&#8216;usces_entry&#8217;][&#8216;order&#8217;][&#8216;discount&#8217;]\u5024\u306f\u3001wc_confirm_page.php\u306b\u9077\u79fb\u3059\u308b\u307e\u3067\u518d\u8a08\u7b97\u3055\u308c\u306a\u3044\u3002<br>wc_confirm_page.php\u5185\u3067\u3001usces_get_confirm_rows() &gt; $usces-&gt;set_cart_fees() &gt; $usces-&gt;get_order_discount(),Welcart_Tax-&gt;get_order_discount() \u304c\u5b9f\u884c\u3055\u308c\u3066\u518d\u8a08\u7b97\u3055\u308c\u308b\u307e\u3067discount\u5024\u304c\u6b8b\u3063\u305f\u307e\u307e\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<p>WCEX Coupon\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u52a0\u3048\u3066\u3001\u4f1a\u54e1\u5272\u5f15\u306a\u3069\u72ec\u81ea\u306e\u5024\u5f15\u304d\u5236\u5ea6\u3092\u5b9f\u88c5\u3059\u308b\u5834\u5408\u306f\u3001\u4e0a\u8ff0\u3057\u305fWCEX Coupon\u306e\u52d5\u4f5c\u3092\u8e0f\u307e\u3048\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6b21\u306e\u6d41\u308c\u3067\u51e6\u7406\u3057\u3066\u3044\u308b\u3002 $usces-&gt;cart-&gt;del_row()\u2193do_action( &#8216;usces_action_after_cart_del_row&#8217;, $index )\u2193 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[5],"class_list":["post-104","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-welcart"],"_links":{"self":[{"href":"https:\/\/memo-log.net\/index.php?rest_route=\/wp\/v2\/posts\/104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memo-log.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/memo-log.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/memo-log.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/memo-log.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=104"}],"version-history":[{"count":0,"href":"https:\/\/memo-log.net\/index.php?rest_route=\/wp\/v2\/posts\/104\/revisions"}],"wp:attachment":[{"href":"https:\/\/memo-log.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/memo-log.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/memo-log.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}