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