Jump to content

serralta

Members
  • Posts

    7
  • Joined

  • Last visited

Profile Information

  • Location
    Barcelona
  • Activity
    Developer

Recent Profile Visitors

2,182,146 profile views

serralta's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi everybody. I am trying to develop an easy module. It is my first one, so it may be some stupid problem but the fact is I'm stuck with it from some days ago. I have a simple module that has a override/classes/Product.php class. It adds a simple single method. When I install it, all is fine. The overriden Product class is generated. The problem is when I do some changes and I try to reinstall it (reseting it or uninstalling and installing, again, the result is the same). The method I added to the overriden class is not deleted completly when I uninstall the module. Only the name is removed but not the function body. This causes a Fatal error: Uncaught exception 'ReflectionException' with message 'Class ProductOverrideOriginal_remove539defbda2a6c does not exist' I paste the generated code. When I install the module for first time I got: class Product extends ProductCore { public function getLocalizationImage(Context $context = null) { return true; } } When I reinstall it, or uninstall it the classe is left as follows: class Product extends ProductCore { { return true; } } Is it normal? What am I missing? The same problem if I do a second module that adds a DIFFERENT function to the Produt class. The second module I install has no name in its function declarations. Any help would be appreciate. Thanks!
  2. Hi there! I have used Prestashop always like an user and just customizing small things. Now I need to customize the core and not just the theme or apparence. I need to change the order form. Basically the step 3 will have three delivery options and, depending on the option choosen, the fourth step will ask for different information. My question is... How would do try to do this job? I am thinkg in two possibilities. Creating a module that will act as order form (even I don't know if it is possible) or override core classes to add this logic. Which option do you think is the best one? If none, how would you do it? Thanks!
  3. Hi there. I was wondering if it is possible to offer a gift to be selected when some conditions are covered. I found the option to give one particular gift set by myself, but I would like to give the chance to select one gift from a list of "possible gifts". If it is not developed, where is the place to propose such enchancement? Thanks in advance
  4. Well. I got the raw log: 91.240.109.125 - - [19/Sep/2013:06:11:25 +0200] "GET /shop/img/logo.jpg HTTP/1.1" 404 1089 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0" 91.240.109.110 - - [19/Sep/2013:06:11:26 +0200] "GET /shop/img/logo.jpg HTTP/1.1" 302 5 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0" 91.240.109.84 - - [19/Sep/2013:06:11:27 +0200] "GET /shop/img/logo.jpg?controller=404 HTTP/1.1" 404 27069 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0" 91.240.109.95 - - [19/Sep/2013:06:11:27 +0200] "GET /shop/img/logo.png HTTP/1.1" 404 1089 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0" 91.240.109.75 - - [19/Sep/2013:06:11:27 +0200] "GET /shop/img/logo.png HTTP/1.1" 302 5 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0" 91.240.109.109 - - [19/Sep/2013:06:11:28 +0200] "GET /shop/img/logo.png?controller=404 HTTP/1.1" 404 27069 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0" 91.240.109.125 - - [19/Sep/2013:06:11:28 +0200] "GET /shop/img/logo-1.jpg HTTP/1.1" 404 1089 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0" 91.240.109.113 - - [19/Sep/2013:06:11:28 +0200] "GET /shop/img/logo-1.jpg HTTP/1.1" 302 5 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0" 91.240.109.78 - - [19/Sep/2013:06:11:29 +0200] "GET /shop/img/logo-1.jpg?controller=404 HTTP/1.1" 404 27069 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0" It's curious. They are looking for logos in a path I had the web while it was under testing. (/shop). Now it is moved to /. So they don't fins anything at all. I don't remember but probably I registered the web during the installation proceess and they visit it for having like a directory o stats about who or how many people use prestashop. What do you think? May it have sense? I don't know where to notify the change of URL and if I should do it... Cheers
  5. Hi Patron! Well, I don't have any cron update. Anyway, I don't understand why the connection is comming from "out" to my site. I mean, to check updated makes more sense that my site checks some service over the net than some service in the net connects to my page. Don't you think so?
  6. Yes. It is likely to be a bot, but I was wondering looking for what. The modules used? If I paid the theme I use? I don't have raw access log right now but I will try to get the next days logs. I let you know. But meanwhile, if already someone know the answer it will be kind if s/he shares it. Thanks!
  7. Hi everyone. Every day i got some visits from France from an IP very similar to public www prestashop ip. I guess they are visits from PS team. I'm a bit curious to know what are these visits (probably from a bot for the amount of data an pages surfed) for. Some idea? Thanks!
×
×
  • Create New...