nomme Posted September 11, 2014 Share Posted September 11, 2014 Dobrý den, prosím o radu - rad bych snížil ceny o 50 Kč u produktů, které mají výrobce např. NIKE a také vlastnost velikost boty 38. Jde něco takového udělat např. SQL dotazem?¨ Jde o prestashop 1.3 Link to comment Share on other sites More sharing options...
Kimi Posted September 11, 2014 Share Posted September 11, 2014 spravim vam to ak mi poslete pristup do db Link to comment Share on other sites More sharing options...
nomme Posted September 11, 2014 Author Share Posted September 11, 2014 super, zaslu a mohl by jste napsat i jak se to dela? pro priste kdyz budu potrebovat a take pro ostatni ctenare fora... Link to comment Share on other sites More sharing options...
Kimi Posted September 11, 2014 Share Posted September 11, 2014 jj, poslem sem SQL prikaz Link to comment Share on other sites More sharing options...
Kimi Posted September 11, 2014 Share Posted September 11, 2014 (edited) Edit: pardon zly topic Edited September 11, 2014 by Kimi (see edit history) Link to comment Share on other sites More sharing options...
nomme Posted September 11, 2014 Author Share Posted September 11, 2014 tak to neni na verejne IP je to jen na nejakem testovacim serveru zatim, ze pry se na to neda prihlasit z venku. Muzete tedy poslat ten SQL dotaz? Link to comment Share on other sites More sharing options...
Kimi Posted September 11, 2014 Share Posted September 11, 2014 to by som si musel u seba nainstalovat prestashop 1.3 ... Link to comment Share on other sites More sharing options...
nomme Posted September 11, 2014 Author Share Posted September 11, 2014 nevim tedy jak to ted vymyslet, tak treba nejaky nastrel toho SQL dotazu a ja bych ho zkusil doupravit Link to comment Share on other sites More sharing options...
Kimi Posted September 11, 2014 Share Posted September 11, 2014 (edited) UPDATE `ps_product` SET price = price -50 oh pardon zabudol som na to ze to chcete obmedcit, pockajte chvilu Edited September 11, 2014 by Kimi (see edit history) Link to comment Share on other sites More sharing options...
Kimi Posted September 11, 2014 Share Posted September 11, 2014 ta velkost boty je v editacii vlastnosti produktu ulozena v policku vpravo alebo z toho vyberu ulozenych hodnot? Link to comment Share on other sites More sharing options...
nomme Posted September 11, 2014 Author Share Posted September 11, 2014 z vyberu ulozenych hodnot Link to comment Share on other sites More sharing options...
Kimi Posted September 11, 2014 Share Posted September 11, 2014 (edited) UPDATE ps_product SET price = price - 50 where id_manufacturer in (SELECT id_manufacturer from ps_manufacturer where name like '%nike%') and id_product in ( SELECT id_product from ps_feature_product where id_feature in ( SELECT id_feature from ps_feature_lang where name like '%boty%' and id_feature_value in ( SELECT id_feature_value from ps_feature_value_lang where value like '%38%' ) ) ) Edited September 11, 2014 by Kimi (see edit history) Link to comment Share on other sites More sharing options...
nomme Posted September 11, 2014 Author Share Posted September 11, 2014 skvele ted se to zkusilo na testovacim hostingu a super Link to comment Share on other sites More sharing options...
nomme Posted September 16, 2014 Author Share Posted September 16, 2014 mohu jeste jak by mel vypadat script v php aby se mohl poustet pravidelne v cronu? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now