{"id":6508,"date":"2021-11-21T11:20:00","date_gmt":"2021-11-21T11:20:00","guid":{"rendered":"https:\/\/musilda.cz\/?p=6508"},"modified":"2021-11-21T11:20:00","modified_gmt":"2021-11-21T11:20:00","slug":"jak-skryt-specificke-objednavky-pro-uzivatele-v-administraci","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/jak-skryt-specificke-objednavky-pro-uzivatele-v-administraci\/","title":{"rendered":"Jak skr\u00fdt specifick\u00e9 objedn\u00e1vky pro u\u017eivatele v administraci"},"content":{"rendered":"\n
V p\u0159\u00edpad\u011b, \u017ee se v administraci e-shopu pohybuje v\u00edce lid\u00ed, mus\u00edte v n\u011b m\u00edt d\u016fv\u011bru, nebo jim omezovat to co vid\u00ed a mohou zobrazit. A do toho mohou pat\u0159it i specifick\u00e9 objedn\u00e1vky.<\/p>\n\n\n\n
Uva\u017eujme, \u017ee prod\u00e1v\u00e1me nap\u0159\u00edklad velmi specifick\u00e9 produkty, u nich\u017e je p\u0159\u00edprava vychyst\u00e1n\u00ed objedn\u00e1vky sv\u011b\u0159ena r\u016fzn\u00fdm lidem. Tak\u017ee u\u017eivatel A, se m\u00e1 v\u011bnovat objedn\u00e1vk\u00e1m, v kter\u00fdch je zbo\u017e\u00ed, kter\u00e9 m\u00e1 na starosti a ostatn\u00ed nepot\u0159ebuje vid\u011bt. <\/p>\n\n\n\n
Tento snippet jako takov\u00fd ne\u0159e\u0161\u00ed ozna\u010den\u00ed objedn\u00e1vky pro ur\u010dit\u00e9ho u\u017eivatele, proto\u017ee to je mimo r\u00e1mec tohoto \u010dl\u00e1nku. Pro p\u0159edstavu, p\u0159i vytvo\u0159en\u00ed objedn\u00e1vky si n\u011bkdo koup\u00ed vodn\u00ed sk\u016ftr a vy do datab\u00e1ze zap\u00ed\u0161ete custom field, kter\u00fd ozna\u010d\u00ed, \u017ee tuto objedn\u00e1vku vy\u0159izuje Karel. Ten by tak m\u011bl vid\u011bt jen sv\u00e9 objedn\u00e1vky.<\/p>\n\n\n\n
Pro testov\u00e1n\u00ed si tedy k objedn\u00e1vce p\u0159id\u00e1me specifick\u00e9 post meta:<\/p>\n\n\n\n<\/a><\/figure>\n\n\n\n