Jump to content

anriuz

Members
  • Posts

    21
  • Joined

  • Last visited

Profile Information

  • Location
    Ukraine
  • Activity
    Freelancer

anriuz's Achievements

Newbie

Newbie (1/14)

  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

5

Reputation

  1. Thanks, separate path sound greate. Is there easy way to distinguish it now? Just move to subfolder and change settings in seo/url in backoffice?
  2. Need some help with excluding subfolder from redirecting rules in .htacces e.g. example.com is the shop site i want to install crm in example.com/crm (i cant create subdomain crm.example.com - dont have access to domain registration) what i have to write in the .htaccess to avoid rewriting for 'crm' subfolder?
  3. content is there - for example i can see the http://najazdkablowy.pl/img/logo.jpg try to clear the cache in back office. and what debug mode says? (try to set define('_PS_MODE_DEV_', true); in config/defines.inc.php
  4. You did it wrong in bo when creating product combinations. You created 4 combinations and only two of them have 'colour' attribute (and dont have 'size' attribute). cobinations should look somethimg like: 1) size1,colour1 2)size1,colour2 3)siez2,colour1 4)size2,colour2
  5. are you using the table editor in php my admin? maybe you didnt applied your changes or have a typo when copy/paste. Try to do it as sql-statement (substitute proper values and table prefix) UPDATE ps_employee SET passwd = md5(“<_COOKIE_KEY_ value><yourNewPassword>”) WHERE email = “<youremailaddress>”;
  6. error message says that the missing or non-existant table name is 'tekcente_tek.ps_configuration' (not 'tps_configuration'. check existance and accesibility of database, table in it with db tool then check settings.inc in config folder
  7. I would suggest that there are some issues with local and/or server time settings. Have you changed these lately?
  8. Have you checked with some db tool (phpmyadmin, for example) if: tekcente_tek.ps_configuration REALLY exists (i mean if you can acces it via db tool). Be precious with the naming - i would suggest some typo - your site is 'tekcenter' but db name is tekcente_tek without that 'r'.
  9. Guys, why not just use the sitemap files in desired languages instead of creating and fixing modules?
  10. Ребята, вопрос и предложение. Акутуально будет для украинских, российских пользователей. Сделал модуль обновления курсов валют: Возможности: Настраивается список валют по которым обновлять курс - Учитывается валюта по умолчанию в магазине - Выбор источника обновления (курс Приватбанка покупка/продажа, курс НБУ, курс ЦБ РФ) - Обновление курсов в бэк-офисе и по крон-у. Это всё счастье могу отдать за так. Из платного (если нужно): - Уведомление администратора об обновлении курсов валют (email, sms) - "Тонкая" настройка курса - т.е., например, указать "курс= курс ЦБ * %процент%" - ваши предложения. Модуль не "трогает" стандартніе модули и класссы.
  11. Hm, as i see at the sephora they use combinations of products and youre not, am i right?
  12. My idea was to add randomly generated search tips just after top search input (just like in attached screenshot file) using standard blocksearch module. To do this we need to: 1) Modify blocksearch-top.tpl like this: <div id="search_block_top" class="col-sm-4 clearfix pull-left"> <form method="get" action="{$link->getPageLink('search')}" id="searchbox" class="searchtop"> <label for="search_query_top"><!-- image on background --></label> <input type="hidden" name="controller" value="search" /> <input type="hidden" name="orderby" value="position" /> <input type="hidden" name="orderway" value="desc" /> <input class="search_query" type="text" id="search_query_top" name="search_query" placeholder="{l s='Looking for?' mod='blocksearch'}" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|htmlentities:$ENT_QUOTES:'utf-8'|stripslashes}{/if}" /> <input type="submit" name="submit_search" value="{l s='Search' mod='blocksearch'}" class="button search-button" /> <div class="search_comment" style="color: #999;"> {l s='For example:' mod='blocksearch'} <span id="search-example" class="search_example" style="text-decoration: underline; cursor: pointer;"></span> </div> <script type="text/javascript"> $.get('/rand.php', function(data){ $('#search-example').text(data); $('#search-example').click(function(){ var SearchInput = $('#search_query_top'); SearchInput.val(data); var strLength= SearchInput.val().length; SearchInput.focus(); SearchInput[0].setSelectionRange(strLength, strLength); SearchInput.trigger('keydown'); }); }); </script> </form> </div> 2) create file rand.php in root directory with this content <?php $selPhrase = array('Good1','Good2','Good3'); echo $selPhrase[rand(0,2)]; ?> where 0 and 2 in echo $selPhrase[rand(0,2)]; are the $selPhrase array dimensions. Instead of 'Good1' there can be either full/part of product title, description etc.
  13. There's easy way to display categories on homepage. What i wanted was to show subcategories (title,picture,without products) of desired category on homepage. Using/modifying standard module blockcategories seems to be the right for that purposes. This module hooks (can be displayed) only on left/right column and footer. So we need to make 2step maintanance: 1) We have to hook this module on homepage content ('displayHome'): 1.1)This can be done by changing blockcategories.php - just add $this->registerHook('displayHome'); in function hookLeftColumn, for example (this will let you to hook this module to homepage content). 1.2) In Backoffice hook module to homepage content 2) Create tpl-file for displaying at the homepage, and make changes in blockcategories.php to initialize the variables needed for .tpl: 2.1) create in module folder file blockcategories_home.tpl, for example, with something like this: {if isset($subcategories)} <!-- Subcategories --> <div id="subcategories" class="block span12"> <h3 class="title_block">Subcategories</h3> <div class="inline_list leo_block_content"> {foreach from=$subcategories item=subcategory name=subcategories} {if $subcategory@iteration%3==1} <div class="row-fluid"> {/if} <div class="span3"> <div class="category-container"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}" class="img"> {if $subcategory.id_image} <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')}" alt=""/> {else} <img src="{$img_cat_dir}default-medium_default.jpg" alt="" /> {/if} </a> <h3 class="s_title_block"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" class="cat_name">{$subcategory.name|escape:'htmlall':'UTF-8'}</a> </h3> </div> </div> {if $subcategory@iteration%3==0||$smarty.foreach.subcategories.last} </div> {/if} {/foreach} </div> </div> {/if} (it's taken from category.tpl from theme folder, you can change it according to what you want). 2.2) Change blockcategories.php adding function public function hookdisplayHome($params) { if (!$this->isCached('blockcategories_home.tpl', $this->getCacheId())) { $id_lang = (int)$this->context->language->id; $category = new Category(15, $id_lang); $subcategories = $category->getSubCategories($id_lang, true); $this->context->smarty->assign(array( 'subcategories' => $subcategories )); } $display = $this->display(__FILE__, 'blockcategories_home.tpl', $this->getCacheId()); return $display; } Where 15 at the row "$category = new Category(15, $id_lang);" means the id of category which subcategories you want to display. 2.3) In the function _clearBlockcategoriesCache() add the row "$this->_clearCache('blockcategories_home.tpl');" Thats all.
×
×
  • Create New...