Jump to content

razaro

Global Moderators
  • Posts

    2,541
  • Joined

  • Last visited

  • Days Won

    23

Everything posted by razaro

  1. Also check https://validator.prestashop.com/generator , while maybe not for absolute beginners you can look at code and learn from it, by adding and removing things. And you will get working module, without front office code. Also check modules that comes by default with Prestashop and easier to look for some piece of code at https://github.com/prestashop .
  2. Could you put it live on your website but use css to hide it ? I will check it out. And in Modules > Positions find displayTop hook and see what are module positions there, and make sure social module is before slider and menu.
  3. Well beside translating module to Top hook you need to change position inside the hook so it is before cart block I think. Also then some css are needed. Use first something like this #header #social {display:none;} So it is hidden while you do not position and style like you want, preferably using browser dev tools.
  4. Sorry what is your store domain ? You can PM me link and api key, because key you should not post like that to public.
  5. You did not do what Vekia have said $products[] = new Product(15); so you need to to try to add product to array. Also maybe try to use custom name like $my_products maybe this pick up some other $products array.
  6. Yes it is new products but I give you that as example, if you check code a bit you will find this also for search {include file="$tpl_dir./product-list.tpl" products=$search_products} So you need a way to populate your array and use it like this {include file="$tpl_dir./product-list.tpl" products=$your_array}
  7. I was playing with some other js framework but had similar issue, but this worked for me. Also used http.get but try with this as url var get_products = 'http://your-store-name.com/api/products?ws_key=YOUR_KEY&output_format=JSON'; For some reason that worked for me. Hope it helps and you have success in making an app.
  8. Well if you check module block new products for example, homepage part, you will see {if isset($new_products) && $new_products} {include file="$tpl_dir./product-list.tpl" products=$new_products class='blocknewproducts tab-pane' id='blocknewproducts'} {else} <ul id="blocknewproducts" class="blocknewproducts tab-pane"> <li class="alert alert-info">{l s='No new products at this time.' mod='blocknewproducts'}</li> </ul> {/if} So you see it includes product-list.tpl so it will have same display as current theme. You will need to pass array of products and change class and id ...
  9. In back office go to Modules > Positions and find two sections displayHomeTab and displayHomeTabContent and switch places of modules home featured and new.
  10. First try to clear cache on Advanced Parameters > Performance. Then where you call that function ? Check also http://doc.prestashop.com/display/PS16/Overriding+default+behaviors
  11. Yes there are lot of paid modules, for different features, but by default Prestashop do come with good amount of modules and features for free. Some are maybe not visible straight away. And you do not have to buy module for clearing cache, there is button on top right in Advanced Parameters > Performance. Check documentation http://doc.prestashop.com/display/PS16/English+documentation and search for maybe free alternatives for paid modules you find. Also search forum for possible modification of some features, or post what functionality you need. And please do not call paid modules stupid, even if some look simple, some time and effort is needed to make one. In documentation there is quick guide how to make one and default modules are on github so you can easily search/look for some code examples.
  12. Yeah that is weird, installing module should not reset theme, just add block in front office. What changes have you done and where ? Could you give more info, some settings in back office or code change , some example ? Also if you can share your store url. And yes, sorry, that is right module, have not been precise maybe.
  13. Email alerts (mailalerts) is free module that come by default. And for your second question, you maybe expect something else but when you click on Categories and specific category it does not display products form that category, it display if any, sub-categories. And like you said on Products it can be filtered by category.
  14. Not sure if this depends of module, theme or Prestashop version but in module Theme configurator one of options is to Display/hide subcategories. And Paulito code hides them for sure.
  15. Try this, not tested and probably some styling is needed. Open new-products.tpl and remove {include file="./product-sort.tpl"} then in pagination.tpl add <li class="productsbypage">{include file="./product-sort.tpl"}</li> just after Previous button code so looks similar to this <ul class="pagination"> {if $p != 1} {assign var='p_previous' value=$p-1} <li id="pagination_previous{if isset($paginationId)}_{$paginationId}{/if}" class="pagination_previous"><a {$no_follow_text} href="{$link->goPage($requestPage, $p_previous)}">« {l s='Previous'}</a></li> {else} <li id="pagination_previous{if isset($paginationId)}_{$paginationId}{/if}" class="disabled pagination_previous"><span>« {l s='Previous'}</span></li> {/if} <li class="productsbypage">{include file="./product-sort.tpl"}</li> {if $start==3} <li><a {$no_follow_text} href="{$link->goPage($requestPage, 1)}">1</a></li> <li><a {$no_follow_text} href="{$link->goPage($requestPage, 2)}">2</a></li> {/if} then add styles to that new list element using class .productsbypage {....}. You can first just add display:none and then test styles in browser dev tools.
  16. Well try first to pause CloudFlare first then clear Prestashop cache. If still no difference try to change code in xtreme-cache.php from my previous post. Then clear cache again and test.
  17. @LBAT Confirm that is module is caching pages and also check your PHP version.
  18. First of all again nice work Simone and Enrique Engblom, and hope you merge versions and continue with configuration version. Tested latest version but could not get caching to work. Tried 1.0.5 + configuration and same result. Tracked issue and think it is due my PHP version settings, but need to check more. For me issue was with filter_input function, it returned NULL for some reason. So I used $_SERVER['REQUEST_METHOD'] instead filter_input(INPUT_SERVER, 'REQUEST_METHOD') and also $url = $_SERVER["REQUEST_URI"]; instead of $url = filter_input(INPUT_SERVER, 'REQUEST_URI'); And it worked for me. And it worked great :-) Here are quick test results with most performance option enabled and with module disabled and enabled. And this is from test server with 1.6.1.0 and default theme with demo data.
  19. No you should see .htaccess file in fillezilla if it is there. Why are you deleting those folders ? Also try to enable debug mode and see if error messages wil show up instead white screen. And if you have error.log in root directory check that also for some clues.
  20. While documentation could be better, think you missed to read parts for HelperForm where are all explained. http://doc.prestashop.com/display/PS16/Using+the+HelperForm+class#UsingtheHelperFormclass-Selector says enough for start, with two examples. And why it is not saving well that depends of your code where you check if submit is done. Check some code from default modules. Also good start in module development is Prestashop module generator https://validator.prestashop.com/generator
  21. HTML code looks different , what tpl file is that code from ? Think it could be nav.tpl but also check if there is themes/pf_maxxshop/modules/blockuserinfo/blockuserinfo.tpl or nav.tpl .
  22. Are you from the future :-) 1.6.1 will be out tomorrow. And 1.7 maybe next year. But to your question, can you access back office ? Try to go to Preferences > SEO&URLs and see what is there in folder field. Also in database check, think it is ps_shop_url . One more thing is to delete htaccess file in your root folder.
  23. Could you check this http://gabelpoles.com/en/spare-parts/238-straps-0219-world-cup-click-blacksilver-gabel-straps.html and make screenshot of back office , product edit page and association tab and also check category spare parts and snow, their parent - child relation.
  24. Yeah good catch, guess that comes from here public function __construct($name, $path = '', $expire = null, $shared_urls = null, $standalone = false, $secure = false) { $this->_content = array(); $this->_standalone = $standalone; $this->_expire = is_null($expire) ? time() + 1728000 : (int)$expire; $this->_path = trim(($this->_standalone ? '' : Context::getContext()->shop->physical_uri).$path, '/\\').'/'; if ($this->_path{0} != '/') $this->_path = '/'.$this->_path; $this->_path = rawurlencode($this->_path); $this->_path = str_replace('%2F', '/', $this->_path); $this->_path = str_replace('%7E', '~', $this->_path); $this->_domain = $this->getDomain($shared_urls); $this->_name = 'PrestaShop-'.md5(($this->_standalone ? '' : _PS_VERSION_).$name.$this->_domain); $this->_allow_writing = true; $this->_salt = $this->_standalone ? str_pad('', 8, md5('ps'.__FILE__)) : _COOKIE_IV_; if ($this->_standalone) $this->_cipherTool = new Blowfish(str_pad('', 56, md5('ps'.__FILE__)), str_pad('', 56, md5('iv'.__FILE__))); elseif (!Configuration::get('PS_CIPHER_ALGORITHM') || !defined('_RIJNDAEL_KEY_')) $this->_cipherTool = new Blowfish(_COOKIE_KEY_, _COOKIE_IV_); else $this->_cipherTool = new Rijndael(_RIJNDAEL_KEY_, _RIJNDAEL_IV_); $this->_secure = (bool)$secure; $this->update(); } It is in class Cookie.php so try to override that and remove/edit that string 'PrestaShop-' . But not sure if that important and used somewhere else.
×
×
  • Create New...

Important Information

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