Jump to content

Dutohlávek

Members
  • Posts

    15
  • Joined

  • Last visited

About Dutohlávek

  • Birthday 04/01/1987

Dutohlávek's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. V administraci je v nastavení možnost přepnout, zda se ma zobrazovat mapa, nebo ne. Bohužel, funguje to tak, že se zobrazuje buďto jedno nebo druhé. Zatim jsem neprisel na moznost, jak mit ve strance oboji - jak mapy, tak i prodejny.
  2. Jedna se o chybu, ktera vznikla v PrestaShopu ve verzi 1.4.1. V dusledku teto chyby se do stranky nepridavaji zadne externi JavaScripty. Resenim je otevrit soubor classes/tools.php, najit radek obsahuji: // check if js files exists if (!file_exists($file_uri)) unset($js_uri[$key]); a zakomentovat ty dva posl. radky, tedy takto: // check if js files exists // if (!file_exists($file_uri)) // unset($js_uri[$key]);
  3. Jak jsem psal v tomto příspěvku. Vymaz obsah slozky compile. (cesta: “tools/smarty/compile”; pokud pouzivas Smarty ve verzi 2, tak potom je cesta: “tools/smarty_v2/compile”). Jinak doufam, ze ses prepsal a myslel jsi header.TPL :-)
  4. Samozrejme tohle reseni neni vhodne pro vic jak jednotky kategorii. Nevedel jsem ale, co se presne mysli tou "zmenou headeru", takze me zkratka jako prvni napadlo pridani nejakeho identifikatoru, kterym by mohl jednotlivy headery po "CSSkove" strance odlisit... nevadi, hlavne, ze se naslo reseni. Ostatne toto reply sem psal, jeste pred tim, nez sem zjistil, ze je post vyresenej.. .-)
  5. Tim myslis, aby si kazdy kategorii mohl urcit specificky CSSko headeru? Prkotina... <body {if $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}{$smarty.get.id_category}"{/if}> podle ID kategorie pak styluj napr. #category1 #header { } #category2 #header { } #category3 #header { } ...
  6. Je treba vymazat kompilacni soubory, ktere ti tam vytvoril sablonovaci system Smarty, aby se zmena projevila. Vymaz obsah slozky compile a je to .-) (cesta: "tools/smarty/compile"; pokud pouzivas Smarty ve verzi 2, tak potom je cesta: "tools/smarty_v2/compile").
  7. Mam pocit, ze nic takoveho skrze administraci nejde. Z jednoho prosteho duvodu – v pripade, ze je cena "dle tarifu", jaka cena se pripocita k celkove objednavce, kolik bude zakaznikovi vyfakturovano? Z tohoto pohledu mi to prijde tak trochu jako logicky nesmysl :/
  8. Bohuzel povolenim jednoho tlacitka v obchode to nepujde. Budete k tomu muset prizpusobit sablonu (product.tpl). Pokud chcete zobrazit v detailu produktu tyto udaje, tak prikladam maly tahak .-) Samozrejme je potreba to opatrit patricnymi "ify", nechcete prece vypisovat neco, co zrovna treba nemate nastaveny. //kod zbozi {$product->reference|escape:'htmlall':'UTF-8'} //kod zbozi dodavatele {$product->supplier_reference|escape:'htmlall':'UTF-8'} //ean13 {$product->ean13|escape:'htmlall':'UTF-8'} // vyrobce vc. odkazu na nej manufacturer_name|escape:'htmlall':'UTF-8'}" href="{$base_dir}manufacturer.php?id_manufacturer={$product->id_manufacturer}">{$product->manufacturer_name|escape:'htmlall':'UTF-8'} Ziskat nazev dodavatele neni tak jednoduchy. Cekal bych, ze to bude stejny jako s vyrobcem, takze bych cekal existenci nejakeho {supplier_name}, ale nic takoveho ve Smarty neni assignovany. Více viz tento odkaz.
  9. Já zas měl za to, že pro obrázek se má používat něco na tenhle zpusob: <meta property="og:image" content="adresa obrazku" /> Nevim, možná, že pomůže toto, možná rada od "Sem Tam". Zkus nejlépe obojí .-)
  10. Zdravim, mozna bude problem skutecne v tom, ze nemate co vyhledavat... Je treba mit vyplnene popisky v prislusnem jazyce, jinak vam to nic nenajde... Uvedu priklad. Mrknete na oficialni demo 1.4. Pokud vyhledate slovo ipod v jazyce EN, vrati vyhledavani 5 vysledku. Pokud budete hledat ipod pod nemeckou vlajkou, dostanete vysledky: Kein Ergebnis gefunden "idod" .-)
  11. Try this, it works fine for me. I try to get both reductions and here is the code: {if isset($product.reduction) && $product.reduction} {math assign="reduction_amount" equation="(x - y)" x=$product.price_without_reduction y=$product.price} {math assign="reduction_perc" equation="(x / y) * 100" x=$reduction_amount y=$product.price_without_reduction format="%.0f"} -{convertPrice price=$reduction_amount} (-{$reduction_perc} %) {/if} I hope it helps
  12. Jak pise Zion Zangar, stranka se sklada z vetsiho mnozstvi bloku, a proto rozhodne bude treba upravit vic jak jedno cislo. Minimalne je zapotrebi upravit, krome #page, take #left_column, #center_column a #right_column... sel bych na to asi takto: #page { width: 100%; margin: 0 auto 2px auto; text-align: left } #left_column { width: 25%; overflow: hidden; clear: left; } #center_column { width: 50%; overflow: hidden; } #right_column { width: 25%; overflow: hidden; } Pokud muzu byt tak smely vam radit, tak bych vam doporucil se do zadnych uprav, ktere by vedly k roztahovacimu layoutu, nepoustet. Dnes jsou jiz minulosti a je mnohem praktictejsi delat layout fixni s sirkou cca 1000px (aby se nezobrazoval dolni posuvnik u monitoru s sirkou 1024px).
  13. Thank you for your good idea, i've posted it there. Damien, thanks for your consideration. Really apprechiate it.
  14. Hi, I have read a topic on Magento forum called "License issue. Using Magento to create client sites" and I would like to discuss the same problem here on Prestashop forum. There are 3 pages describing this problem and one of participants in this discussion is also Lawrence Rosen himself (the author of this license). If you have 5 minutes, please read this: http://www.magentocommerce.com/boards/viewthread/13938/P0/ It's really interesting. I have also read the definition of OSL 3.0 http://www.opensource.org/licenses/osl-3.0 as well as the explanation of this license http://www.rosenlaw.com/OSL3.0-explained.pdf It is not a problem to say what is meant under the term 'distribution' and 'derived work'. These terms are given explicitely. Explanation: Making your application available for use over a network (user buy something on you shop/prestashop) is considered distribution. Explanation: If you take prestashop default theme and you modify it then it must be under the OSL license as well.. And there is a problem. The template files SHOULDN'T BE OSL, because there is no way how some individual/company could develop/customize a theme without using default theme! As a man called darkman has writen on magento forum, it would be like trying to guess an MD5 password I think that all templates which can be found at www.addons.prestashop.com and which are not under the OSL license violate this licence. I'm very sceptical as I don't believe they don't use any lines of code from .*tpl or for example *.js files. It's simply impossible. I hope, this post isn't a flame. After discussion on magento forum they HAVE CHANGED license for theme folder from OSL 3.0 to AFL 3.0 which is "identical to OSL 3.0 except for the reciprocal source code obligation." My question: Is there a chance to change the license for templates folder to AFL 3.0? Now Prestashop 1.4 is comming so maybe it's the perfect time to do it.
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More