Jump to content

Kimi

Members
  • Posts

    152
  • Joined

  • Last visited

Posts posted by Kimi

  1. Hi

    if you want to copy seo urls,titles,.. run this SQL in phpmyadmin in database of original eshop: 

    SELECT CONCAT('UPDATE ps_meta_lang SET id_shop=',id_shop,',title=\'',title,'\',description=\'',description,'\',keywords=\'',keywords,'\',url_rewrite=\'',url_rewrite,'\' WHERE id_lang=',id_lang,' AND id_meta = (SELECT id_meta FROM ps_meta WHERE page = \'',ps_meta.page,'\');') FROM `ps_meta_lang`,ps_meta WHERE `ps_meta_lang`.id_meta=ps_meta.id_meta
    LIMIT 0,1000
    

    there should be some setting to output whole text and don't show binary as hex

     

    then copy output and run it as SQL in other eshop's database

    • Like 2
  2. komentar ku Kroku 4 z http://nemops.com/creating-new-pages-in-prestashop/#.Uu0a61JdXeW

     

     
    public function initContent()
    {
        parent::initContent();
     
        $products_partial = Product::getProducts($this->context->language->id, 0, 5, 'name', 'asc');
    //staticka funkcia/metoda triedy Product. vytiane produkty z DB, pre dopravcov mozes pouzit nieco Carrier::getCarriers()
        $products = Product::getProductsProperties($this->context->language->id, $products_partial);
    //naJOINuje viac udajov k zoznamu produktov $products_partian napr: cenu,zlavu, ake funkcie trieda Carrier poskytuje si pozrite v subore classes/Carrier.php
    //ak chcete pouzit SQL dotaz, tak sa pouziva trieda Db:
    /*
    $result = Db::getInstance()->executeS('
    SELECT c.`id_category`
    FROM `'._DB_PREFIX_.'category_product` cp
    LEFT JOIN `'._DB_PREFIX_.'category` c ON (c.`id_category` = cp.`id_category`)
    '.Shop::addSqlAssociation('category', 'c', true, null, true).'
    WHERE cp.`id_category` NOT IN ('.implode(',', array_map('intval', $categories)).')
    AND cp.id_product = '.$this->id
    );
     
    foreach ($result as $categ_to_delete)
    $this->deleteCategory($categ_to_delete['id_category']);
     
    executeS vrati riadky ako pole objektov*/
        $this->context->smarty->assign(array(
            'products' => $products,
            'homeSize' => Image::getSize('home_default')
        )); /*
    nazov a hodnota, premennej ktora sa preda do sablony, odporucam si zapnut smarty debug okno v nastaveniach prestashopu (Nastroje -> Vykon). 
    Ak zvolite Otevřít konzoli s parametrem URL (SMARTY_DEBUG) tak potom staci pridat do parametrov url SMARTY_DEBUG napr: shop.cz/?SMARY_DEBUG. 
    Vo vyskakujucom okne najdete ktore sablony sa rendrovali a ake premenne sa priradili
    */
        $this->setTemplate('allproducts.tpl');
    }
    
    myslim, ze dost pomaha pozriet sa na nejaky hotovy jednoduchy modul a podla toho sa to snazit pochopit
  3. problem je ze prestashop funguje na MVC architekture a neda sa nieco vypisovat v kode controlleru

    ten kod treba v spustit v metode modulu ktora zabezpecuje vystup na frontend a vystup predat do premennej,

    potom premennu vypisat v .tplku, v tom teste vam to funguje takze by som nemal problem vam to spravit za chvilu, poslite mi pristup ak chcete pomoc

    ak by bol na to dopyt spravil by som to ako modul

  4. _blank error - staci nastavit link v hornom menu aby sa neotvaral v novom tabe

    inac musite editovat .tpl .css a mozno aj .php subory

    myslim ze vsetky tieto chyby sa mi podarilo vyriesit: http://validator.w3.org/check?uri=http://4allshop.cz/

    aj facebook snippet ktory momentalne na nasom shope nie je

    dokaz: http://4allshop.cz/config/dokaz1s3.txt

    mozete mi poslat ftp pristup a poopravujem to asi za 2 hodiny, ale za odmenu

×
×
  • Create New...

Important Information

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