Jump to content

flobrflo

Members
  • Posts

    95
  • Joined

  • Last visited

Profile Information

  • Location
    Marseille
  • Activity
    Developer

Recent Profile Visitors

191,737 profile views

flobrflo's Achievements

Newbie

Newbie (1/14)

3

Reputation

  1. Hello es-tu en mode debug? si oui, a tu une erreure qui apparait (et qui nous donnerai un début de piste ^^)
  2. Hello, Il s'agit d'un problème html ici, le nom de la couleur qui s'affiche est le titre de l'image (c'est automatique). Le seul moyen de faire aller plus vite cette apparition et d'ajouter une fonction javascript au hover du carré de couleur pour afficher une infos bulle.
  3. Salut, désolé pour le temps de réponse. Je n'ai pas encore fait de multi-boutique, mais la doc pourra répondre à ta question niveau arborescence de tes sites: http://doc.prestashop.com/display/PS16/Activer+le+multiboutique
  4. Dans la théorie il n'y a pas de limite aux nombres de boutique. Maintenant...1000 boutiques correspondraient a 1000 sites différents se rapportant à la même base de données. Outre le fait que cela fasse beaucoup de donnée en base de donnée, il faut pouvoir gérer le trafic que vont générer ces sites (vous avez des serveurs très solides j'espère ^^) Il faut bien comprendre qu'un presta "multi boutique" correspond à plusieurs site différents s'administrant sur un seul "parent". Il faut alors s'interroger sur la pertinence de 1000 boutiques différentes (cela fait tout de même beaucoup de travail ^^)
  5. you got the alert class: <div class="alert alert-danger"></div> // alert-info // alert-warning in js, presta may got a function but i don't know it
  6. ?? your variable errors is correct... you have to correctly display $errors in the tpl... Edit : check smarty documentation
  7. $errors[] = $module->l('Invalid token', 'mywishlist'); //referer to fr.php or en.php (or any other language by default) in blockwishlist module It's not a problem if you don't have translation in your module. Prestashop just let the message like it was write.
  8. i mean : $errors[] = $this->module->l('You must specify some request details.', 'display'); presta will search the translation for your message in a "display" liste for your current language. like if you write into smarty: {l="You must specify some request details." mod="display"}
  9. okay. So, there is no error =( (with $errors) $errors[] = $this->module->l('You must specify some request details.', 'display'); // the traduction 'You must specify some request details' is in the translation category display? //yes => translate the message //no => keep the original you probably shoul add "}" here : else { Tools::redirect('index.php?controller=authentication&back='.urlencode($this->context->link->getModuleLink('blockquote', 'display'))); //} if you don't, the module will redirect to the next page and don't call your template display
  10. Oh okay, have you got any error? if not, do some verification: 1) Check if you assign to smarty correctly your errors: $this->context->smarty->assign(array( 'errors' => $errors, ); //like you write it few post ago ^^ 2) Check in your tpl if you correctly use the $errors : it's an array and smarty can't display an array edit: so you have to encode it =) {$errors|@json_encode} 3) Check in php if the message is correctly added to errors: //the last chance ^^ $errors[] = $this->module->l('You must specify some request details.', 'display'); //display error d($errors);
  11. mmhh.. if i understand your problem: 1)In your module: //first step : $this->context->custom_error = $this->module->l('You must specify some request details.', 'display'); Tools::Redirect ... 2) In your Front: // sec. step $custom_error = $this->context->custom_error; /* you can display it with: p($cutom_error) or echo '<div class="alert alert-danger">'.$custom_error.'</div>'; or anyelse you want */
  12. If you have to redirect, use context to keep the error. something like this before redirect : $this->context->Custom_error = $this->errors; after you're supposed able to get error with: p($this->context->Custom_error);
×
×
  • Create New...