Jump to content

Martino00

Members
  • Posts

    74
  • Joined

  • Last visited

About Martino00

  • Birthday 12/19/1977

Profile Information

  • Location
    Belgium
  • Activity
    Developer

Recent Profile Visitors

708 profile views

Martino00's Achievements

Newbie

Newbie (1/14)

6

Reputation

2

Community Answers

  1. Dutch as standard and french. No other. Could it somewhere be a caching problem? PS: myb prestashop version is 1.6.0.23 At the moment i have disabled my cache in backoffice Also smartcache for CSS is off and smartcache for javascript is off.
  2. When i try to open my products in the backoffice of my prestashop 1.6.1.23 only the first information tab is displayed. I can't open any of the others. In the developer tool i receive 2 error help.js:79 Uncaught ReferenceError: iso_user is not defined at HTMLDocument.<anonymous> (help.js:79) at j (jquery-1.11.0.min.js:2) at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2) at Function.ready (jquery-1.11.0.min.js:2) at HTMLDocument.K (jquery-1.11.0.min.js:2) VM3476:183 Uncaught ReferenceError: default_language is not defined at eval (eval at <anonymous> (jquery-1.11.0.min.js:2), <anonymous>:183:22) at eval (<anonymous>) at jquery-1.11.0.min.js:2 at Function.globalEval (jquery-1.11.0.min.js:2) at e.fn.init.domManip (jquery-1.11.0.min.js:3) at e.fn.init.append (jquery-1.11.0.min.js:3) at e.fn.init.<anonymous> (jquery-1.11.0.min.js:3) at n.access (jquery-1.11.0.min.js:3) at e.fn.init.html (jquery-1.11.0.min.js:3) at Object.success (products.js:127) 2 days ago all was working good for the last year. And now suddenly? I also can't enable or disable the cache. Anyone a clue?
  3. When i try to open my products in backoffice only the first information tab is displayed. I can't open any of the others. In the developer tool i receive 2 error help.js:79 Uncaught ReferenceError: iso_user is not defined at HTMLDocument.<anonymous> (help.js:79) at j (jquery-1.11.0.min.js:2) at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2) at Function.ready (jquery-1.11.0.min.js:2) at HTMLDocument.K (jquery-1.11.0.min.js:2) VM3476:183 Uncaught ReferenceError: default_language is not defined at eval (eval at <anonymous> (jquery-1.11.0.min.js:2), <anonymous>:183:22) at eval (<anonymous>) at jquery-1.11.0.min.js:2 at Function.globalEval (jquery-1.11.0.min.js:2) at e.fn.init.domManip (jquery-1.11.0.min.js:3) at e.fn.init.append (jquery-1.11.0.min.js:3) at e.fn.init.<anonymous> (jquery-1.11.0.min.js:3) at n.access (jquery-1.11.0.min.js:3) at e.fn.init.html (jquery-1.11.0.min.js:3) at Object.success (products.js:127) 2 days ago all was working good for the last year. And now suddenly? I also can't enable or disable the cache. Anyone a clue?
  4. Na omschakeling naar Prestashop 1.6.1.23 en PHP 7.1 werkte mijn afbeeldingen tab in de producten niet meer. Alle andere tabs gaven geen probleem. Geen foutmelding via Prestashop, geen foutmelding via debugging Via de DevTools van chrome Foutmelding Uncaught SyntaxError: Unexpected token , at eval (<anonymous>) at jquery-1.11.0.min.js:2 Uit verder onderzoek bleek foutmelding te komen uit ajax.tpl file van adminxx\themes\default\template\controllers\products\helpers\uploader door de regel maxFileSize: {$post_max_size}, In php.ini stond mijn post_max_size=0 om deze te uit te schakelen. En in backoffice onder administratie/instellingen stond de maximale grootte voor een productafbeelding op 2 Dit gaf blijkbaar een conflictje. Max grootte moet kleiner zijn dan op de server. Maar Prestashop herkent blijkbaar de 0-waarde niet om deze uit te schakelen. En Prestashop aanvaardt ook niet de 0 waarde (0 is niet kleiner dan 0). Check van Prestashop 1.6.1.23 ivm de post_max_size lijkt dus wat fout te gaan. Dus een waarde ingegeven in php.ini bij post_max_size en een kleinere waarde ingegeven in de backoffice en afbeeldingen kwamen weer te voorschijn. Voila, voor iedereen die hetzelfde probleem zou tegenkomen. PS: Als je je Post_max_size van je php.ini aanpast moet je met deze limiet wel rekening houden als je wel eens ooit een groter bestand naar je webserver wil uploaden bijvoorbeeld een database import via je phpMyAdmin of dergelijke.
  5. Ik heb een module: Customer File Upload en deze lijkt de boosdoener te zijn. Als ik deze module disable dan is de order detail pagina terug in orde. Als ik de module weer enable, dan wordt de pagina opnieuw fout weergegeven. Het probleem lijkt dus duidelijk met deze module te maken te hebben. @Adeko.nl lijkt dus gelijkte hebben. Probleem met een module. Voor mij is deze case opgelost.
  6. Mijn browserconsole geeft enkel de volgende waarschuwing HTML1527: DOCTYPE wordt verwacht. U kunt overwegen een geldig HTML5-doctype toe te voegen: <!DOCTYPE html>. Mij lijkt het ook alsof de header van de detailpagina niet goed geladen wordt.
  7. Mijn gamification module was al disabled maar ik heb deze nu ook verwijderd. En nu zijn mijn waarden in de debugger plots wel veel beter. Maar de order details krijg ik nog steeds niet goed te zien.
  8. in de php error-log zie ik niets verschijnen. Heb de debugging aangezet en krijg dan volgend beeld op de pagina van de bestellingen. Als ik een order aanklik en als dus de onvolledige pagina wordt geladen dan is de debugging niet zichtbaar op die pagina. ik kan daar de _construct openklappen en de Ogone Module en dan krijg ik het volgende te zien Hoe kan ik dit interpreteren? Kan er hier iemand betekenisvolle info uithalen? Ziet iemand abnormale waarden? Op het eerste zicht bekijk ik dan vooral de rode cijfers.
  9. Ondertussen vond ik ook nog het volgende op github https://github.com/PrestaShop/PrestaShop/pull/7253 Lijkt me over hetzelfde te gaan. Maar zie nog geen oplossing beschikbaar. Mijn PrestaShop is trouwens ook overgeschakeld van PHP 5.2 naar 7.1 Misschien dat het dus daar iets mee te maken heeft.
  10. Sinds upgrade van PrestaShop naar 1.6.1.23 heb ik een probleem met de detailweergave van de bestellingen in de backoffice. Ik krijg de lijst met orders te zien. Maar als ik daarna op Bekijken klik dan krijg ik het volgende. De css lijkt dus verdwenen maar de pagina is ook onvolledig. Is er een probleem met de JQuery? Via Chrome developer krijg ik 3 errors te zien maar weet niet of die er eigenlijk iets mee te maken hebben. De melding is Uncaught ReferenceError: $ is not defined at index.php?controller=AdminOrders&id_order= ... Het probleem zit dan in de view.tpl file in de folder admin/themes/default/template/controllers/orders/helpers/view line 267 <script> $('#tabOrder a').click(function (e) { e.preventDefault() $(this).tab('show') }) </script> line 390 <script> $('#myTab a').click(function (e) { e.preventDefault() $(this).tab('show') }) </script> en line 777 <script> $('#tabAddresses a').click(function (e) { e.preventDefault() $(this).tab('show') }) </script> Ik heb deze view.tpl file al eens vervangen door een standaard van een nieuwe installatie maar zonder resultaat. In mijn locale PrestaShop heb ik net hetzelfde probleem dus daar kan ik vlot aanpassingen testen. Ik heb daar al eens de volledige admin folder vervangen, de controller folder, de js folder maar ook allemaal zonder resultaat. Alle andere backoffice pagina's zijn in orde. Caching ook al eens volledig uit gezet. Friendly url ook al eens uit en aan gezet. Heb nu geen idee maar waar ik nog iets kan nakijken. Heeft iemand van jullie een idee waar ik moet beginnen? Hoe kan ik bijvoorbeeld nakijken of de JQuery op deze pagina goed geladen is? Alle info welkom.
  11. Recently i upgraded to PrestaShop 1.6.1.23 In the backoffice i have a problem. When i click an order, the view is wrong like you can see here below. By using the chrome devtools i get three times an error Uncaught ReferenceError: $ is not defined at index.php?controller=AdminOrders&id_order= ... The problem seems to be in the view.tpl file in folder admin/themes/default/template/controllers/orders/helpers/view line 267 <script> $('#tabOrder a').click(function (e) { e.preventDefault() $(this).tab('show') }) </script> line 390 <script> $('#myTab a').click(function (e) { e.preventDefault() $(this).tab('show') }) </script> and line 777 <script> $('#tabAddresses a').click(function (e) { e.preventDefault() $(this).tab('show') }) </script> I understand that it's a JQuery problem. in my js/jquery folder there is jquery-1.11.0.min.js in my defines.inc.php i can see if (!defined('_PS_JQUERY_VERSION_')) { define('_PS_JQUERY_VERSION_', '1.11.0'); } and in my AdminController.php i have public function setMedia() { //Bootstrap $this->addCSS(__PS_BASE_URI__.$this->admin_webpath.'/themes/'.$this->bo_theme.'/css/'.$this->bo_css, 'all', 0); $this->addCSS(__PS_BASE_URI__.$this->admin_webpath.'/themes/'.$this->bo_theme.'/css/overrides.css', 'all', PHP_INT_MAX); $this->addJquery(); $this->addjQueryPlugin(array('scrollTo', 'alerts', 'chosen', 'autosize', 'fancybox' )); $this->addjQueryPlugin('growl', null, false); $this->addJqueryUI(array('ui.slider', 'ui.datepicker')); Media::addJsDef(array('host_mode' => (defined('_PS_HOST_MODE_') && _PS_HOST_MODE_))); $this->addJS(array( _PS_JS_DIR_.'admin.js?v='._PS_VERSION_, _PS_JS_DIR_.'tools.js?v='._PS_VERSION_, _PS_JS_DIR_.'jquery/plugins/timepicker/jquery-ui-timepicker-addon.js' )); so i think that the correct Jquery is loaded and that the loading order is correct also. I have also a AdminordersController.php in override. There i see class AdminOrdersController extends AdminOrdersControllerCore { /* * module: pproperties * date: 2018-12-21 13:56:17 * version: 2.35 */ public function setMedia() { parent::setMedia(); $js_files = array('js/admin/orders.js'); PSM::amendJS($this->context->controller->js_files, $js_files); } Anyone a clue how to display my orders again?
  12. It's working here for me now. After i saw the post https://www.prestashop.com/forums/topic/241062-negative-cart-rulesvoucher/ ) i also added an extra field in the database and i changed the public function getOrderTotal in the cart.php. Also i did the modifications i mentioned above. So - start with the modification in AdminCartRulesController.php - do the change in AdminGroupsController.php - do the change in CartRule.php. - Create in the table "ps_cart_rule" an extra field with the name "negative_value" (boollean, standard false) - add a cart rule with a negative value. - change the value for "negative_value" in the database to 1 (=true) - modify cart.php like here below change the public function getOrderTotal in cart.php Also check first if you have an override on the cart.php. If so you need to change the public function getOrderTotal in the override cart.php. change if ($cart_rule['obj']->reduction_percent > 0 || $cart_rule['obj']->reduction_amount > 0) { $order_total_discount += Tools::ps_round($cart_rule['obj']->getContextualValue($with_taxes, $virtual_context, CartRule::FILTER_ACTION_REDUCTION, $package, $use_cache), $compute_precision); } to if ($cart_rule['obj']->reduction_percent > 0 || $cart_rule['obj']->reduction_amount != 0) { if ($cart_rule['obj']->negative_value == true) { $order_total_discount -= Tools::ps_round($cart_rule['obj']->getContextualValue($with_taxes, $virtual_context, CartRule::FILTER_ACTION_REDUCTION, $package, $use_cache), 2); } else { $order_total_discount += Tools::ps_round($cart_rule['obj']->getContextualValue($with_taxes, $virtual_context, CartRule::FILTER_ACTION_REDUCTION, $package, $use_cache), 2); } } } Now it should work. It's working for me so now i can add for example an extra cost if a customer selects one kind of delivery. You can use all the options for the cart rules. I'm also able to give a discount and to add a fee. A discount of 30€ and a fee of 50€ is resulting in a fee of 20€. I now it's tricky because i modified the voucher function but i'm not using this. I also need to adapt the text because i use the voucher as a fee, it's better to change the "total discount value" text to something else for example total discount/fee. Hope someone else can use this.
  13. @metalsniper63 : Back in the office today but i still have no solution for this.
  14. in CartRule.php i changed the if // Discount (¤) if ((float)$this->reduction_amount > 0) { $prorata = 1; if (!is_null($package) && count($all_products)) { $total_products = $context->cart->getOrderTotal($use_tax, Cart::ONLY_PRODUCTS); if ($total_products) { $prorata = $context->cart->getOrderTotal($use_tax, Cart::ONLY_PRODUCTS, $package['products']) / $total_products; } } to if ((float)$this->reduction_amount != 0) { now the negative reduction value is visible in the cart but the value is not calcullated.
  15. i have started a new question for this. https://www.prestashop.com/forums/topic/644466-negative-value-for-cart-rule/
×
×
  • Create New...