Jump to content


  • Posts

  • Joined

  • Last visited

Profile Information

  • Activity

anmihe's Achievements


Newbie (1/14)




Community Answers

  1. Hey guys, I get the following error message when I try to update one of my carriers and are unable to save, but only for one, rest of them is fine. No errors or warnings in the developer console and nothing in the apache logs although I've spotted one thing that difference the carrier that gets the error when updating. I get a "302 Moved Temporarily" for a request to jquery-1.11.0.min.js, see attached file, and this is only when trying to update the carrier that gets the error, this never appears on the carriers where I'm able to save. Any ideas of what this can be!? Thanks in advance. /A
  2. Solved it! Should be: $this->cat_products = $this->category->getProducts($this->context->language->id, (int)$this->p, (int)$this->n, $this->orderBy, $this->orderWay,false,true,true,6); ...the last nr is the amount of products that get picked, default is 1 so therefor only one showed up.
  3. Hey guys, This have been asked a few times but then people have been wanting to do it for all categories, but I wanna do this just for a specific category. I wanna have one category page, that only shows 6 products, and those to be randomized from all products within that category. I've successfully change the amount of products shown per page and also calling a custom category.tpl for specific categories by putting if statements in CategoryController.php and FrontController.php. Also manage to hide the header and footer for these, so I kinda know why way arround. I've found this solution http://www.prestashop.com/forums/topic/302732-random-product-listing/ ...and it kinda works, it randomizes the products but it only shows one product. This is what I have in my CategoryController.php now (in the assignProductList function): if ($this->category->id==25) { $this->cat_products = $this->category->getProducts($this->context->language->id, (int)$this->p, (int)$this->n, $this->orderBy, $this->orderWay,false,true,true); } else { $this->cat_products = $this->category->getProducts($this->context->language->id, (int)$this->p, (int)$this->n, $this->orderBy, $this->orderWay); } Any takers? All help, pointer and suggestions are welcome! Thanks in advance! /A
  4. ...and manually declaring these in the .js files makes the currency change work but when trying to add or delete from the cart I get another error instead: static_token is not defined. Which is the next js variable to be declared in header.tpl And again, this is only for the product page, as I can remove stuff from the cart from other pages without any problem. So appears that none of the js variables getting declared in header.tpl works when on a product page. Anyone with any clues?
  5. Hi guys, Just upgraded from to and now I've having some weird javascript problems It's in tools.js and ajax-cart.js and only present on the product page. When trying to change currency or add to the cart I get this error: ReferenceError: baseDir is not defined And as said, only happens on product pages, changing currency works fine on all other pages. I know baseDir is defined in header.tpl but I have change nothing there, and when comparing what script are being called and in what order its the same as before the upgrade. This is weird and really annoying. Anyone with any ideas? Thanks in advance! A
  6. Last warning was: Resource: Process Time Exceeded: 5456 > 1800 (seconds) Executable: /usr/bin/php Command Line: /usr/bin/php PID: 21939 (Parent PID:21876) And when checking the current running processes in WHM this is what I see for 21939: 21939 (php) /usr/bin/php /usr/local/cpanel/cgi-sys If it was PS wouldn't there be a PS directory for that process?
  7. Hi and thanks for the fast reply! But I am running PHP as fastcgi, this is my current configuration: Default PHP Version: 5 PHP 5 Handler: fcgi Apache suEXEC: on Apache Ruid2: off ...what do you think?
  8. Hello, I've recently swithced over to a VPS and I'm getting hammered with these "lfd Excessive resource usage": Time: Fri May 16 10:43:09 2014 -0400 Account: accountname Resource: Process Time Exceeded: 19863 > 1800 (seconds) Executable: /usr/bin/php Command Line: /usr/bin/php PID: 15869 (Parent PID:15850) Killed: No ....it is usually 5-6 warnings in a row with the same process ID with an hour in-between, they start with about 1860 > 1800 (seconds) and end up with what you see above...more then 5h. Then it continues but with another process ID. The site works fine and loads fast so I'm not seeing any performance or other actual issues. I've talked to the hosting support and they can't really pin point it and told me to check with Prestashop if this was "intentional and legitimate behavior from this script" So anyone knows? Is there any scripts in Prestashop that is suppose to run for this long? Thanks in advance!
  9. Solved it, at least for the moment but it feels a bit ugly... {if $smarty.server.REQUEST_URI !== '/modules/modulename/payment.php'} {/if} ...any downside to this method?
  10. I've tried wrapping the module in: {if $smarty.get.controller !='payment'} {/if} ...kinda make sense but that doesn't do anything as when on the payment page $smarty.get.controller returns "pagenotfound" Anyone with ideas?
  11. Hi guys, I'm trying to exclude the newsletter signup and the cart drop down modules when on a payment page as I don't want those distractions there... This works fine by adding "payments" to the exceptions list for those modules but only if the payment page url doesn't end with .php I have one payment module that generate a payment page that looks like this "domain.com/modules/modulename/payment.php" ...and I've tried adding: payment.php modulename/payment.php modules/modulename/payment.php But none of them works, the modules I wanna exclude from this page still shows up. Anyone with some ideas n how to approach this? Thanks in advance
  12. Hi Guys, We're going to use DHL Express for our store...and maybe later their Global service to if people think Express is to expensive. First problem I encounter is the actual setup of zones/countries to match those in DHLs....those is not even close to the default placements of countries in Zones that is in Prestashop. For example South Africa, Norway and Turkey is all Zone 8 in DHL rates list. So I have to manually create the 8 zones that DHL uses for Express then manually change each end every country to be in the right zone...this will take ages....is that the only way or am I missing something here!? Then, when and if we wanna offer Global mail to I have no clue on how to solve it as it uses different zones for the countries then Express... Please advice! Thanks in advance!
  13. Hi guys, Have bought "Module Related Products Simple PS 1.5" and have contacted the developer in regards to this but thought to check here also and see if anyone can point me in the right direction. The module doesn't support by default to show if the product is new or not, and I would like to ad that but when trying to get it from $product.new it just says it is undefined. Although all others seem to work and return values. So I've temporary solved it with this: {if $product.date_add|date_format:"%y/%m/%d" >= strtotime('-7 days')|date_format:"%y/%m/%d"} To match the settings in admin for how long a product is considered new....but this is rather ugly(?). Any ideas? Thanks in advanced!
  • Create New...