Jump to content

Kimi

Members
  • Posts

    152
  • Joined

  • Last visited

Posts posted by Kimi

  1. no v suboroch prestashopu, but to mate na ftp alebo aj na localhoste

    najlepsie pouzit total commander a jeho vyhladavanie v texte

    zacal by som priecinkom modules

     

    i3hn.png

     

    mne to naslo v jednom module, a tu dobre vidno ze od 1.5 sa ta funkcia pouziva trochu inac

     

    if (version_compare(_PS_VERSION_, '1.5', '>'))
     {
      $this->context->controller->addJS(($this->_path).'blocklayered.js');
      $this->context->controller->addJS(_PS_JS_DIR_.'jquery/jquery-ui-1.8.10.custom.min.js');
      $this->context->controller->addJQueryUI('ui.slider');
      $this->context->controller->addCSS(($this->_path).'blocklayered-15.css', 'all');
      $this->context->controller->addJQueryPlugin('scrollTo');
     }
     else
     {
      Tools::addJS(($this->_path).'blocklayered.js');
      Tools::addJS(_PS_JS_DIR_.'jquery/jquery-ui-1.8.10.custom.min.js');
      Tools::addCSS(_PS_CSS_DIR_.'jquery-ui-1.8.10.custom.css', 'all');
      Tools::addCSS(($this->_path).'blocklayered.css', 'all');
      Tools::addJS(_PS_JS_DIR_.'jquery/jquery.scrollTo-1.4.2-min.js');
     }
    

     

    takze by malo staci nahradit Tools::addCSS tymto: $this->context->controller->addCSS

    • Like 1
  2. http://stackoverflow...empty-in-chrome

    skus ulozit header.tpl ako UTF-8 bez BOM

     

    a na konci nad {HOOK_HEADER} mas

    <!--[if lt IE 8]><div style='clear:both;height:59px;padding:0 15px 0 15px;position:relative;z-index:10000;text-align:center;'><a href="http://www.microsoft.com/windows/internet-explorer/default.aspx?ocid=ie6_countdown_bannercode"><img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." /></a></div><![endif]--> 

    divko by nemalo byt v head tagu

  3. in blocktopmenu.php is line:

    $smarty_cache_id = 'blocktopmenu-'.$this->page_name.'-'.(int)$this->context->shop->id.'-'.implode(', ',$this->user_groups).'-'.(int)$this->context->language->id.'-'.(int)Tools::getValue('id_category').'-'.(int)Tools::getValue('id_manufacturer').'-'.(int)Tools::getValue('id_supplier').'-'.(int)Tools::getValue('id_cms').'-'.(int)Tools::getValue('id_product');
    
    

    I dunno why is it like this, why always recompile it, when it doesnt change, maybe if u got some links that are not visible for some group, then let there just user_groups

     

    I changed it to:

    $smarty_cache_id = 'blocktopmenu';

  4. When I want to choose order carrier on mobile device using 5 page checkout, the radio button doesnt change because theres a error on onchange event: unknown reference updateExtraCarrier , that funcion is in onchange event when smarty variable $opc is false, the function updateExtraCarrier is in cart-summary.js but its not in $js_files if ($this->context->getMobileDevice() == false) according to ParentOrderController

    i solved it by adding condition in whether mobile_device is true:

    onchange="{if $opc}updateCarrierSelectionAndGift();{elseif $mobile_device==false}updateExtraCarrier('{$key}', {$id_address});{/if}"
    

  5. $lang=(int)Context::getContext()->language->id;
    
    $p=Product::getProducts($lang,$start,$step,'id_product','desc', false,true); // ceština je v databázi zapsaná pod číslem 3
    $products=Product::getProductsProperties($lang,$p); // ceština je v databázi zapsaná pod číslem 3
    //print_r($products);
    foreach ($products as $row) 
    {
    $img=Product::getCover($row['id_product']);
    $image = new Image($img['id_image']);
    $image_url = _PS_BASE_URL_._THEME_PROD_DIR_.$image->getExistingImgPath().".jpg";
    .
    .
    .

×
×
  • Create New...

Important Information

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