Jump to content

zulien

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by zulien

  1. I just found this old topic - problem with missing check for quantities during payment validation is still present even in current PrestaShop version 1.6.0.14. Better approach as editing each one module is changing function validateOrder in abstract class PaymentModule. 1. Create file /override/classes/PaymentModule.php 2. Copy and paste there this: <?php abstract class PaymentModule extends PaymentModuleCore { public function validateOrder($id_cart, $id_order_state, $amount_paid, $payment_method = 'Unknown', $message = null, $extra_vars = array(), $currency_special = null, $dont_touch_amount = false, $secure_key = false, Shop $shop = null) { if (!isset($this->context)) $this->context = Context::getContext(); $this->context->cart = new Cart($id_cart); if (!$this->context->cart->checkQuantities()){ Tools::redirect(__PS_BASE_URI__.'order.php?step=0'); } return parent::validateOrder($id_cart, $id_order_state, $amount_paid, $payment_method, $message, $extra_vars, $currency_special, $dont_touch_amount, $secure_key, $shop); } } 3. Delete file /cache/class_index.php (it will be regenerated with reference on this new overridden class) 4. Make sure you have enabled overridden classes in your /admin interface/advanced parameters/performance - second section "Debug mode", option Disable all overrides
  2. Hi, I am Price Hide Pro author. Tanks for letting me know about this issue - I really haven't test such a scenario. Problem was just solved and module updated. Patched version will be available on addons in a few days. ;-)
  3. Hi, you would like to transform whole page to full screen mode or just header? If whole page - then maybe it will be less effort to look for some ready to use fullscreen theme. Adapting involves knowledge of css and a lot of changes. Anyway at first go to /admin /advanced parameters/performance and disable cache (after you are done don't forget to enable it again). Then open file /themes/thgr00027/css/global.css - if you want to change just header dimensions then look for line 55. and change value width to width:100%; Then maybe play a little also with line 594 - margins top and left to position top logo nicer.
  4. Maybe there were a change in error reporting settings on your web server recently. If it is not affecting functionality of your site maybe the fastest (not the best) solution would be just to suspend printed errors. Check file /config/config.inc.php = line 29. and change 'display_errors' option to off. This should suspend printed errors. The best would be to contact the developer who add this additional field and ask for support. If this field is not defined for Customer class I doubt it is working as suppose to.
  5. Are you using any additional modules? Is this happening on default theme or are you using custom one? As far as I know - property "businessid" is not part of the class Customer. It would be helpful if you can provide more info also what is the version of your presta.
×
×
  • Create New...