{"id":75,"date":"2024-10-05T10:24:26","date_gmt":"2024-10-05T01:24:26","guid":{"rendered":"https:\/\/memo-log.net\/?p=75"},"modified":"2024-11-01T22:10:37","modified_gmt":"2024-11-01T13:10:37","slug":"usces_get_send_out_date%e9%96%a2%e6%95%b0%e3%81%ae%e6%88%bb%e3%82%8a%e5%80%a4%e9%85%8d%e5%88%97%e8%a7%a3%e8%aa%ac","status":"publish","type":"post","link":"https:\/\/memo-log.net\/?p=75","title":{"rendered":"usces_get_send_out_date()\u95a2\u6570\u306e\u623b\u308a\u5024(\u914d\u5217)\u89e3\u8aac"},"content":{"rendered":"\n<p>welcart\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u4e88\u7d04\u8ca9\u58f2\u306e\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u4ed5\u4e8b\u3092\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u305f\u3068\u3048\u3070\u3001<br>10\u67081\u65e5\u304b\u308911\u670830\u65e5\u307e\u3067\u306e\u9593\u3060\u3051\u30af\u30ea\u30b9\u30de\u30b9\u30b1\u30fc\u30ad\u3092\u8ca9\u58f2\u3057\u3066\u3001\u6307\u5b9a\u3055\u308c\u305f\u5230\u7740\u5e0c\u671b\u65e5\u306b\u5c4a\u3051\u308b\u3002<br>\u3053\u3046\u3044\u3046\u306e\u306f\u3001\u6b63\u6708\u306e\u304a\u305b\u3061\u6599\u7406\u3068\u304b\u3067\u3082\u3088\u304f\u3042\u308b\u4ed5\u7d44\u307f\u3060\u3068\u601d\u3046\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u4ed5\u7d44\u307f\u3065\u304f\u308a\u306e\u4e2d\u3067\u30dd\u30a4\u30f3\u30c8\u306e\uff11\u3064\u306b\u306a\u3063\u305f\u306e\u304c\u3001usces_get_send_out_date()\u95a2\u6570\u3067\u3042\u308b\u3002<br>\u7c21\u5358\u306b\u5f79\u5272\u3092\u8a00\u3046\u3068\u3001\u30ab\u30fc\u30c8\u5185\u306b\u3042\u308b\u3059\u3079\u3066\u306e\u5546\u54c1\u306e\u4e2d\u304b\u3089\u6700\u3082\u9045\u3044\u6700\u77ed\u767a\u9001\u4e88\u5b9a\u65e5\u3092\u8fd4\u3059\u95a2\u6570\u3060\u3002\u3053\u306e\u65e5\u306b\u3061\u306b\u57fa\u3065\u3044\u3066\u4f5c\u6210\u3059\u308b\u5230\u7740\u5e0c\u671b\u65e5\u30ea\u30b9\u30c8\u304b\u3089\u3001\u6ce8\u6587\u8005\u306b\u5230\u7740\u5e0c\u671b\u65e5\u3092\u9078\u3093\u3067\u3082\u3089\u3046\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u95a2\u6570\u306e\u623b\u308a\u5024\u306f\u914d\u5217\u3067\u3001\u6700\u3082\u9045\u3044\u6700\u77ed\u767a\u9001\u4e88\u5b9a\u65e5\u4ee5\u5916\u306b\u3082\u5024\u304c\u3042\u308b\u3002\u3057\u304b\u3082\u4e88\u7d04\u8ca9\u58f2\u6a5f\u80fd\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306b\u306f\u91cd\u8981\u306a\u5024\u3070\u304b\u308a\u3060\u3002<br>\u6bce\u56de\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u89e3\u3044\u3066\u5024\u306e\u610f\u5473\u3092\u8abf\u3079\u308b\u306e\u306f\u9762\u5012\u306a\u306e\u3067\u3001\u307e\u3068\u3081\u3066\u304a\u304f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">welcart\u5185\u90e8\u3067\u306e\u5b9f\u884c\u7b87\u6240<\/h2>\n\n\n\n<p>usces_get_send_out_date()\u95a2\u6570\u304c\u3001welcart\u30d7\u30e9\u30b0\u30a4\u30f3\u5185\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u306e\u306f2\u7b87\u6240\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>includes\/delivery_info_script.php<br>\u5192\u982d\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u3002wc_delivery_page.php\u306b\u304a\u3051\u308b\u5230\u7740\u5e0c\u671b\u65e5\u306eselect option\u3092\u751f\u6210\u3059\u308b\u305f\u3081\u306e\u57fa\u790e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u3002<\/li>\n\n\n\n<li>classes\/usceshop.class.php > $usces->confirm() > $usces->delivery_check()<br>welcart\u306f\u3001\u30ab\u30fc\u30c8\u306e\u914d\u9001\u30fb\u652f\u6255\u65b9\u6cd5\u30da\u30fc\u30b8\u304b\u3089\u5185\u5bb9\u78ba\u8a8d\u30da\u30fc\u30b8\u3078\u9077\u79fb\u3059\u308b\u969b\u306b\u3001\u300c\u6307\u5b9a\u3055\u308c\u305f\u5230\u7740\u5e0c\u671b\u65e5\u306b\u5546\u54c1\u304c\u5c4a\u304f\u306e\u304b\uff1f\u300d\u3092\u691c\u8a3c\u3057\u3066\u3044\u308b\u3002\u691c\u8a3c\u7528\u306e\u57fa\u790e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u3001$usces->delivery_check()\u30e1\u30bd\u30c3\u30c9\u5185\u90e8\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u3002usces_get_send_out_date()\u95a2\u6570\u306e\u623b\u308a\u5024\u304b\u3089\u3001\u691c\u8a3c\u3067\u4f7f\u3046\u8a08\u7b97\u4e0a\u306e\u5230\u7740\u65e5(\uff1d\u767a\u9001\u4e88\u5b9a\u65e5\uff0b\u914d\u9054\u65e5\u6570)\u3092\u6c42\u3081\u3066\u3044\u308b\u3002<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">\u623b\u308a\u5024\uff08\u914d\u5217\uff09\u306e\u8aac\u660e<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\" data-show-lang=\"1\"><code>\/**\n * welcart ver2.10.5\n *\/\nvar_dump( usces_get_send_out_date() );\narray (size=6)\n  &#39;today_bus_flag&#39; =&gt; int 1\n  &#39;time_limit_addition&#39; =&gt; int 0\n  &#39;indication_incart&#39; =&gt; int 57\n  &#39;holiday&#39; =&gt; int 4\n  &#39;sendout_num&#39; =&gt; int 61\n  &#39;sendout_date&#39; =&gt; \n    array (size=3)\n      &#39;year&#39; =&gt; string &#39;2024&#39; (length=4)\n      &#39;month&#39; =&gt; string &#39;12&#39; (length=2)\n      &#39;day&#39; =&gt; string &#39;05&#39; (length=2)<\/code><\/pre><\/div>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\" open><summary>today_bus_flag<\/summary>\n<p>\u6ce8\u6587\u65e5\u304c\u55b6\u696d\u65e5\u306a\u30891\u3002\u767a\u9001\u696d\u52d9\u4f11\u65e5\u306a\u30890\u3002<br>\u7ba1\u7406\u753b\u9762Welcart Shop \u55b6\u696d\u65e5\u8a2d\u5b9a\u30da\u30fc\u30b8\u306e\u30ab\u30ec\u30f3\u30c0\u30fc\u3067\u8a2d\u5b9a\u3057\u305f\u5185\u5bb9\u304c\u53cd\u6620\u3055\u308c\u308b\u3002<br>$usces-&gt;options[&#8216;business_days&#8217;]<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\" open><summary>time_limit_addition<\/summary>\n<p>Welcart Shop \u914d\u9001\u8a2d\u5b9a\u3067\u8a2d\u5b9a\u3057\u305f\u914d\u9001\u696d\u52d9\u7de0\u6642\u9593\u306e\u5024\u306b\u3088\u308a\u6c7a\u307e\u308b\u3002<br>$usces-&gt;options[&#8216;delivery_time_limit&#8217;]<\/p>\n\n\n\n<p>\u6ce8\u6587\u6642\u9593\u304c\u914d\u9001\u696d\u52d9\u7de0\u6642\u9593\u5185\u306a\u30890\u3002\u914d\u9001\u696d\u52d9\u7de0\u6642\u9593\u3092\u904e\u304e\u3066\u3044\u308c\u30701\u3002<br>\u3053\u306etime_limit_addition\u5024\u304csendout_num\u5024\u306b\u52a0\u7b97\u3055\u308c\u308b\u3002<br>\u3064\u307e\u308a\u3001\u6ce8\u6587\u6642\u9593\u304c\u914d\u9001\u696d\u52d9\u7de0\u6642\u9593\u3092\u904e\u304e\u3066\u3044\u308c\u3070\u30011\u65e5\u52a0\u7b97\u3055\u308c\u3066\u7fcc\u55b6\u696d\u65e5\u306b\u5165\u3063\u305f\u6ce8\u6587\u3068\u540c\u3058\u6271\u3044\u3067\u767a\u9001\u65e5\u306e\u8a08\u7b97\u304c\u884c\u308f\u308c\u308b\u3002<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\" open><summary>indication_incart<\/summary>\n<p>\u767a\u9001\u65e5\u307e\u3067\u306e\u65e5\u6570\u3002<br>\u5177\u4f53\u7684\u306b\u306f\u3001welcart\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u767a\u9001\u65e5\u76ee\u5b89\u306e\u914d\u5217\u306e\u5024\u3067\u3042\u308b\u3002<br>$usces->options[&#8216;usces_shipping_indication&#8217;]<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-file=\"welcart\u30c7\u30d5\u30a9\u30eb\u30c8\u306eshipping_indication\" data-lang=\"PHP\"><code>var_dump( $usces-&gt;options[&#39;usces_shipping_indication&#39;] );\narray (size=10)\n  0 =&gt; int 0 \/\/--\u9078\u629e--\n  1 =&gt; int 0 \/\/\u5373\u65e5\n  2 =&gt; int 2 \/\/1\uff5e2\u65e5\u5f8c\n  3 =&gt; int 3 \/\/2\uff5e3\u65e5\u5f8c\n  4 =&gt; int 5 \/\/3\uff5e5\u65e5\u5f8c\n  5 =&gt; int 6 \/\/4\uff5e6\u65e5\u5f8c\n  6 =&gt; int 7 \/\/\u7d041\u9031\u9593\u5f8c\n  7 =&gt; int 14 \/\/\u7d042\u9031\u9593\u5f8c\n  8 =&gt; int 21 \/\/\u7d043\u9031\u9593\u5f8c\n  9 =&gt; int 0 \/\/\u5546\u54c1\u5165\u8377\u5f8c<\/code><\/pre><\/div>\n\n\n\n<p>\u305f\u3068\u3048\u3070\u3001\u8981\u7d20\u304c&#8217;\u300c6 =&gt; 7 \/\/\u7d041\u9031\u9593\u5f8c\u300d\u306a\u3089indication_incart\u5024\u306f7\u3002<br>indication_incart\u5024\u306f\u3001\u6700\u77ed\u914d\u9001\u5e0c\u671b\u65e5\u306e\u7b97\u51fa\u306b\u5229\u7528\u3055\u308c\u308b\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306eindication_incart\u5024\u304c\u6700\u77ed\u914d\u9001\u5e0c\u671b\u65e5\u306b\u52a0\u7b97\u3055\u308c\u308b\u3002<\/p>\n\n\n\n<p>\u30ab\u30fc\u30c8\u5185\u306b\u5546\u54c1\u304c\u8907\u6570\u3042\u308b\u5834\u5408\u306f\u3001\u305d\u306e\u4e2d\u3067\u6700\u3082\u5927\u304d\u3044\u5024\u304c\u63a1\u7528\u3055\u308c\u308b\uff08\u4e0b\u8a18\u30b3\u30fc\u30c9\u53c2\u7167\uff09\u3002\u3064\u307e\u308a\u3001\u767a\u9001\u65e5\u307e\u3067\u306e\u65e5\u6570\u304c\u9577\u3044\uff08\u5f8c\u306e\uff1d\u9045\u3044\uff09\u5546\u54c1\u306b\u5408\u308f\u305b\u3066\u5230\u7740\u5e0c\u671b\u65e5\u306e\u9078\u629e\u80a2select option\u30ea\u30b9\u30c8\u304c\u751f\u6210\u3055\u308c\u308b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-file=\"usc-e-shop\/functions\/function.php &gt; usces_get_send_out_date()\" data-lang=\"PHP\"><code>\/\/ get the shipping indication in cart.\n$cart                = $usces-&gt;cart-&gt;get_cart();\n$shipping_indication = apply_filters( &#39;usces_filter_shipping_indication&#39;, $usces-&gt;options[&#39;usces_shipping_indication&#39;] );\n$shipping            = 0;\n$indication_flag     = true;\n$cart_count          = ( $cart && is_array( $cart ) ) ? count( $cart ) : 0;\n$shipping_rule_ex    = apply_filters( &#39;usces_filter_item_shipping_rule_ex&#39;, 9 );\nfor ( $i = 0; $i &lt; $cart_count; $i++ ) {\n\t$cart_row     = $cart[ $i ];\n\t$post_id      = $cart_row[&#39;post_id&#39;];\n\t$itemShipping = (int) $usces-&gt;getItemShipping( $post_id );\n\tif ( 0 === $itemShipping || $shipping_rule_ex === $itemShipping ) {\n\t\t$indication_flag = false;\n\t\tbreak;\n\t}\n\tif ( $shipping &lt; $itemShipping ) {\n\t\t$shipping = $itemShipping;\n\t}\n}\n$indication_incart = ( $indication_flag ) ? $shipping_indication[ $shipping ] : false;<\/code><\/pre><\/div>\n<\/details>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\" open><summary>holiday<\/summary>\n<p>\u767a\u9001\u4e88\u5b9a\u65e5\u307e\u3067\u306b\u3042\u308b\u300c\u767a\u9001\u696d\u52d9\u4f11\u65e5\u300d\u6570\u3002<br>\u7ba1\u7406\u753b\u9762Welcart Shop \u55b6\u696d\u65e5\u8a2d\u5b9a\u30da\u30fc\u30b8\u306e\u30ab\u30ec\u30f3\u30c0\u30fc\u3067\u8a2d\u5b9a\u3057\u305f\u5185\u5bb9\u304c\u53cd\u6620\u3055\u308c\u308b\u3002<\/p>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\" open><summary>sendout_num<\/summary>\n<p>\u6ce8\u6587\u65e5\u304b\u3089\u767a\u9001\u4e88\u5b9a\u65e5\u307e\u3067\u306e\u65e5\u306b\u3061\u6570\u3002<br>\u6ce8\u6587\u65e5\u304c\u55b6\u696d\u65e5\u306a\u3089\u3001<br>sendout_num\uff1dtime_limit_addition\uff0bindication_incart\uff0bholiday<br>\u6ce8\u6587\u65e5\u304c\u767a\u9001\u696d\u52d9\u4f11\u65e5\u306a\u3089\u3001<br>sendout_num\uff1dindication_incart\uff0bholiday<\/p>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\" open><summary>sendout_date<\/summary>\n<p>\u767a\u9001\u4e88\u5b9a\u65e5\uff08\uff1d\u6ce8\u6587\u65e5\uff0bsendout_num\uff09\u3002<br>year,month,day\u3092key\u3068\u3057\u305f\u9023\u60f3\u914d\u5217\u3067\u8fd4\u3055\u308c\u308b\u3002<\/p>\n<\/details>\n<\/details>\n<\/details>\n\n\n\n<p><a href=\"https:\/\/www.welcart.com\/archives\/tips\/tips-20210514\" target=\"_blank\" rel=\"noreferrer noopener\">\u5230\u7740\u5e0c\u671b\u65e5\u6307\u5b9a\u306e\u6a5f\u80fd\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306b<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">welcart\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u306e\u4f7f\u3044\u65b9\u306a\u3069<\/h2>\n\n\n\n<p>usces_get_send_out_date()\u95a2\u6570\u306e\u623b\u308a\u5024\u304c\u5f15\u6570\u306b\u306a\u3063\u3066\u3044\u308b\u30d5\u30c3\u30af\u306b\u3001includes\/delivery_info_script.php\u5185\u306b\u3042\u308b&#8217;usces_filter_cart_delivery_script&#8217; filter hook\u304c\u3042\u308b\u3002<br>\u3053\u306e\u30d5\u30c3\u30af\u3092\u4f7f\u3048\u3070\u3001\u914d\u9001\u30fb\u652f\u6255\u65b9\u6cd5\u30da\u30fc\u30b8\u306b\u304a\u3044\u3066\u300c\u914d\u9001\u5148\u30fb\u914d\u9001\u65b9\u6cd5\u30fb\u5230\u7740\u5e0c\u671b\u65e5\u30fb\u5230\u7740\u5e0c\u671b\u6642\u9593\u300d\u306e\u51fa\u529b\u3084\u52d5\u304d\u3092\u64cd\u4f5c\u3059\u308bjavaScript\u3092\u3001\u5927\u5e45\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3060\u3002<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>welcart\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u4e88\u7d04\u8ca9\u58f2\u306e\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u4ed5\u4e8b\u3092\u3057\u305f\u3002 \u305f\u3068\u3048\u3070\u300110\u67081\u65e5\u304b\u308911\u670830\u65e5\u307e\u3067\u306e\u9593\u3060\u3051\u30af\u30ea\u30b9\u30de\u30b9\u30b1\u30fc\u30ad\u3092\u8ca9\u58f2\u3057\u3066\u3001\u6307\u5b9a\u3055\u308c\u305f\u5230\u7740\u5e0c\u671b\u65e5\u306b\u5c4a\u3051\u308b\u3002\u3053\u3046\u3044\u3046\u306e\u306f\u3001\u6b63\u6708\u306e\u304a\u305b\u3061\u6599\u7406\u3068\u304b\u3067\u3082\u3088\u304f\u3042 [&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-75","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\/75","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=75"}],"version-history":[{"count":0,"href":"https:\/\/memo-log.net\/index.php?rest_route=\/wp\/v2\/posts\/75\/revisions"}],"wp:attachment":[{"href":"https:\/\/memo-log.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/memo-log.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/memo-log.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}