Jump to content

brennino

Members
  • Posts

    15
  • Joined

  • Last visited

Profile Information

  • Activity
    Developer

brennino's Achievements

Newbie

Newbie (1/14)

0

Reputation

1

Community Answers

  1. Grazie per la risposta Tuk, il modulo che mi hai indicato è automatizzato per gestire l'iva in Europa (non ha alcun effetto sull'Italia). Come ho già spiegato, il cliente è italiano ma, per motivi particolari, ha l'esenzione iva pur essendo italiano; è quindi un caso particolare non gestito dal modulo European Vat Number. Parlando con l'amministrazione, i clienti italiani che hanno questa particolare esenzione, devono fornire una adeguata documentazione che l'attesti. Questo non può essere gestito automaticamente da un e-shop ma richiede un intervento umano. E' stato deciso quindi di far comunque pagare l'iva al cliente e a rimborsarla in un secondo momento dopo che avrà fornito adeguata documentazione in merito che attesti la veridicità dell'esenzione. A questo punto non ho più bisogno dell'implementazione ma potrebbe essere un'idea per un futuro modulo. Grazie Brennino
  2. Ciao a tutti, Ho creato uno shop con prestashop e, al primo ordine effettuato, ho scoperto che a quanto pare, una azienda italiana può avere l'IVA non imponibile (il cliente che ha acquistato mi ha scritto questa dicitura: l'azienda dichiara la non imponibilità IVA ai sensi del art. 8 bis del DPR 633/72) anche se ha indicato in fase di registrazione che l'azienda è una azienda italiana. Se così fosse, chiaramente solo le aziende italiane con questa particolarità devono poter comprare senza IVA ed avere il totale dell'acquisto senza IVA (come avviene per le aziende all'estero per via dell'inversione contabile e dell'autofattura). Ora vi chiedo: esiste un modulo o una implementazione che aggiunga una spunta in fase di registrazione o di checkout, che permetta all'utente di specificare l'esenzione iva e proseguire il checkout con il carrello con IVA pari a 0? Grazie Marco
  3. Hi all, since I update prestashop with "one-click-update" from version 1.6.0.5 to 1.6.0.9, when I go to module page and I click the button for search new updates the system reply me that everything is updated. I can't believe that there aren't module updates since 1 month. I check manually some modules and there are updates but my prestashop doesn't show them in the backend. Is there a possible bug with module updates? How to understand if prestashop is really trying to look for updates? How to solve this problem? Thanks Brennino
  4. Hi all, Same problem here, I have received a message from paypal and from Prestashop that advise me to upgrade the paypal module, I see there is an upgraded version 3.8.0 of the module on prestashop addons but there is no update button in prestashop backoffice. I have Prestashop version 1.6.0.9 and Paypal module version 3.7.2. It may be fortuity but since I upgrade Prestashop from version 1.6.0.5 to 1.6.0.9 I haven't received module updates any more. Perhaps a bug or something else? I need to update my Paypal module manually? Thanks for help and replies brennino
  5. Hi, I have a problem related to my prestashop 1.6.0.9 installation. I have european vat number module installed. My problematic case follows: - A company customer (with vat number) wants the products to be sent outside my country so he configure delivery address in France but he configure a invoice address from my country (Italy). - Prestashop not calculate vat during the checkout (because it follow rules of the delivery country), instead in our case we must follow the rules related to invoice address (calculating VAT because it's an italian company). Is this related to European VAT number module or a core behaviour? How this can be accomplished? Thanks Marco
  6. Hi, I'm on prestashop 1.6.0.5 and when a user have an error during user registration he must recompile everytime the password field. I solved this issue on template file, changing the code in authentication.tpl from: <input type="password" class="is_required validate form-control" data-validate="isPasswd" name="passwd" id="passwd" /> to <input type="password" class="is_required validate form-control" data-validate="isPasswd" id="passwd" name="passwd" value="{if isset($smarty.post.passwd)}{$smarty.post.passwd|stripslashes}{/if}" /> This code can be useful also for other people and if you use one page checkout remember to edit also order-opc-new-account.tpl . I want to know from prestashop developers why they do not keep password value inside the form. Is there a bug or something wrong in the code posted (for security reasons or other...) or is not a good idea the procedure to present the password in the field itself? Thanks Brennino
  7. Same problem here, I'm a little bit confused and I need the same functionality. Can someone explain if "european vat number" module automatically add the 0 vat rule for UE companies and where is the programming code or backend configuration that allow this? Thanks Brennino
  8. Hi, When one of my customer is a company and is inside European Union they must insert a vat number inside the address form. If the customer is a company and is outside European Union, vat number is not mandatory. To achieve this situation, searching on this forum, I put this code inside /controllers/front/AddressController.php : if ( isset($address->company)&& $address->company !="" ) { if((isset($_POST['vat_number']) && $_POST['vat_number']=='') || !isset($_POST['vat_number'])) $this->errors[] = Tools::displayError('VAT number required for companies'); } This allows me to make vat_number mandatory for all companies and not for privates. Now I have to know if the country selected by the user is inside the EU. I think to remove the vat_number field for non UE countries (using the prestashop's admin panel) and check inside the controller if the country has or not vat_number field inside its field list. How to get address field list for the country selected by the user? Thanks Brennino
  9. Hi, thanks for Prestashop, it's a good way to approach e-commerce world. I have a problem with "European Vat number" module. When I insert a wrong VAT the system reports me the error: "VAT number validation service unavailable" also if the webservice give a response to the system. I see that code inside vatnumber.php has an option "VAT number not found" on line 165 but it seems the condition not happen (perhaps EU webservice changed the response?) my module version is v1.7.2 and is up to date. I have also another question: Is there a way for setting module default_socket_timeout (line 156 of vatnumber.php) without changing the module code itself? The code report: @ini_set('default_socket_timeout', 2); but sometimes the EU respond after 10 seconds... so I changed with @ini_set('default_socket_timeout', 15); The problem is that if there will be an upgrade to the module I lose my changes... and it was easy to forget to rechange that line of code. Thanks for replies Brennino
  10. Hi, I update the core module "Image slider for your homepage" to version v1.3.7 and its functionality became broken. After a little bit analysis I have found that the problem was that the updated version of the module aspect to upload images inside the directory: /modules/homeslider/images but the previous version of the module put the images inside the directory: /modules/homeslider/img Renaming the directory /modules/homeslider/img to /modules/homeslider/images makes everything work again. I'm posting this message with the solution for everyone has the same problem and for module developer to solve the issue. I'm new to prestashop but it sounds me a little strange that updates breaks the system so much. I find a similar situations also after other module updates. I'm in a development stage for now but I advise shop owner to test updates under a dev site, make backups and after that update a production site or even transfer the dev site to production. Best regards Brennino
  11. To all that have my issue, it was solved updating the module theme configurator to version: 0.8 Brennino
  12. Thanks for the reply, ok, I think I get what you mean but let me give you an example for make me more understandable. I have follow this steps: - I create my custom module and create my hook following the steps in this tutorial. - I place my new hook on a tpl file. - I edit blocksearch.php (because I want to show the quick search in my new hook) public function install() { if (!parent::install() || !$this->registerHook('top') || !$this->registerHook('header') || !$this->registerHook('displayMobileTopSiteMap') || !$this->registerHook('displayCustomTopHook')) return false; return true; } public function hookDisplayCustomTopHook($params) { return $this->hookLeftColumn($params); } - I transplant the "quick search" module under my new hook and everything works. Now assume this situation: - There is an update of the core quick search module - I update the module I suppose the quick search will not appear anymore under my custom hook, because the code revert to a version that doesn't know my hook. My question is: Is there a way for avoid to hack blocksearch.php so that I havn't to patch the core code everytime I update "quick search module"? The better way I think that can be to tell prestashop inside my custom module (that has the new hook) and not inside quicksearch: Hey, inside this hook you can place also quick search! I came from a Drupal behaviour where I define regions and I can place the code I want inside that regions without braking the system after updates. Thanks Marco
  13. Hi, I have successfully created a new hook that allow me to place my modules inside header.tpl. I can also see my new hook in the module->positions of the backend. My problem is that I want to place blockcart and blocksearch inside my new hook and I get the error: "This module cannot be transplanted to this hook." This is the behaviour that I aspect from prestashop because not all modules can be transplanted in all hook, especially if the hook is a custom one and the module can't know it. I think that one way to place cart and search block inside a custom hook is to change the module code and register my new hook. This is bad for module update reasons because both search and cart are core modules. How to achieve this without touching core code? Thanks Marco
  14. Hi, after I update the module "theme configurator" to version 0.7 the banners on the right part of the home page result broken for some browser sizes. This is how to replicate: - Install prestashop - Open home page, resize the the browser and the two banners on the right part of the slider resize as aspected. - Update the module "theme configurator" - Resize the browser and the two banners not work anymore for same browser sizes This is how to solve: - copy the module hook.css file from a clean installation of prestashop to the directory of the updated "theme configurator" module. - The banners will work again. Question: - How to make an override of the hook.css in my theme folder for avoid touching core files? I create a directory called: htdocs/themes/mytheme/css/modules/themeconfigurator and I put the new hook.css file but prestashop always take in the homepage this file "modules/themeconfigurator/css/hooks.css" and not the override. Thanks for replies. Marco
×
×
  • Create New...