{"id":2897,"date":"2016-04-26T04:46:48","date_gmt":"2016-04-26T04:46:48","guid":{"rendered":"http:\/\/musilda.cz\/?p=2897"},"modified":"2016-04-26T04:46:48","modified_gmt":"2016-04-26T04:46:48","slug":"co-nas-ceka-ve-woocommerce-2-6","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/co-nas-ceka-ve-woocommerce-2-6\/","title":{"rendered":"Co n\u00e1s \u010dek\u00e1 ve WooCommerce 2.6"},"content":{"rendered":"\n

V roce 2016 n\u00e1s \u010dek\u00e1 ji\u017e druh\u00fd „major release“ WooCommerce a to verze 2.6. Proto\u017ee i v nov\u00e9 aktualizaci bude mnoho zaj\u00edmav\u00fdch novinek, tak se na n\u011b pod\u00edv\u00e1me.<\/p>\n\n\n\n

Vyd\u00e1n\u00ed WooCommerce 2.6 je napl\u00e1nov\u00e1no na druh\u016f \u010dtvrtlet\u00ed 2016 a ji\u017e je k dispozici Beta 1 k testov\u00e1n\u00ed<\/a>.<\/p>\n\n\n\n

Co n\u00e1s tedy \u010dek\u00e1 za zm\u011bny?<\/p>\n\n\n\n

Dopravn\u00ed z\u00f3ny<\/h2>\n\n\n\n

WooCommerce obsahuje n\u011bkolik dopravn\u00edch metod a ty lze nastavovat jednu po druh\u00e9, tedy samostatn\u011b. Nov\u011b bude v nastaven\u00ed dopravy polo\u017eka Dopravn\u00ed z\u00f3ny, kde si nastav\u00edte geografick\u00e9 um\u00edst\u011bn\u00ed, nap\u0159\u00edklad Evropa a do n\u00ed p\u0159i\u0159ad\u00edte dopravn\u00ed metody, kter\u00e9 chcete pou\u017e\u00edvat v Evrop\u011b. T\u011bm nastav\u00edte p\u0159\u00edslu\u0161nou cenu za dopravu pro p\u0159\u00edslu\u0161nou z\u00f3nu. Dopravn\u00ed metoda mus\u00ed podporovat Shipping zone, neupraven\u00e9 dopravn\u00ed metody budou fungovat jako d\u0159\u00edve.<\/p>\n\n\n\n

\u00daprava str\u00e1nky \u00fa\u010dtu z\u00e1kazn\u00edka<\/h2>\n\n\n\n

Tato zm\u011bna, p\u0159id\u00e1v\u00e1 v\u00edce flexibility do str\u00e1nky my-account, jen\u017e je v tuto chv\u00edli zastoupena p\u0159\u00edslu\u0161n\u00fdm shortcodem. Str\u00e1nka bude m\u00edt nov\u011b v lev\u00e9 \u010d\u00e1sti sloupec s „menu“, nebo to m\u016f\u017eete naz\u00fdvat „taby“. Mimo to, \u017ee str\u00e1nka bude p\u0159ehledn\u011bj\u0161\u00ed, umo\u017en\u00ed zm\u011bna, p\u0159id\u00e1vat nov\u00e9 polo\u017eky do tab\u016f a v\u00fdvoj\u00e1\u0159i budou moci l\u00e9pe roz\u0161i\u0159ovat sekci \u00fa\u010dtu z\u00e1kazn\u00edka. Podrobn\u011bj\u0161\u00ed informace zde.<\/a><\/p>\n\n\n

\n
\"storefront-2-my-account1\"<\/a><\/figure><\/div>\n\n\n

Ajax na str\u00e1nce ko\u0161\u00edku<\/h2>\n\n\n\n

Pokud upravujete obsah ko\u0161\u00edku, nap\u0159\u00edklad odeb\u00edr\u00e1te produkty, tak od nov\u00e9 verze, nebude doch\u00e1zet k obnovov\u00e1n\u00ed str\u00e1nky, ale cel\u00fd proces bude obstar\u00e1vat javascript na pozad\u00ed. U tohoto vylep\u0161en\u00ed byl br\u00e1n z\u0159etel na zp\u011btnou kompatibilitu a star\u0161\u00ed \u0161ablony by m\u011bly fungovat bez probl\u00e9m\u016f.<\/p>\n\n\n\n

Filtrov\u00e1n\u00ed dle hodnocen\u00ed v recenz\u00edch<\/h2>\n\n\n\n

Aktu\u00e1ln\u011b se do mo\u017enosti filtrov\u00e1n\u00ed produkt\u016f, dostala mo\u017enost, filtrovat produkty, dle hodnocen\u00ed.<\/p>\n\n\n\n

Payment Token API<\/h2>\n\n\n\n

Nov\u00e9 API, kter\u00e9 se objev\u00ed ve WooCommerce, umo\u017e\u0148uje, jednodu\u0161e \u0159e\u010deno, ukl\u00e1dat a pracovat s platebn\u00edmi \u00fadaji u\u017eivatele. V podstat\u011b, ulo\u017e\u00edte data o kreditn\u00ed kart\u011b a m\u016f\u017eete s nimi tak v budoucnu pracovat. Podobn\u011b, jako v administraci jin\u00fdch syst\u00e9m\u016f, kde si m\u016f\u017eete p\u0159idat platebn\u00ed kartu, kterou budete pou\u017e\u00edvat pro pravideln\u00e9 n\u00e1kupy.<\/p>\n\n\n\n

Nov\u00e9 Rest API zalo\u017een\u00e9 na WP Rest API<\/h2>\n\n\n\n

WooCommerce obsahuje vlastn\u00ed Rest API. Proto tak\u00e9 existuj\u00ed aplikace pro tyto eshopy. Tak jak se postupn\u011b vyv\u00edj\u00ed WP Rest API a bylo ozn\u00e1meno jeho za\u0159azen\u00ed do WordPress 4.4 (co\u017e se nestalo), pracovali v\u00fdvoj\u00e1\u0159i WooCommerce, na \u00faprav\u011b WC Rest API, tak aby fungovalo stejn\u011b, jako WP Rest API. Nyn\u00ed bude tedy dostupn\u00e9 Rest API ve form\u00e1tu<\/p>\n\n\n\n

wp-json\/wc\/v1\/orders<\/pre>\n\n\n\n

Star\u0161\u00ed verze<\/p>\n\n\n\n

wc-api\/v3\/orders<\/pre>\n\n\n\n

bude i nad\u00e1le podporov\u00e1na a to minim\u00e1ln\u011b do verze 3.0.<\/p>\n\n\n\n

Bitcoin mezi podporovan\u00fdmi m\u011bnami<\/h2>\n\n\n\n

Byly tak\u00e9 p\u0159id\u00e1ny nov\u00e9 m\u011bny, mezi nimi i Bitcoin, co\u017e p\u0159in\u00e1\u0161\u00ed spoustu dal\u0161\u00edch mo\u017enost\u00ed.<\/p>\n\n\n\n

Nov\u00e9 soubory \u0161ablon<\/h2>\n\n\n\n

Ve verzi 2.6 jsou p\u0159id\u00e1ny i nov\u00e9 soubory \u0161ablon, vypl\u00fdvaj\u00edc\u00ed z v\u00fd\u0161e uveden\u00fdch zm\u011bn. Jsou to:<\/p>\n\n\n\n

    \n
  • single-product\/review-rating.php<\/li>\n\n\n\n
  • single-product\/review-meta.php<\/li>\n\n\n\n
  • myaccount\/downloads.php<\/li>\n\n\n\n
  • myaccount\/view-order.php<\/li>\n\n\n\n
  • myaccount\/payment-methods.php<\/li>\n\n\n\n
  • myaccount\/orders.php<\/li>\n\n\n\n
  • myaccount\/navigation.php<\/li>\n<\/ul>\n\n\n\n

    Aktualizace samoz\u0159ejm\u011b obsahuje zm\u011bn daleko v\u00edce, ale to jsou \u00fapravy k\u00f3du, kter\u00e9 se v\u00e1s p\u0159\u00edmo nedotknou. V\u0161echny zm\u011bny si v jednotliv\u00fdch \u010dl\u00e1nc\u00edch pop\u00ed\u0161eme podrobn\u011bji.<\/p>\n\n\n\n

    Ji\u017e brzy:<\/strong><\/p>\n\n\n\n

    Dopravn\u00ed z\u00f3ny ve WooCommerce 2.6<\/p>\n","protected":false},"excerpt":{"rendered":"

    V roce 2016 n\u00e1s \u010dek\u00e1 ji\u017e druh\u00fd „major release“ WooCommerce a to verze 2.6. Proto\u017ee i v nov\u00e9 aktualizaci bude mnoho zaj\u00edmav\u00fdch novinek, tak se na n\u011b pod\u00edv\u00e1me. Vyd\u00e1n\u00ed WooCommerce 2.6 je napl\u00e1nov\u00e1no na druh\u016f \u010dtvrtlet\u00ed 2016 a ji\u017e je k dispozici Beta 1 k testov\u00e1n\u00ed. Co n\u00e1s tedy \u010dek\u00e1 za zm\u011bny? Dopravn\u00ed z\u00f3ny WooCommerce<\/p>\n","protected":false},"author":1,"featured_media":8732,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[120,276,329,425,427],"class_list":["post-2897","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-woocommerce","tag-dopravni-zony","tag-payments","tag-rest-api","tag-woocommerce","tag-woocommerce-2-6"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/2897"}],"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=2897"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/2897\/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=2897"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=2897"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=2897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}