{"id":5776,"date":"2020-11-21T06:07:21","date_gmt":"2020-11-21T06:07:21","guid":{"rendered":"https:\/\/musilda.cz\/?p=5776"},"modified":"2020-11-21T06:07:21","modified_gmt":"2020-11-21T06:07:21","slug":"doprava-zdarma-dle-ceny-kosiku","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/doprava-zdarma-dle-ceny-kosiku\/","title":{"rendered":"Doprava zdarma dle ceny ko\u0161\u00edku"},"content":{"rendered":"\n

WooCommerce v z\u00e1kladu obsahuje nastaven\u00ed dopravy zdarma, dle ceny ko\u0161\u00edku. Pomoc\u00ed toho snippetu v\u0161ak nastav\u00edte nulovou cenu pro v\u0161echny dopravy, pokud obsah ko\u0161\u00edku p\u0159es\u00e1hne stanovenou sumu. <\/p>\n\n\n\n

V\u00fdchoz\u00ed doprava zdarma se chov\u00e1 tak, \u017ee kdy\u017e jsou spln\u011bn\u00e9 v\u0161echny podm\u00ednky, zobraz\u00ed se v pokladn\u011b na v\u00fdb\u011br nov\u00e1 doprava, kter\u00e1 je za nulovou cenu. <\/p>\n\n\n\n

Tak\u017ee m\u00e1te ostatn\u00ed dopravy zpoplatn\u011bn\u00e9, ale m\u00e1te nav\u00edc novou dopravu. <\/p>\n\n\n\n

Tento jednoduch\u00fd snippet v\u00e1m umo\u017en\u00ed, nastavit jako nulov\u00e9 v\u0161echny ceny dopravy, pokud hodnota ko\u0161\u00edku p\u0159es\u00e1hne stanovenou \u010d\u00e1stku. <\/p>\n\n\n\n\n\n\n\n

Edit.: D\u00edky Markovi za upozorn\u011bn\u00ed, pou\u017eit\u00e1 metoda vrac\u00ed cenu ko\u0161\u00edku v\u010detn\u011b html, snippet jsem upravil.<\/p>\n\n\n\n

Dal\u0161\u00ed u\u017eite\u010dn\u00e9 snippety najdete na str\u00e1nce U\u017eite\u010dn\u00e9 snippety pro WooCommerce<\/a><\/strong> <\/p>\n","protected":false},"excerpt":{"rendered":"

WooCommerce v z\u00e1kladu obsahuje nastaven\u00ed dopravy zdarma, dle ceny ko\u0161\u00edku. Pomoc\u00ed toho snippetu v\u0161ak nastav\u00edte nulovou cenu pro v\u0161echny dopravy, pokud obsah ko\u0161\u00edku p\u0159es\u00e1hne stanovenou sumu. V\u00fdchoz\u00ed doprava zdarma se chov\u00e1 tak, \u017ee kdy\u017e jsou spln\u011bn\u00e9 v\u0161echny podm\u00ednky, zobraz\u00ed se v pokladn\u011b na v\u00fdb\u011br nov\u00e1 doprava, kter\u00e1 je za nulovou cenu. Tak\u017ee m\u00e1te ostatn\u00ed dopravy<\/p>\n","protected":false},"author":1,"featured_media":5600,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,25,29],"tags":[],"class_list":["post-5776","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-snippety","category-woocommerce","category-woocommerce-snippety"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/5776"}],"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=5776"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/5776\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/5600"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=5776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=5776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=5776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}