{"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