DeanM Posted November 15, 2013 Share Posted November 15, 2013 Buna, As avea si eu nevoie de ajutor. Folosesc Prestashop 1.5.6 La configurarea produselor folosesc optiunea: Doresc specificarea manuala a cantitatilor disponibile Si imi sunt afisate si in site numarul de bucati disponibile. As dori sa nu mai apara numarul de bucati disponibile in front end. Clientul sa nu mai vada. Am setat si trigerul : Disponibilitate: In stoc Cum pot scoate din front end numarul de bucati? Multumesc anticipat! Link to comment Share on other sites More sharing options...
lightsb Posted November 16, 2013 Share Posted November 16, 2013 Salut, Incearca :BO-> Preference-> Products -> Afisare cantitati disponibile in pagina produsului (alege NU) Link to comment Share on other sites More sharing options...
DeanM Posted November 16, 2013 Author Share Posted November 16, 2013 (edited) Multumesc! A functionat, si daca tot am ajuns acolo am mai rezolvat o dilema. Edited November 16, 2013 by DeanM (see edit history) Link to comment Share on other sites More sharing options...
DeanM Posted November 16, 2013 Author Share Posted November 16, 2013 Exista o varianta de a afisat random produsele din home? Link to comment Share on other sites More sharing options...
lightsb Posted November 16, 2013 Share Posted November 16, 2013 Exista module care fac treaba asta. Link to comment Share on other sites More sharing options...
valentin.g Posted November 16, 2013 Share Posted November 16, 2013 (edited) Exista o varianta de a afisat random produsele din home? incearca sa copiezi fisierul asta in modulul homefeatured homefeatured.php Edited November 16, 2013 by valentin.g (see edit history) Link to comment Share on other sites More sharing options...
DeanM Posted November 16, 2013 Author Share Posted November 16, 2013 (edited) Buna, L-am copiat. Nu s-a modificat nimic. M-am uitat si peste cod; nu imi dau seama care e partea ce spune cum sa se faca selectia random. LE: acum imi afiseaza doar un produs; desi e setat pe 8. Edited November 16, 2013 by DeanM (see edit history) Link to comment Share on other sites More sharing options...
costi43 Posted November 17, 2013 Share Posted November 17, 2013 pune acest cod in module/homefutured/homefutured.php " shuffle($products); " c-am asa ar trebui: if (!$this->isCached('homefeatured.tpl', $this->getCacheId('homefeatured'))) { $category = new Category(Context::getContext()->shop->getCategory(), (int)Context::getContext()->language->id); $nb = (int)Configuration::get('HOME_FEATURED_NBR'); $products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 10)); shuffle($products); $this->smarty->assign(array( 'products' => $products, 'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'), 'homeSize' => Image::getSize(ImageType::getFormatedName('homefeat')), )); }la verziune 1.5.6 2 Link to comment Share on other sites More sharing options...
DeanM Posted November 17, 2013 Author Share Posted November 17, 2013 @costi43: multumesc, aparent a functionat; cu mentiunea ca nu le schimba chiar la fiecare refresh. poate fi o cauza si faptul ca display=8 si total home prods=12 ? ma gandesc eu, ca adaugarea unui numar mai mare de produse cu home implicit va creste si rata de suffle. Link to comment Share on other sites More sharing options...
costi43 Posted November 17, 2013 Share Posted November 17, 2013 ai si un cache, deobicei acela nu-l lasa, daca stergi cache-ul atunci schimba 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