Jump to content

JazZ7

Members
  • Posts

    18
  • Joined

  • Last visited

Profile Information

  • First Name
    Adrien
  • Last Name
    Leber

Recent Profile Visitors

231 profile views

JazZ7's Achievements

Newbie

Newbie (1/14)

  • One Year In Rare
  • Week One Done Rare
  • One Month Later Rare

Recent Badges

2

Reputation

  1. Pour le cas de l'Irlande du Nord, il suffirait de créer un nouveau pays. De cette façon, les clients habitant en Irlande du Nord sélectionnent ce nouveau pays lors de la création de leur adresse et ils paierons la TVA normalement. Pour la devise, afin que le module puisse faire la conversion, il est important que la GBP soit installée. Si vous ne l'utilisez pas, Lynda, ça n'est pas grave. Elle peut rester désactivée.
  2. Hello, Nous sommes en train de travailler sur un module pour pallier à la situation. Beaucoup ont été pris au dépourvu. Le module est stable sur PS 1.7. Pour PS 1.6, nous rencontrons quelques difficultés au niveau du rafraichissement du panier. Cela dit, la TVA est bien gérée et le prix final de la commande est correct. Le problème est que comme le panier ne se rafraichi pas comme prévu, cela peut porter le client à confusion. Nous continuons à chercher une solution. Voici le lien vers la page produit du module : https://www.team-ever.com/prestashop-module-de-regles-tva-brexit/ La validation du module sur Prestashop addons est en cours pour PS 1.7. Pour PS 1.6, il faudra encore un peu de patience.
  3. Salut, Merci pour ta réponse. Mais on aimerait rester sur le module et ne pas devoir toucher au thème. La solution qui a été implémentée est une surcharge JS de la modal du module ps_shopping_cart. Merci encore.
  4. Hello, Same problem here. Did you find a solution ? Thanks.
  5. Hello, For ModuleAdminController, you could use predefined success messages or add custom success messages. For error messages, use the known `$this->errors` array. In AdminController, there are predefined success messages set in the constructor. So, from your ModuleAdminController, you should be able to use them or to add custom value in the array : AdminController.php <?php //... constructor : $this->_conf = array( 1 => $this->l('Successful deletion'), 2 => $this->l('The selection has been successfully deleted.'), 3 => $this->l('Successful creation'), 4 => $this->l('Successful update'), 5 => $this->l('The status has been successfully updated.'), 6 => $this->l('The settings have been successfully updated.'), 7 => $this->l('The image was successfully deleted.'), 8 => $this->l('The module was successfully downloaded.'), 9 => $this->l('The thumbnails were successfully regenerated.'), 10 => $this->l('The message was successfully sent to the customer.'), 11 => $this->l('Comment successfully added'), 12 => $this->l('Module(s) installed successfully.'), 13 => $this->l('Module(s) uninstalled successfully.'), 14 => $this->l('The translation was successfully copied.'), 15 => $this->l('The translations have been successfully added.'), 16 => $this->l('The module transplanted successfully to the hook.'), 17 => $this->l('The module was successfully removed from the hook.'), 18 => $this->l('Successful upload'), 19 => $this->l('Duplication was completed successfully.'), 20 => $this->l('The translation was added successfully, but the language has not been created.'), 21 => $this->l('Module reset successfully.'), 22 => $this->l('Module deleted successfully.'), 23 => $this->l('Localization pack imported successfully.'), 24 => $this->l('Localization pack imported successfully.'), 25 => $this->l('The selected images have successfully been moved.'), 26 => $this->l('Your cover image selection has been saved.'), 27 => $this->l('The image\'s shop association has been modified.'), 28 => $this->l('A zone has been assigned to the selection successfully.'), 29 => $this->l('Successful upgrade'), 30 => $this->l('A partial refund was successfully created.'), 31 => $this->l('The discount was successfully generated.'), 32 => $this->l('Successfully signed in to PrestaShop Addons') ); And in your module admin controller : <?php //... constructor : parent::__construct(); // add custom success message $this->_conf[33] = $this->l('Awesome success message !'); //... redirect // use custom message $this->redirectAdmin(...'&conf=33'...); // or use predefined one $this->redirectAdmin(...'&conf=4'...); Hope it helps.
  6. Hello, même problème ici ce matin. La désactivation du module PayGreen corrige le problème. Est-ce un défaut dans la configuration ? Une mise à jour à faire ?
  7. Salut Fox, Si dans ton controller, tu overrides la fonction `postProcess()` Assure toi que la fonction parente est correctement appelée au début de ta fonction et pouvoir ainsi bénéficier de ses fonctionnalités. <? public function postProcess() { parent::postProcess(); ... } Enjoy ! = )
  8. Hello, I need some help to store customers ids from my module using multiple checkboxes and helperForm. I followed the Doc from PrestaShop (http://doc.prestashop.com/display/PS15/HelperForm#HelperForm-Checkbox) but when the form is submit, the value of the $_POST is always False. The point is to store selected customers ids in 'MY_MODULE_CUSTOMERS'. Here is the code : Array : $custs = Customer::getCustomers();foreach ($custs as $key => $value) { $options[] = array( 'id_customer' => (int)$value['id_customer'], 'infos' => $value['firstname'].' '.$value['lastname'].' | '.$value['email'] );} Input : 'input' => array( array( 'type' => 'checkbox', 'label' => $this->l('Customers'), 'desc' => $this->l('Select the Customers.'), 'name' => 'MY_MODULE_CUSTOMERS', 'values' => array( 'query' => $options, 'id' => 'id_customer', 'name' => 'infos', ), ),) Thank you for your help.
  9. Hello wackyracer8 Please see that link at last comment for the solution : http://stackoverflow.com/questions/36362937/prestashop-set-catalog-mode-on-off-if-user-unlogged-logged You will just have to set a new condition based on the open/close time of your shop. <?php // placed in /override/classes/Configuration.php class Configuration extends ConfigurationCore { public static function get($key, $id_lang = null, $id_shop_group = null, $id_shop = null) { if (defined('_PS_DO_NOT_LOAD_CONFIGURATION_') && _PS_DO_NOT_LOAD_CONFIGURATION_) { return false; } // If conf if not initialized, try manual query if (!isset(self::$_cache[self::$definition['table']])) { Configuration::loadConfiguration(); if (!self::$_cache[self::$definition['table']]) { return Db::getInstance()->getValue('SELECT `value` FROM `'._DB_PREFIX_.bqSQL(self::$definition['table']).'` WHERE `name` = "'.pSQL($key).'"'); } } $id_lang = (int)$id_lang; if ($id_shop === null || !Shop::isFeatureActive()) { $id_shop = Shop::getContextShopID(true); } if ($id_shop_group === null || !Shop::isFeatureActive()) { $id_shop_group = Shop::getContextShopGroupID(true); } if (!isset(self::$_cache[self::$definition['table']][$id_lang])) { $id_lang = 0; } if ($id_shop && Configuration::hasKey($key, $id_lang, null, $id_shop)) { if($key == 'PS_CATALOG_MODE') // Add your time condition { return !Context::getContext()->customer->isLogged() || self::$_cache[self::$definition['table']][$id_lang]['shop'][$id_shop][$key]; } else { return self::$_cache[self::$definition['table']][$id_lang]['shop'][$id_shop][$key]; } } elseif ($id_shop_group && Configuration::hasKey($key, $id_lang, $id_shop_group)) { if($key == 'PS_CATALOG_MODE') // Add your time condition { return !Context::getContext()->customer->isLogged() || self::$_cache[self::$definition['table']][$id_lang]['group'][$id_shop_group][$key]; } else { return self::$_cache[self::$definition['table']][$id_lang]['group'][$id_shop_group][$key]; } } elseif (Configuration::hasKey($key, $id_lang)) { if($key == 'PS_CATALOG_MODE') // Add your time condition { return !Context::getContext()->customer->isLogged() || self::$_cache[self::$definition['table']][$id_lang]['global'][$key]; } else { return self::$_cache[self::$definition['table']][$id_lang]['global'][$key]; } } return false; } } Hope it helps
  10. Hello, I'm working on a prestashop module to set the catalog mode ON or OFF if user is unlogged or logged. Works great but got a problem. I don't want unlogged users see prices at all but with this solution, when unlogged user load the page, the catalog mod turn ON, but he can see prices (has to reload to hide prices) So, first load set catalog mode ON and second load display real catalog mode. I found a js script to reload automatically the page to take effect with the new mode but obviously, loading time of the page is two times longer. Here is the function : public function hookHeader() { $logged = $this->context->customer->isLogged(); if (!$logged) { Configuration::updateValue('PS_CATALOG_MODE', true); } else { Configuration::updateValue('PS_CATALOG_MODE', false); } // reload the page once more echo ' <script type="text/javascript"> (function() { if( window.localStorage ) { if( !localStorage.getItem( "firstLoad" ) ) { localStorage[ "firstLoad" ] = true; window.location.reload(); } else { localStorage.removeItem( "firstLoad" ); } } })(); </script> '; } Hope somebody could help me with this. Thank you.
  11. Up please. PS: Je sais pas si je suis dans la bonne section mais ça me semblait approprié. N'hésitez pas à m'informer si j'suis à coté de la plaque. Merci.
  12. Bonjour la communauté, Je cherche un moyen de lancer un script d'identification depuis la page restricted-country.tpl. En effet, la demande est d'activer la géolocalisation afin de bloquer l'accès au site mais de pouvoir s'y connecter avec les bons identifiants. Une fois les identifiants validés par le script, celui-ci ajoute l'ip de l'utilisateur à la whitelist et il a maintenant accès au site. Le formulaire, l'appel Ajax, le script d'identification... tout fonctionne parfaitement... du moment que la géolocalisation n'est pas activée. Une fois activée, le formulaire ne peut plus accèder au script (erreur 503) ce qui est logique car l'accès est maintenant restreint. Voilà où j'en suis et où j'ai besoin d'aide afin de pouvoir compléter la procédure. Comment faire pour contourner la 503 et laisser l'utilisateur accèder à ce script afin de pouvoir s'identifier? Merci d'avance.
  13. Hello, I'd like to add the product's manufacturer name in the new order e-mail. Customer side and admin side. So, I'd tried to edit the /mails/fr/order_conf_product_list.tpl file to add a new cell with {$product['manufacturer_name']} but with no chance. I already tried severals tips from the forum like the following but the cell stayed empty... https://www.prestashop.com/forums/topic/339273-mailalerts-how-to-add-manufacturer-reference Any help will be appreciate. Thank you very much.
  14. Bonjour, Je travaille sur un module de calcule de frais de port suivant le code postale. J'ai donc créé un nouveau CarrierModule. Je suis coincé au niveau du controller. Comme dans tout autre module, j'ai créé le fichier /mymod/controller/admin/AdminMymodController.php et à l'intérieur, la class correspondante c-à-d: class AdminEvershippingController extends AdminCarriersController {} Mais celle-ci ne fonctionne pas. Avec un module classique, le formulaire créé dans le controller serait affiché lors de la configuration du module ou après son installation mais dans ce cas, il n'affiche rien si ce n'est la confirmation de l'installation. Merci d'avance pour votre aide.
×
×
  • Create New...