Jump to content

heyho

Members
  • Posts

    62
  • Joined

  • Last visited

Profile Information

  • Activity
    Freelancer

Recent Profile Visitors

5,894,380 profile views

heyho's Achievements

  1. Bei nur einer Sprache und einem Steuersatz: {* {$cart.minimalPurchaseRequired} *} {assign var="c" value="`$cart.minimalPurchase*1.2`"} Mindestbestellwert für diese Bestellung ist {$c|round:0} € (inkl. MwSt.). Aktuell beträgt er nur {$cart.totals.total_including_tax.value} € (inkl. MwSt.). Rundung möglicherweisen nicht ganz optimal,... wayyyn... PS 8: themes/xxxxx/templates/checkout/_partials/cart-detailed-actions.tpl
  2. Prestashop 1.7.7 To use different E-Mail Templates by Group, Carrier, User, or what ever: Use the Hook sendMailAlterTemplateVars in your Module... Dont forget to create the templates in /themes/xxxx/mails/xx/order_confsomethingother.html $this->registerHook('actionEmailSendBefore'); public function hookActionEmailSendBefore(&$params) { if($params["template"] == "order_conf") { # or bankwire or ,..... $reference = $params['templateVars']['{order_name}']; $sql = 'SELECT * FROM '._DB_PREFIX_.'orders WHERE reference = "'.$reference.'" Limit 1 '; $orderRow = Db::getInstance()->executeS($sql); if (!empty($orderRow)) { $id_order = reset($orderRow)['id_order']; $order = new Order ($id_order); if($order->id_carrier == "36") { $params['template'] = "order_confsomethingother"; } /* For User Groups you can use something like this: $customer = new Customer ($order->id_customer); if($customer->id_group == "36") { $params['template'] = "order_confsomethingother2222"; } */ } # do something more... if (is_array($params['bcc'])) { $params['bcc'][] = "[email protected]"; } else { $params['bcc'] = ["[email protected]"]; } } } If you want to add variables, use: sendMailAlterTemplateVars
  3. Used in 1.7.7 Only send order_conf to specific email: // $this->registerHook('actionEmailSendBefore'); public function hookActionEmailSendBefore(&$param) { if($param["template"] == "order_conf") { # or bankwire or ,..... if (is_array($param['bcc'])) { $param['bcc'][] = "[email protected]"; } else { $param['bcc'] = ["[email protected]"]; } } }
  4. Create a Module and add the Hook "sendMailAlterTemplateVars": Here you can add variables to all E-Mail-Templates like this: /* * $this->registerHook('sendMailAlterTemplateVars'); */ /** * @param $param * @return string */ public function hooksendMailAlterTemplateVars($params) { $context = Context::getContext(); if ($params['template'] == 'order_conf') { $reference = $params['template_vars']['{order_name}']; $sql = 'SELECT * FROM '._DB_PREFIX_.'orders WHERE reference = "'.$reference.'" Limit 1 '; $orderRow = Db::getInstance()->executeS($sql); if (!empty($orderRow)) { $id_order = reset($orderRow)['id_order']; $order = new Order ($id_order ); $params['template_vars']['{firstmessage}'] = "<strong>Nachricht</strong><br>".trim($order->getFirstMessage())?:''; $params['template_vars']['{id_order}'] = $id_order ; $id_customer = reset($orderRow)['id_customer']; $customer = new Customer ($id_customer ); $gender = new Gender ($customer->id_gender ); $params['template_vars']['{genderByLang}'] = $gender->name[$context->language->id]?:""; /* * Custom Text only on specific paymenttype * $order->module == "stripe_official" **/ if($order->module == "ps_wirepayment") { $params['template_vars']['{wirepaymentSpecialText}'] = "<p>Some Information about payment...</p>"; } } } if ($params['template'] == 'bankwire') { // do something... } } In your Mail-Template: {id_order}<br> {genderByLang}<br> <div> {firstmessage} </div> {wirepaymentSpecialText}
  5. As naytekin wrote: rename the folder var/cache to var/something and reload the page!
  6. Hallo! Ich habe jetzt bereits einige Systeme (1.6 auf 1.7 und auch 1.7.* auf 1.7*) mit dem 1 Click UPGRADE versucht und jedesmal damit Probleme gehabt. Versucht habe ich es mit allen möglichen Einstellungen: PHP von 5.6 bis 7.2 oder Step by Step mit den PS Versionen (also zuerst 1.7.2 dann auf 1.7.3 usw...) und auf 3 verschiedenen Servern. Es waren auch einfache Seiten mit dem Prestashop-Theme dabei und gekaufte Themes. Module deaktiviert und aktiviert... Fehlermeldungen hab ich bereits unzählige verschiedene gesehen: [INTERNAL] .../vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerInterface.php line 25 - Interface 'Psr\Container\ContainerInterface' not found [Ajax / Server Error for action upgradeDb] textStatus: "error " errorThrown:"Internal Server Error " jqXHR: " " ... ... ... MEINE FRAGE: Ist durch folgende Aktionen alles erledigt? Alle File der neuen Version per FTP hochladen (alte überschreiben). Upgrade Funktion ausführen: http://website.com/install/upgrade/upgrade.php Wenn das alles ist, plage ich mich doch nicht mehr mit dem 1Click Modul herum. lg Heyho
  7. I forgot to buy SSL on the new Domain so i had to disable SSL in the Database temporary: UPDATE `ps_configuration` SET `value` = 0 WHERE `name` = 'PS_SSL_ENABLED'; UPDATE `ps_configuration` SET `value` = 0 WHERE `name` = 'PS_SSL_ENABLED_EVERYWHERE';
  8. Eine Lösung für PS 1.7 gibt es hier: https://www.prestashop.com/forums/topic/639256-minimum-order-value-prestashop-1724/?do=findComment&comment=2676997
  9. Da ich das Problem auch hatte hier meine Lösung: Mit dem Modul delivery time for combination kann man jeder Variante oder auch jedem Produkt eine eigene Lieferzeit geben.
  10. Add an individual delivery time to every combination of a product. With prestashop and also the module 'ps_legalcompliance' it is not possible to have specific delivery times for combinations. Here is a module where it is possible to have different delivery times for the products and its combinations. You can also define default values. https://addons.prestashop.com/en/combinaisons-customization/40376-delivery-time-for-combinations.html Example: Shirt Size S: Delivery time 1-2 days Shirt Size L: Delivery time 3-4 days Shirt Size XXL: Delivery time 7-8 days Features Predefined standard delivery time for stored and non-stocked products. Individual delivery times for every combination of a product. Add an additional short text after the delivery time. Add an additional long text (also HTML) after the delivery time. If necessary, you can place the delivery time anywhere on the product page with a HOOK. Multilanguage. Module: https://addons.prestashop.com/en/combinaisons-customization/40376-delivery-time-for-combinations.html Demo-Video: https://www.youtube.com/watch?v=TijNvS8wPnQ
  11. I added "allow_url_fopen = on" to the php.ini [user.ini from hoster] and it works...
  12. I solved the problem by adding the locale "en-US" in the database table ps_lang. Check your database ps_lang if there are all fields!!
  13. Maybe this helps you... https://www.prestashop.com/forums/topic/667084-very-slow-product-list-in-back-office/?tab=comments#comment-2906672 http://forge.prestashop.com/browse/BOOM-3650
  14. Here is a working solution: https://www.sunnytoo.com/8222/how-to-set-the-category-tree-links-module-to-expand-the-brunch-containing-current-category-in-prestashop-1-7
×
×
  • Create New...