Jump to content

AZADA_M

Members
  • Posts

    100
  • Joined

  • Last visited

Profile Information

  • First Name
    Michał
  • Last Name
    Motyka

Recent Profile Visitors

178 profile views

AZADA_M's Achievements

Newbie

Newbie (1/14)

0

Reputation

2

Community Answers

  1. TRZEBA JAKIŚ PLIK KOD PODESŁĄC? ? PROBLEM NADAL NIE ROZWIAZANY :/
  2. Witam proszę o info gdzie znajde poszerzenie tych kolumn widocznych na zdjeciu szukałem już w div box-info-product bez skutecznie chyba ze cos pomijam - dzieki za pomoc adres sklepu https://bigbio.pl/olejki/4910-olejek-z-drzewa-herbacianego-100-15ml-health-link-8594046600048.html?search_query=8594046600048&results=1 www.bigbio.pl
  3. Dzięki za odpowiedź jednak po zmianie tego godu rozjeżdża mi graficznie wyglad tego modułu. Było robione parę przeróbek dlatego sklejam kody o których piszesz i jak mozesz to odnieś się do tego CHCĘ BY BYŁY WYŚWIETLANE 3 PRODUKTY NAJLEPIEJ JAK BY SIĘ ZMIANIAŁY AUTOMATYCZNIE CO KILKA SEKUND blockspecials.tpl theme/modules/blockspecials/ {* * 2007-2015 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <!-- MODULE Block specials --> <div id="special_block_right" class="block"> <p class="title_block"> <a href="{$link->getPageLink('prices-drop')|escape:'html':'UTF-8'}" title="{l s='Specials' mod='blockspecials'}"> {l s='Specials' mod='blockspecials'} </a> </p> <div class="block_content products-block"> {if $special} <ul> <li class="clearfix"> <CENTER><a href="{$special.link|escape:'html':'UTF-8'}"> <img class="replace-2x img-responsive" src="{$link->getImageLink($special.link_rewrite, $special.id_image, 'small_default')|escape:'html':'UTF-8'}" alt="{$special.legend|escape:'html':'UTF-8'}" title="{$special.name|escape:'html':'UTF-8'}" /> </a> <div class="product-content"><br> <h5> <a class="product-name" href="{$special.link|escape:'html':'UTF-8'}" title="{$special.name|escape:'html':'UTF-8'}"> {$special.name|escape:'html':'UTF-8'} </a> </h5> {*} {if isset($special.description_short) && $special.description_short} <p class="product-description"> {$special.description_short|strip_tags:'UTF-8'|truncate:40} </p> {/if}*} <div class="price-box"> {if !$PS_CATALOG_MODE} <b><class="price product-price"></B> {if !$priceDisplay} {displayWtPrice p=$special.price}{else}{displayWtPrice p=$special.price_tax_exc} {/if} </span> {if $special.specific_prices} {assign var='specific_prices' value=$special.specific_prices} {if $specific_prices.reduction_type == 'percentage' && ($specific_prices.from == $specific_prices.to OR ($smarty.now|date_format:'%Y-%m-%d %H:%M:%S' <= $specific_prices.to && $smarty.now|date_format:'%Y-%m-%d %H:%M:%S' >= $specific_prices.from))} {*<span class="price-percent-reduction">-{$specific_prices.reduction*100|floatval}%</span>*} {/if} {/if} <span class="old-price"> {if !$priceDisplay} {displayWtPrice p=$special.price_without_reduction}{else}{displayWtPrice p=$priceWithoutReduction_tax_excl} {/if} </span> {/if} </div> </div> </li> </ul> <div></CENTER> <a href="{$link->getPageLink('prices-drop')|escape:'html':'UTF-8'}" title="{l s='All specials' mod='blockspecials'}"> <span>{l s='POKAŻ WSZYSTKIE PROMOCJE ' mod='blockspecials'}<i class="icon-chevron-right right"></i></span> </a> </div> {else} <div>{l s='No specials at this time.' mod='blockspecials'}</div> {/if} </div> </div> <!-- /MODULE Block specials --> oraz drugi kod blockspecials.php modul/blockspecils <?php /* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ if (!defined('_PS_VERSION_')) exit; class BlockSpecials extends Module { private $_html = ''; private $_postErrors = array(); private static $cache_specials; public function __construct() { $this->name = 'blockspecials'; $this->tab = 'pricing_promotion'; $this->version = '1.1.6'; $this->author = 'PrestaShop'; $this->need_instance = 0; $this->bootstrap = true; parent::__construct(); $this->displayName = $this->l('Specials block'); $this->description = $this->l('Adds a block displaying your current discounted products.'); $this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_); } public function install() { if (!Configuration::get('BLOCKSPECIALS_NB_CACHES')) Configuration::updateValue('BLOCKSPECIALS_NB_CACHES', 20); if (!Configuration::get('BLOCKSPECIALS_SPECIALS_NBR')) Configuration::updateValue('BLOCKSPECIALS_SPECIALS_NBR', 5); $this->_clearCache('*'); $success = parent::install() && $this->registerHook('header') && $this->registerHook('leftColumn') && $this->registerHook('addproduct') && $this->registerHook('updateproduct') && $this->registerHook('deleteproduct') && $this->registerHook('displayHomeTab') && $this->registerHook('displayHomeTabContent'); return $success; } public function uninstall() { $this->_clearCache('*'); return parent::uninstall(); } public function getContent() { $output = ''; if (Tools::isSubmit('submitSpecials')) { Configuration::updateValue('PS_BLOCK_SPECIALS_DISPLAY', (int)Tools::getValue('PS_BLOCK_SPECIALS_DISPLAY')); Configuration::updateValue('BLOCKSPECIALS_NB_CACHES', (int)Tools::getValue('BLOCKSPECIALS_NB_CACHES')); Configuration::updateValue('BLOCKSPECIALS_SPECIALS_NBR', (int)Tools::getValue('BLOCKSPECIALS_SPECIALS_NBR')); $output .= $this->displayConfirmation($this->l('Settings updated')); } return $output.$this->renderForm(); } public function hookRightColumn($params) { if (Configuration::get('PS_CATALOG_MODE')) return; // We need to create multiple caches because the products are sorted randomly $random = date('Ymd').'|'.round(rand(1, max(Configuration::get('BLOCKSPECIALS_NB_CACHES'), 1))); if (!Configuration::get('BLOCKSPECIALS_NB_CACHES') || !$this->isCached('blockspecials.tpl', $this->getCacheId('blockspecials|'.$random))) { if (!($special = Product::getRandomSpecial((int)$params['cookie']->id_lang)) && !Configuration::get('PS_BLOCK_SPECIALS_DISPLAY')) return; $this->smarty->assign(array( 'special' => $special, 'priceWithoutReduction_tax_excl' => Tools::ps_round($special['price_without_reduction'], 2), 'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')), )); } return $this->display(__FILE__, 'blockspecials.tpl', (Configuration::get('BLOCKSPECIALS_NB_CACHES') ? $this->getCacheId('blockspecials|'.$random) : null)); } public function hookLeftColumn($params) { return $this->hookRightColumn($params); } public function hookHeader($params) { if (Configuration::get('PS_CATALOG_MODE')) return; $this->context->controller->addCSS(($this->_path).'blockspecials.css', 'all'); } public function hookAddProduct($params) { $this->_clearCache('*'); } public function hookUpdateProduct($params) { $this->_clearCache('*'); } public function hookDeleteProduct($params) { $this->_clearCache('*'); } public function hookDisplayHomeTab($params) { if (Configuration::get('PS_CATALOG_MODE')) return; if (!$this->isCached('tab.tpl', $this->getCacheId('blockspecials-tab'))) BlockSpecials::$cache_specials = Product::getPricesDrop((int)$params['cookie']->id_lang, 0, Configuration::get('BLOCKSPECIALS_SPECIALS_NBR')); if (BlockSpecials::$cache_specials === false) return false; return $this->display(__FILE__, 'tab.tpl', $this->getCacheId('blockspecials-tab')); } public function hookDisplayHomeTabContent($params) { if (Configuration::get('PS_CATALOG_MODE')) return; if (!$this->isCached('blockspecials-home.tpl', $this->getCacheId('blockspecials-home'))) { $this->smarty->assign(array( 'specials' => BlockSpecials::$cache_specials, 'homeSize' => Image::getSize(ImageType::getFormatedName('home')) )); } if (BlockSpecials::$cache_specials === false) return false; return $this->display(__FILE__, 'blockspecials-home.tpl', $this->getCacheId('blockspecials-home')); } public function renderForm() { $fields_form = array( 'form' => array( 'legend' => array( 'title' => $this->l('Settings'), 'icon' => 'icon-cogs' ), 'input' => array( array( 'type' => 'switch', 'label' => $this->l('Always display this block'), 'name' => 'PS_BLOCK_SPECIALS_DISPLAY', 'desc' => $this->l('Show the block even if no products are available.'), 'values' => array( array( 'id' => 'active_on', 'value' => 1, 'label' => $this->l('Enabled') ), array( 'id' => 'active_off', 'value' => 0, 'label' => $this->l('Disabled') ) ), ), array( 'type' => 'text', 'label' => $this->l('Number of cached files'), 'name' => 'BLOCKSPECIALS_NB_CACHES', 'class' => 'fixed-width-xs', 'desc' => $this->l('Specials are displayed randomly on the front-end, but since it takes a lot of ressources, it is better to cache the results. The cache is reset daily. 0 will disable the cache.'), ), array( 'type' => 'text', 'label' => $this->l('Products to display'), 'name' => 'BLOCKSPECIALS_SPECIALS_NBR', 'class' => 'fixed-width-xs', 'desc' => $this->l('Define the number of products to be displayed in this block on home page.') ) ), 'submit' => array( 'title' => $this->l('Save'), ) ), ); $helper = new HelperForm(); $helper->show_toolbar = false; $helper->table = $this->table; $lang = new Language((int)Configuration::get('PS_LANG_DEFAULT')); $helper->default_form_language = $lang->id; $helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0; $helper->identifier = $this->identifier; $helper->submit_action = 'submitSpecials'; $helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false).'&configure='.$this->name.'&tab_module='.$this->tab.'&module_name='.$this->name; $helper->token = Tools::getAdminTokenLite('AdminModules'); $helper->tpl_vars = array( 'fields_value' => $this->getConfigFieldsValues(), 'languages' => $this->context->controller->getLanguages(), 'id_language' => $this->context->language->id ); return $helper->generateForm(array($fields_form)); } public function getConfigFieldsValues() { return array( 'PS_BLOCK_SPECIALS_DISPLAY' => Tools::getValue('PS_BLOCK_SPECIALS_DISPLAY', Configuration::get('PS_BLOCK_SPECIALS_DISPLAY')), 'BLOCKSPECIALS_NB_CACHES' => Tools::getValue('BLOCKSPECIALS_NB_CACHES', Configuration::get('BLOCKSPECIALS_NB_CACHES')), 'BLOCKSPECIALS_SPECIALS_NBR' => Tools::getValue('BLOCKSPECIALS_SPECIALS_NBR', Configuration::get('BLOCKSPECIALS_SPECIALS_NBR')) ); } protected function getCacheId($name = null) { if ($name === null) $name = 'blockspecials'; return parent::getCacheId($name.'|'.date('Ymd')); } public function _clearCache($template, $cache_id = null, $compile_id = null) { parent::_clearCache('blockspecials.tpl'); parent::_clearCache('blockspecials-home.tpl', 'blockspecials-home'); parent::_clearCache('tab.tpl', 'blockspecials-tab'); } } dzieki
  4. Witam Proszę o kilka propozycji czy są a jeśli tak to jakie godne polecenia moduły do zaplecza presty do zamówień. standardowy jest bradzo ubogi - ma z góry określone tabele co się wyświetla (kolumny) Szukam coś w stylu allegro menagera - gdzie odrazu widz np po naciśnieciu rozwijania zamowienai co bylo zamowienione, jaki jest PRZEWOŹNIK bez konieczności schodzenia w zamowienie każde po kolei dziękuje za pomoc
  5. witam Może ktoś wie gdzie kupić ten moduł na ekranie wyświetla się co chwile jaki produkt został kupiony w sklepie przykład pod tym adresem: po lewej stronie wyświetla się co jakiś czas - KTOŚ WŁAŚNIE KUPIŁ http://mentalway.pl/ dziękuję za infi
  6. tak szablon jest sporo modyfikowany zrobilem teraz tak: odinastlowalem i pobralem najnowsza wersje modulu ze sklepu - podczas instalacji bład i nie mogę teraz zainstalować Następujący(e) moduł(y) nie został(y) prawidłowo zainstalowane: owppoczta : Nie można zainstalować nakładki: Metoda addWithemail w klasie OrderHistory została już nadpisana. o co chodzi??? wracając do pytania poprzednika Rozumiem, że wybór wcześniej odbywał się na stronie wyboru wysyłki / kuriera ? tak wybór odbywał się w momencie wyboru POCZTA POLSKA / STACJA ORLEN ODBIÓR W PUNKCIE i wtedy wyskakiwala mapka z wyborem - teraz nie mam modułu jest bład proszę o info co zrobić bo bez tego biednie z wyborem pozdrawiam wszystkich
  7. witam od kilku dni nie dziala na sklepie przy wyborze dostawy wybór placówki poczty polskiej. wcześniej po naciśnięciu wybranej formy wysyłłki wyświetłała się mapa z której można było wybrać placówkę - teraz nie dzieje sie nic. moduł jest poprawnie podpiety pod ID przewożnika czekam na wskazanie kierunku co zrobic lub gotowe rozwiazanie www.bigbio.pl https://bigbio.pl/zamowienie login tymczasowy do konta: login [email protected] haslo 12345
  8. witam pytanie jak w temacie. prosze o info jak znaleźć miejsce gdzie sązapisywanie w bazie dostawcy. mam błąd zdublowania i przez to mi miesza przy opcji wysylki - przypuszczam, że jakiś nr nie zotał skasowany i to mi miesza dzieki za info
  9. witam jak zrobic by mozna bylo przewijać w lewo/prawo strzalkami produkty w promocji/nowosci/besteseller teraz mam ustawione na 6 produktów w momencie gdy chce dac wieksza ilosc przenosi je do kolejnego wiersza. prosze o info jak to zmienic.?;; ) adres sklepu www.sklep.bigbio.pl
  10. witam prosze o informacje jak zrobić by wyswietlało się więcej niż 1 produkt w lewej kolumnie ?? http://sklep.bigbio.pl/1947-peelingi-scruby
  11. witam jak zrobic by produkt niedostępny był "wygaszony"?? dokładnie chodzi mi o zdjęcie przykłąd na tej stronie http://www.goodies.pl/129-duze-sloje-classic moj sklep http://www.goodies.pl/129-duze-sloje-classic dzieki za pomoc
  12. witam jak w temacie jak zrobic by w produkatach wyszukiwanych, bestsellerach i nowosciach moza bylo filtrowac produkty., w module nie moge tego zaznaczyc, musze to zakodowac tylko jak to zrobic?? io w jakich plikach i co dodac?? dzieki za info link do sklepu: https://sklep.bigbio.pl/index.php?controller=prices-drop https://sklep.bigbio.pl/index.php?controller=search&orderby=position&orderway=desc&search_query=+baton&submit_search=
  13. tu jest rozwiazanie https://www.prestashop.com/forums/topic/237077-modul-bestseller/
  14. witam na każdej stronie wywala mi błąd <script> function init() { window.addEventListener('scroll', function(e){ var distanceY = window.pageYOffset || document.documentElement.scrollTop, shrinkOn = 160, header = document.querySelector(".footer_order"); if (distanceY > shrinkOn) { classie.add(header,"fixed_block"); } else { if (classie.has(header,"fixed_block")) { classie.remove(header,"fixed_block"); } } }); } window.onload = init(); </script> o co chodzi ?? jak to usunąć.
×
×
  • Create New...