{"id":5710,"date":"2020-07-05T19:32:11","date_gmt":"2020-07-05T19:32:11","guid":{"rendered":"https:\/\/musilda.cz\/?p=5710"},"modified":"2020-07-05T19:32:11","modified_gmt":"2020-07-05T19:32:11","slug":"zobrazeni-slevy-v-procentech-ve-vypisu-produktu-woocommerce","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/zobrazeni-slevy-v-procentech-ve-vypisu-produktu-woocommerce\/","title":{"rendered":"Zobrazen\u00ed slevy v procentech ve v\u00fdpisu produkt\u016f WooCommerce"},"content":{"rendered":"\n

Dnes to bude jen takov\u00fd jednoduch\u00fd snippet pro v\u00fdpis produkt\u016f. M\u00edsto slova sleva ve v\u00fdpisu produkt\u016f, zobraz\u00edme procenta. <\/strong><\/p>\n\n\n\n

U produkt\u016f, jen\u017e jsou ve slev\u011b, nahrad\u00edme slovo sleva, procentueln\u00ed hodnotou slevy.<\/p>\n\n\n\n

Tady nen\u00ed moc co vysv\u011btlovat, pou\u017eijeme filtr woocommerce_sale_flash, vezmeme sale price a regular price a vypo\u010d\u00edt\u00e1me slevu. U produkt\u016f s variantami vezmeme tu nejvy\u0161\u0161\u00ed slevu.<\/p>\n\n\n\n

Zde je snippet:<\/p>\n\n\n\n\n\n\n\n

Tak zase n\u011bkdy u dal\u0161\u00edho snippetu a pokud v\u00e1m pomohl, tak sd\u00edlejte. <\/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":"

Dnes to bude jen takov\u00fd jednoduch\u00fd snippet pro v\u00fdpis produkt\u016f. M\u00edsto slova sleva ve v\u00fdpisu produkt\u016f, zobraz\u00edme procenta. U produkt\u016f, jen\u017e jsou ve slev\u011b, nahrad\u00edme slovo sleva, procentueln\u00ed hodnotou slevy. Tady nen\u00ed moc co vysv\u011btlovat, pou\u017eijeme filtr woocommerce_sale_flash, vezmeme sale price a regular price a vypo\u010d\u00edt\u00e1me slevu. U produkt\u016f s variantami vezmeme tu nejvy\u0161\u0161\u00ed slevu.<\/p>\n","protected":false},"author":1,"featured_media":5600,"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-5710","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\/5710"}],"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=5710"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/5710\/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=5710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=5710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=5710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}