{"id":1760,"date":"2014-04-24T18:53:08","date_gmt":"2014-04-24T18:53:08","guid":{"rendered":"http:\/\/musilda.cz\/?p=1760"},"modified":"2014-04-24T18:53:08","modified_gmt":"2014-04-24T18:53:08","slug":"endpoints-vs-shortcodes-ve-woocommerce-2-1","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/endpoints-vs-shortcodes-ve-woocommerce-2-1\/","title":{"rendered":"Endpoints vs shortcodes ve Woocommerce 2.1+"},"content":{"rendered":"\n

Pokud pou\u017e\u00edv\u00e1te Woocommerci a pravideln\u011b aktualizujete. Mohli jste si v\u0161imnout, \u017ee od verze 2.1 ji\u017e nejsou k dispozici n\u011bkter\u00e9 shortcody a z\u00e1rove\u0148 se p\u0159i instalaci nevytvo\u0159\u00ed n\u011bkter\u00e9 str\u00e1nky. V tomto \u010dl\u00e1nku se dozv\u00edte pro\u010d.<\/p>\n\n\n\n\n\n\n\n

Od v\u00fd\u0161e zm\u00edn\u011bn\u00e9 verze je v administraci dostupn\u00e9 nastaven\u00ed Accounts, kde si zvol\u00edte str\u00e1nku, kterou budete pro \u00fa\u010det pou\u017e\u00edvat a od n\u00ed se bude odv\u00edjet zbytek nastaven\u00ed. Url va\u0161eho \u00fa\u010dtu tak bude vypadat nap\u0159\u00edklad takto:<\/p>\n\n\n\n

http:\/\/obchod.cz\/muj-ucet<\/strong><\/p>\n\n\n\n

Pod v\u00fdb\u011brem str\u00e1nky jsou ji\u017e zm\u00edn\u011bn\u00e9 endpoints.<\/p>\n\n\n\n

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

Url dal\u0161\u00edch va\u0161ich str\u00e1nek pak budou vypadat n\u00e1sledovn\u011b:<\/p>\n\n\n\n

http:\/\/obchod.cz\/muj-ucet\/view-order<\/strong><\/p>\n\n\n\n

V\u0161echny endpoints m\u016f\u017eete upravit dle sv\u00e9ho a url pak m\u016f\u017ee kon\u010dit \u010d\u00edmkoliv.<\/p>\n\n\n\n

Pokud v\u00e1m tedy shortcody na str\u00e1nk\u00e1ch p\u0159estaly fungovat, sta\u010d\u00ed odkazovat na definovan\u00e9 endopints.<\/p>\n\n\n\n

Pro\u010d byly shortcody nahrazeny?<\/h2>\n\n\n\n

V\u00fdvoj\u00e1\u0159i to zd\u016fvod\u0148uj\u00ed t\u00edm, \u017ee WordPress a Woocommerce pou\u017e\u00edv\u00e1 \u0159ada m\u00e9n\u011b technicky zdatn\u00fdch osob a p\u016fvodn\u00ed postup vytv\u00e1\u0159en\u00ed str\u00e1nek a vkl\u00e1d\u00e1n\u00ed shortcod\u016f, byl zdrojem cel\u00e9 \u0159ady probl\u00e9m\u016f. Takto si m\u016f\u017eete jednodu\u0161e upravit url jednotliv\u00fdch podstr\u00e1nek.<\/p>\n","protected":false},"excerpt":{"rendered":"

Pokud pou\u017e\u00edv\u00e1te Woocommerci a pravideln\u011b aktualizujete. Mohli jste si v\u0161imnout, \u017ee od verze 2.1 ji\u017e nejsou k dispozici n\u011bkter\u00e9 shortcody a z\u00e1rove\u0148 se p\u0159i instalaci nevytvo\u0159\u00ed n\u011bkter\u00e9 str\u00e1nky. V tomto \u010dl\u00e1nku se dozv\u00edte pro\u010d.<\/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":[425],"class_list":["post-1760","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-woocommerce","tag-woocommerce"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1760"}],"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=1760"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1760\/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=1760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=1760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=1760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}