{"id":4999,"date":"2018-03-14T17:31:54","date_gmt":"2018-03-14T17:31:54","guid":{"rendered":"https:\/\/musilda.cz\/?p=4999"},"modified":"2018-03-14T17:31:54","modified_gmt":"2018-03-14T17:31:54","slug":"jak-odstranit-vyber-dopravy-z-kosiku-ve-woocommerce","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/jak-odstranit-vyber-dopravy-z-kosiku-ve-woocommerce\/","title":{"rendered":"Jak odstranit v\u00fdb\u011br dopravy z ko\u0161\u00edku ve WooCommerce"},"content":{"rendered":"\n

WooCommerce umo\u017e\u0148uje vypo\u010d\u00edtat cenu dopravy ji\u017e v ko\u0161\u00edku. A proto\u017ee to nen\u00ed celkem obvykl\u00e9 a z\u00e1kazn\u00edky to m\u016f\u017ee m\u00e1st, uk\u00e1\u017eeme si, jak se zobrazen\u00ed ceny dopravy v ko\u0161\u00edku zbavit.<\/p>\n\n\n\n

Nejprve se pod\u00edv\u00e1me, o jak\u00e9m v\u00fdpo\u010dtu dopravy se bav\u00edme:<\/p>\n\n\n

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

Jedn\u00e1 se o v\u00fdb\u011br dopravy pod mezisou\u010dtem polo\u017eek v ko\u0161\u00edku. \u010casto maj\u00ed klienti po\u017eadavek, tento v\u00fdb\u011br odstranit, proto\u017ee se jim zd\u00e1, \u017ee mate z\u00e1kazn\u00edky. To je ostatn\u011b i m\u016fj n\u00e1zor, proto\u017ee v\u00fdb\u011br dopravy je um\u00edst\u011bn na pokladn\u011b.<\/p>\n\n\n\n

P\u0159esto\u017ee najdete v nastaven\u00ed mo\u017enost tento kalkul\u00e1tor vypnout, samotnou dopravu by to odstranit nemm\u011blo, pouze to vypne formul\u00e1\u0159 s p\u0159epo\u010dtem p\u0159i zm\u011bn\u011b zem\u011b.<\/p>\n\n\n

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

Proto v\u00e1m dnes uk\u00e1\u017ei snippet, d\u00edky n\u011bmu\u017e se jednodu\u0161e zbav\u00edte zobrazen\u00ed dopravy v ko\u0161\u00edku.<\/p>\n\n\n\n

function disable_shipping_calc_on_cart( $show_shipping ) {\n    if( is_cart() ) {\n        return false;\n    }\n    return $show_shipping;\n}\nadd_filter( 'woocommerce_cart_ready_to_calc_shipping', 'disable_shipping_calc_on_cart', 99 );<\/pre>\n\n\n\n

Tento k\u00f3d vlo\u017e\u00edte ide\u00e1ln\u011b do n\u011bjak\u00e9ho sv\u00e9ho mal\u00e9ho pluginu, nebo do functions.php v aktivn\u00ed \u0161ablon\u011b a doprava zmiz\u00ed.<\/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 umo\u017e\u0148uje vypo\u010d\u00edtat cenu dopravy ji\u017e v ko\u0161\u00edku. A proto\u017ee to nen\u00ed celkem obvykl\u00e9 a z\u00e1kazn\u00edky to m\u016f\u017ee m\u00e1st, uk\u00e1\u017eeme si, jak se zobrazen\u00ed ceny dopravy v ko\u0161\u00edku zbavit. Nejprve se pod\u00edv\u00e1me, o jak\u00e9m v\u00fdpo\u010dtu dopravy se bav\u00edme: Jedn\u00e1 se o v\u00fdb\u011br dopravy pod mezisou\u010dtem polo\u017eek v ko\u0161\u00edku. \u010casto maj\u00ed klienti po\u017eadavek, tento v\u00fdb\u011br odstranit,<\/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":[19,25,29],"tags":[],"class_list":["post-4999","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\/4999"}],"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=4999"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/4999\/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=4999"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=4999"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=4999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}