{"id":5804,"date":"2021-01-30T08:39:54","date_gmt":"2021-01-30T08:39:54","guid":{"rendered":"https:\/\/musilda.cz\/?p=5804"},"modified":"2021-01-30T08:39:54","modified_gmt":"2021-01-30T08:39:54","slug":"zruseni-povinneho-souhlasu-s-obchodnimi-podminkami","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/zruseni-povinneho-souhlasu-s-obchodnimi-podminkami\/","title":{"rendered":"Zru\u0161en\u00ed povinn\u00e9ho souhlasu s obchodn\u00edmi podm\u00ednkami"},"content":{"rendered":"\n
WooCommerce m\u00e1 na pokladn\u011b povinn\u00fd souhlas s obchodn\u00edmi podm\u00ednkami. Uk\u00e1\u017eeme si, jak jednodu\u0161e tento souhlas uprav\u00edme.<\/p>\n\n\n\n
V tomto \u010dl\u00e1nku si nebudeme popisovat, je \u00fapln\u011b odstranit souhlas s obchodn\u00edmi podm\u00ednkami, toho dos\u00e1hnete zru\u0161en\u00edm p\u0159i\u0159azen\u00ed str\u00e1nky obchodn\u00edch podm\u00ednek v nastaven\u00ed WooCommerce – https:\/\/musilda.cz\/nastaveni-obchodnich-podminek-ve-woocommerce\/<\/a><\/p>\n\n\n\n Uk\u00e1\u017eeme si, jak upravit k\u00f3d \u0161ablony tak, aby se n\u00e1m zobrazoval text souhlasu ( m\u00edrn\u011b jej uprav\u00edme ) a odstran\u00edme checkbox. <\/p>\n\n\n\n K\u00f3d, kter\u00fd budeme upravovat je v souboru WooCommerce \u0161ablony ( https:\/\/musilda.cz\/vlastni-woocommerce-sablony-jak-je-pouzivat\/<\/a> ) checkout\/terms.php<\/a>.<\/p>\n\n\n\n To co n\u00e1s zaj\u00edm\u00e1 je od \u0159\u00e1dku 29 a 33:<\/strong><\/p>\n\n\n\n V podstat\u011b budeme hlavn\u011b mazat. Odstran\u00edme<\/p>\n\n\n\n proto\u017ee toto skryt\u00e9 pole vyu\u017e\u00edv\u00e1 WooCommerce ke kontrole existence povinn\u00e9ho souhlasu.<\/p>\n\n\n\n D\u00e1le odstran\u00edme input<\/p>\n\n\n\n Sma\u017eeme span s hv\u011bzdi\u010dkou, tak\u017ee n\u00e1m nakonec z\u016fstane jen <\/p>\n\n\n\n T\u00edm m\u00e1me na pokladn\u011b informaci o obchodn\u00edch podm\u00ednk\u00e1ch, ale nevynucujeme souhlas s nimi. <\/p>\n\n\n\n Tento n\u00e1vod je jen n\u00e1vod k tomu, jak n\u011bco ud\u011blat, diskuzi o vynucen\u00ed souhlasu a podobn\u00e9 v\u011bci nech\u00e1v\u00e1m na jin\u00fdch.<\/p>\n","protected":false},"excerpt":{"rendered":" WooCommerce m\u00e1 na pokladn\u011b povinn\u00fd souhlas s obchodn\u00edmi podm\u00ednkami. Uk\u00e1\u017eeme si, jak jednodu\u0161e tento souhlas uprav\u00edme. V tomto \u010dl\u00e1nku si nebudeme popisovat, je \u00fapln\u011b odstranit souhlas s obchodn\u00edmi podm\u00ednkami, toho dos\u00e1hnete zru\u0161en\u00edm p\u0159i\u0159azen\u00ed str\u00e1nky obchodn\u00edch podm\u00ednek v nastaven\u00ed WooCommerce – https:\/\/musilda.cz\/nastaveni-obchodnich-podminek-ve-woocommerce\/ Uk\u00e1\u017eeme si, jak upravit k\u00f3d \u0161ablony tak, aby se n\u00e1m zobrazoval text souhlasu (<\/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],"tags":[],"class_list":["post-5804","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-snippety","category-woocommerce"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/5804"}],"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=5804"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/5804\/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=5804"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=5804"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=5804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}<label class=\"woocommerce-form__label woocommerce-form__label-for-checkbox checkbox\">\n\n <input type=\"checkbox\" class=\"woocommerce-form__input woocommerce-form__input-checkbox input-checkbox\" name=\"terms\" <?php checked( apply_filters( 'woocommerce_terms_is_checked_default', isset( $_POST['terms'] ) ), true ); \/\/ WPCS: input var ok, csrf ok. ?> id=\"terms\" \/>\n\n <span class=\"woocommerce-terms-and-conditions-checkbox-text\"><?php wc_terms_and_conditions_checkbox_text(); ?><\/span> <span class=\"required\">*<\/span>\n\n <\/label>\n\n <input type=\"hidden\" name=\"terms-field\" value=\"1\" \/><\/pre>\n\n\n\n
<input type=\"hidden\" name=\"terms-field\" value=\"1\" \/><\/pre>\n\n\n\n
<input type=\"checkbox\" class=\"woocommerce-form__input woocommerce-form__input-checkbox input-checkbox\" name=\"terms\" <?php checked( apply_filters( 'woocommerce_terms_is_checked_default', isset( $_POST['terms'] ) ), true ); \/\/ WPCS: input var ok, csrf ok. ?> id=\"terms\" \/><\/pre>\n\n\n\n
<label\u00a0class=\"woocommerce-form__label\u00a0woocommerce-form__label-for-checkbox\u00a0checkbox\">\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span\u00a0class=\"woocommerce-terms-and-conditions-checkbox-text\"><?php\u00a0wc_terms_and_conditions_checkbox_text();\u00a0?><\/span>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/label><\/pre>\n\n\n\n