Jump to content

tozi

Members
  • Posts

    502
  • Joined

  • Last visited

Everything posted by tozi

  1. Solution is: modules/blocklanguages/blocklanguages.tpl commented or delete this: <script type="text/javascript"> $(document).ready(function () { $("#countries").mouseover(function(){ $(this).addClass("countries_hover"); $(".countries_ul").addClass("countries_ul_hover"); }); $("#countries").mouseout(function(){ $(this).removeClass("countries_hover"); $(".countries_ul").removeClass("countries_ul_hover"); }); }); </script> classes/Link.php (line 643) replace this: return Language::getIsoById($id_lang).'/'; with this: if (Configuration::get('PS_LANG_DEFAULT') == $id_lang) { return ''; }else{ return Language::getIsoById($id_lang).'/'; } classes/Tools.php (line 396) replace this: if (($iso = Tools::getValue('isolang')) && Validate::isLanguageIsoCode($iso) && ($id_lang = (int)Language::getIdByIso($iso))) $_GET['id_lang'] = $id_lang; with this: if ( !( ($iso = Tools::getValue('isolang')) && Validate::isLanguageIsoCode($iso) && ($id_lang = (int)Language::getIdByIso($iso)) ) ){ $_GET['id_lang'] = Configuration::get('PS_LANG_DEFAULT'); }else{ $_GET['id_lang'] = $id_lang; } Thats all.
  2. Hi all, i have 2 languages. Link http://www.adac-pneu.cz/cs/ I have czech language http://www.adac-pneu.cz/cs/ and slovak http://www.adac-pneu.cz/sk/ What i need? Delete cs/ from link. I tried this in httaccess but didnt work. RewriteEngine on RewriteCond %{HTTP_HOST} ^www.adac-pneu.cz$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] RewriteRule ^cs/(.*)$ /$1 [R=302,L] I have presta 1.5.6.1. In BO i have default language czech.
  3. Hi all, i need in quick order show some text for a specific carrier with id 10. How can i add text? I tried some like {if isset($cart->id_carrier) && $cart->id_carrier == 10} {* some stuff here *} {/if} But didnt work. I have prestashop 1.5.6.1.Thanks
  4. Hi all, here is my page http://www.adac-pneu.cz/quick-order If i add (+/-) new product in this cart. Then carrier price nod update. Ajax problem? How can i fix this problem? Here is the code from order-carrier.tpl {if $carrier.price} <span class="price"> {if $priceDisplay == 1}{convertPrice price=$carrier.price_tax_exc}{else}{convertPrice price=$carrier.price}{/if} </span> {if $use_taxes}{if $priceDisplay == 1} {l s='(tax excl.)'}{else} {l s='(tax incl.)'}{/if}{/if} {else} {l s='Free!'} {/if}
  5. Solution is {$order->id} or better {$order->id|string_format:"%06d"}
  6. Hi all, how can i change this QTXBBTCDL To this #15, i need in this place only ID order. Code is here {l s='Order Reference %s - placed on' sprintf=$order->getUniqReference()} {dateFormat date=$order->date_add full=0} I tried this #{$order.id_order} but didnt work. I have presta 1.5.6.1
  7. Hi all, i install this module in my presta 1.5.6.1. And in email from this module i have this Welcome {firstname} {lastname}. Any ideas why it does not show the name? Thanks Michal
  8. So i have a simply solution. Change img/404.gif
  9. Hi, i have this good? {assign var=current_image value=getimagesize($link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html')} {if $current_image[0] eq 125}test{else}<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html'}" alt="{if !empty($product.legend)}{$product.legend|escape:'htmlall':'UTF-8'}{else}{$product.name|escape:'htmlall':'UTF-8'}{/if}" title="{if !empty($product.legend)}{$product.legend|escape:'htmlall':'UTF-8'}{else}{$product.name|escape:'htmlall':'UTF-8'}{/if}" {if isset($homeSize)} {/if} height="170" />{/if}
  10. Yes thats is not a global image. It is possible change this image for own custom? I have 50 000 products in page,then is not possible change every image manually.
  11. Here http://www.dobrypneu.cz/new/39-pneumatiky
  12. Yes it has already been done, but there is this picture does not change.
  13. Hi all, how can i change this picture http://greycat.eu/otaznik.png ? I have own custom image, and i need change this default.
  14. Didnt work. This solution allows customers downloaded the invoice in the eshop. I need pdf invoice in attachment in the email.
  15. Hi all, it is possible add invoice pdf in email when status is "shipped"? I have prestashop 1.5.6.1
  16. Hi all, i have this code in product.tpl {if $product->upc>=1} {if $product->upc==1} in stock! {elseif $product->upc==2} 2 days {elseif $product->upc==3} 3 days {elseif $product->upc==4} 4 days {elseif $product->upc==12} 1-2 days {elseif $product->upc==13} 1 - 3 days {elseif $product->upc==35} 3-5 days {elseif $product->upc==25} 2-5 days {elseif $product->upc==0} {/if} This code show product delivery time. But i need instead UPC view the results of field references. I tried this: but didnt work. {if $product->upc>=1} {if $product->reference==1} in stock! {elseif $product->reference==ns1} 2 days {elseif $product->reference==ns} 3 days {elseif $product->reference==4} 4 days {elseif $product->reference==12} 1-2 days {elseif $product->reference==13} 1 - 3 days {elseif $product->reference==35} 3-5 days {elseif $product->reference==25} 2-5 days {elseif $product->reference==0} {/if} Any idea?
  17. Ok solved i only change this public function hookDisplayLeftColumn($params) { $this->_prepareHook($params); return $this->display(__FILE__, 'blocknewsletter.tpl'); } to this public function hookDisplayMyNewHook($params) { $this->_prepareHook($params); return $this->display(__FILE__, 'blocknewsletter.tpl'); } And install module.
  18. You can by more specific. I also tried this function hookDisplayMyNewHook() { return $this->leftColumn('hookDisplayMyNewHook'); }
  19. Hi all, i have prestashop 1.5.6.1. I need in cms page module block newsletter. My method didnt work... 1. create new cms page with id 16 2. adding this to module blocknewsletter function hookDisplayMyNewHook() { return $this->leftColumn($params, 'hookDisplayMyNewHook'); return $this->display(__FILE__, 'blocknewsletter.tpl'); } 3. add to cms.tpl <h1>{$cms->meta_title}</h1> {if $cms->id == 16} {hook h='displayMyNewHook'} {/if} But if i tried hook this module then i have the error This module can not be connected to this Hook. Where I have an error? Please help.
  20. Hi all, i need help. I have shop http://www.dobrypneu.cz/new/ , all prices is without decimals. I add this code |regex_replace:'/[.,][0-9]+/':'' But is there one problem. If i add product, then on top of page is price with decimals. And if i reload page then decimals is gone. Any idea?
×
×
  • Create New...

Important Information

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