Jump to content

George.Gall

Members
  • Posts

    21
  • Joined

  • Last visited

Everything posted by George.Gall

  1. Ok , so the solution was fairly simple. taoufiqaitali added only the tab content to the displayhome hook, but in fact the displayhometab and displayhometabcontent are related because the actual caching happens in the tab. The CORRECT solution is to edit the blocknewproducts.php in the prestashop_folder/modules/blocknewproducts/ and add this code wherever you want. public function hookDisplayHome($params) { $this->hookdisplayHomeTab($params); $this->hookdisplayHomeTabContent($params); }
  2. This happens because the hook is trying to display the tabed content , but you just unhooked the tab from displayhometabcontent thus nothing is displaying. I am looking for a solution. Could you share a link or do you work in local too , like yasaman ?
  3. Different modules might need different approaches. Let me look into the Best sellers module. I will come back with an answer. EDIT: Ok, so for the best sellers you need to look for {if isset($best_sellers) && $best_sellers} and add after it on a new line : <h4 class="title_block">{l s='Top sellers' mod='blockbestsellers'}</h4>
  4. You should go into themes/Yourtheme/modules/blocknewproducts/ and edit the blocknewproducts_home.tpl look for {if isset($new_products) && $new_products} and right after it on a new line add : <h4 class="title_block">{l s='New products' mod='blocknewproducts'}</h4> It should work, I have no way to test right now , as my local version is a bit messed up Let me know how it went. Always make a back-up of the original file just in case.
  5. paste your code directly in the databasetable is yourprefix_ebay_configuration
  6. There might be a solution. You can manually edit the field in the database. Go to your database, look for yourprefix_ebay_configuration look for a field named "EBAY_PRODUCT_TEMPLATE" and modify it's value with the desired HTML. You can try to copy all the field contents, and paste them into the HTML editor of you choice. When finished editing just paste all the HTML back in the field in database. It's a messy solution but at least it works.
  7. Yeah , I know. Seemed like a great place to ask for a solution to my issue since it was quantity related too.
  8. tried to set this to 1 with no luck. any ideeas why is not working ?
  9. Hi , I am looking for a solution to set a default quantity of 1 when I insert a new product. By default is 0. I'm not talking about the minimal quantity but about the actual product quantity.
  10. I'd like to display in the newproducts page not only the new products , but also old products that have been modified lastly. My shop treats unique products, and once a product is soldout , it may return in a slightly different version. Thus the need to appear as a NEW Product. In order to achieve this I neeed to mofify the getNewProducts function to do my bidding. But I am stuck coz I don't know where to find it. Any ideeas ? EDIT: Found it , it is a public function in classes/Product.php Now I need to update the SQL to add OR my condition ) will update. ok done ... a bit too long to post here , so if anyone need it , just message me.
  11. So the only solution I've found this far is to hide the SHOW ALL button. From the theme's Pagination.TPL file Just comment out the <form> tag. Smarty comment syntax is : {* *} Or hide it by css by adding this line at the end of GLOBAL.CSS file in your theme .showall {display: none;} The main point is that until a valid fix is released or found, this might come in handy. Why ? Simply because by having a layered navigation module allows the users to narrow the displayed products so much that in the end they won't even need the "show all" button. This is not a fix , just a temporary solution I've came up with, and used on my site as well. If I will find a real solution I will post it here. Have fun. Happy shopping.
  12. Ok , so I've looked some more into this. There is indeed a problem in between layered navigation and prestashop's pagination. The layered navigation module adds a # after the category name and makes it's own pagination wich is no longer comaptible with some of the mothods from the original pagination. Just try to delete the # from the address bar and go to that address and you will see that it changes from http://www.reef-guardian.com/boutique/fr/18-test-de-l-eau#/availability-in_stock/weight-0.2-1 to http://www.reef-guardian.com/boutique/fr/18-test-de-l-eau?selected_filters=availability-in_stock%2Fweight-0.2-1 after that everything will work. To be more precise in the Blocklayered.js you will find function initLayered() { initFilters(); initSliders(); initLocationChange(); updateProductUrl(); if (window.location.href.split('#').length == 2 && window.location.href.split('#')[1] != '') { var params = window.location.href.split('#')[1]; reloadContent('&selected_filters='+params); } } I now understood what the problem is , and I will look for a solution. Catch you soon.
  13. It's like "Dude , my car stoped working" and the other say "mine too" , "mine too" ... Post the links to your websites so we can have a look. Let your car(website) be seen by a mechanic
  14. Could you post a link to your site so we can have a look at it ? Usually when this happens it is a problem of missing indexes. Go to Modules and look for the Layered Navigation module . Click Configure. First you must create a template. So if you have no template Click the + button and create one. After you finish creating the template you must recreate the Indexes. So go back to the configuration page of your module and on the first section called "Indexes and Caches" you will find some links to recreate them. Give it a try. Hope it helps. Happy shopping . As always rate if you find useful.
  15. It is a caching issue. You must clear the prestashop's cache. If you plan on doing changes in your layout , go into your backoffice > Advanced Parameters > Performance and under Smarty section disable the cache , and change to Force Compilation. This disables the cache but DOES NOT EMPTY IT You can empty the Cache by loggin with your FTP client and going into your shop's root directory and look for a folder named Cache > Smarty . There you will have 2 other folders Cache and Compile . Empty both of them BUT LEAVE the Index.php. This should solve your caching problems. When you are done with the modifications , re-enable the cache and set Recompile templates if the files have been updated Happy shopping. Rate if you find this post useful.
  16. Yes , it is possible. Unfortunately not from backoffice. You will need to modify the INDEX.TPL inside your theme folder. There are two hooks . First the HomeTabs then displayHome. Just invert them. So to make things clearer here is the default index.tpl : {if isset($HOOK_HOME_TAB_CONTENT) && $HOOK_HOME_TAB_CONTENT|trim} {if isset($HOOK_HOME_TAB) && $HOOK_HOME_TAB|trim} <ul id="home-page-tabs" class="nav nav-tabs clearfix"> {$HOOK_HOME_TAB} </ul> {/if} <div class="tab-content">{$HOOK_HOME_TAB_CONTENT}</div> {/if} {if isset($HOOK_HOME) && $HOOK_HOME|trim} <div class="clearfix">{$HOOK_HOME}</div> {/if} you will have to invert them to : {if isset($HOOK_HOME) && $HOOK_HOME|trim} <div class="clearfix">{$HOOK_HOME}</div> {/if} {if isset($HOOK_HOME_TAB_CONTENT) && $HOOK_HOME_TAB_CONTENT|trim} {if isset($HOOK_HOME_TAB) && $HOOK_HOME_TAB|trim} <ul id="home-page-tabs" class="nav nav-tabs clearfix"> {$HOOK_HOME_TAB} </ul> {/if} <div class="tab-content">{$HOOK_HOME_TAB_CONTENT}</div> {/if} And magic ... they are inverted Happy shopping. Rate if you find it usefull.
  17. Great question sir ! And here is your answer http://blog.codelime.net/2014/04/10/icone-e-class-selectors-per-prestashop-1-6.html
  18. Ok , but what if we want to stick with category names ? What is the right syntax ? Something like HOME > Subcat1 or |HOME||Subcat1| ?
  19. Wow , and yet no one talked about EXPORT . Yes , the import thing it's kinda messy , but what about export ? The default feature is kinda bugged , as it doesn't export more than a few fields. I was wondering if there is a free workaround. Thanks
  20. With CSS , it is not built in the theme editor if I'm not mistaking.
×
×
  • Create New...

Important Information

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