{"id":1661,"date":"2014-03-17T21:46:04","date_gmt":"2014-03-17T21:46:04","guid":{"rendered":"http:\/\/musilda.cz\/?p=1661"},"modified":"2014-03-17T21:46:04","modified_gmt":"2014-03-17T21:46:04","slug":"failure-message-pri-odeslani-objednavky-woocommerce","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/failure-message-pri-odeslani-objednavky-woocommerce\/","title":{"rendered":"Failure message p\u0159i odesl\u00e1n\u00ed objedn\u00e1vky Woocommerce"},"content":{"rendered":"\n

Tento \u010dl\u00e1nek p\u00ed\u0161i sp\u00ed\u0161e jako p\u0159ipom\u00ednku, a\u017e to budu zase hledat. Pom\u011brn\u011b jednoduch\u00e9 \u0159e\u0161en\u00ed probl\u00e9mu, kter\u00e9 se v\u0161ak \u0161patn\u011b hled\u00e1. Po odesl\u00e1n\u00ed objedn\u00e1vky se v\u00e1m zobraz\u00ed chybov\u00e9 hl\u00e1\u0161en\u00ed, kter\u00e9 se tv\u00e1\u0159\u00ed, jako \u017ee nebyla vypln\u011bn\u00e1 povinn\u00e1 pole a vypad\u00e1 n\u011bjak takto:<\/p>\n\n\n\n

\"failure\"<\/a><\/figure>\n\n\n\n

Na diskuzn\u00edch f\u00f3rech najdete n\u011bkolik nekonkr\u00e9tn\u00edch rad, ale m\u011b se osv\u011bd\u010dilo naj\u00edt tento z\u00e1pis:<\/p>\n\n\n\n

$order->id, add_query_arg('key', $order->order_key,\nget_permalink(get_option('woocommerce_pay_page_id'))))\n<\/pre>\n\n\n\n

a nahradit jej:<\/p>\n\n\n\n

$order->id, add_query_arg('key', $order->order_key,\nget_permalink(woocommerce_get_page_id('pay'))))\n<\/pre>\n\n\n\n

Tad\u00e1…<\/p>\n","protected":false},"excerpt":{"rendered":"

Tento \u010dl\u00e1nek p\u00ed\u0161i sp\u00ed\u0161e jako p\u0159ipom\u00ednku, a\u017e to budu zase hledat. Pom\u011brn\u011b jednoduch\u00e9 \u0159e\u0161en\u00ed probl\u00e9mu, kter\u00e9 se v\u0161ak \u0161patn\u011b hled\u00e1. Po odesl\u00e1n\u00ed objedn\u00e1vky se v\u00e1m zobraz\u00ed chybov\u00e9 hl\u00e1\u0161en\u00ed, kter\u00e9 se tv\u00e1\u0159\u00ed, jako \u017ee nebyla vypln\u011bn\u00e1 povinn\u00e1 pole a vypad\u00e1 n\u011bjak takto: Na diskuzn\u00edch f\u00f3rech najdete n\u011bkolik nekonkr\u00e9tn\u00edch rad, ale m\u011b se osv\u011bd\u010dilo naj\u00edt tento z\u00e1pis:<\/p>\n","protected":false},"author":1,"featured_media":8732,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[25],"tags":[],"class_list":["post-1661","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-woocommerce"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1661"}],"collection":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/comments?post=1661"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1661\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/8732"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=1661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=1661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=1661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}