Jump to content

phinq1910

Members
  • Posts

    123
  • Joined

  • Last visited

1 Follower

About phinq1910

  • Birthday 10/19/1988

Contact Methods

Profile Information

  • Location
    Hanoi
  • Interests
    Opencart & Prestashop Developer
  • First Name
    phi
  • Last Name
    nguyen

Recent Profile Visitors

998 profile views

phinq1910's Achievements

  1. You should put script to file.js then import it in controller. Something like this: $this->addJS(_MODULE_DIR_.'yourmodule/views/js/your-file-script.js');
  2. On presta 1.7, they have updated database for this. Try refer table ps_customization_* with column id_module. Read ps class and you can find yours.
  3. The hook ActionCartSave will run 2 times :). That hook added for both action add new and update cart on prestashop core. You can try solution: - Try update again your cart - Remove old cart then add insert new by manual - override or make new controll for that
  4. Did you got logs? Whats that? Did you defined "Belvg_Sample" object?
  5. Seems there are something wrong when you make it. Try read again development doc, it is easy to create your-own-module. Or share your module for check
  6. Just use hook actionCartSave and query sql for update your customization
  7. you can find in /classes/Cart.php (function getOrderTotal) you can override in /override/classes/Cart.php
  8. Myself is presta 1.7. You can check same with 1.6
  9. Try override function on class Context public function getDevice() { static $device = null; if ($device === null) { if ($this->isTablet()) { //$device = Context::DEVICE_TABLET; $device = Context::DEVICE_MOBILE; } elseif ($this->isMobile()) { $device = Context::DEVICE_MOBILE; } else { $device = Context::DEVICE_COMPUTER; } } return $device; }
  10. You have to turn off identity insert, insert the records then turn on identity insert back. Example: ALTER TABLE ps_product DROP PRIMARY KEY, MODIFY id_product INT PRIMARY KEY NOT NULL; --insert commmand here.... ALTER TABLE ps_product DROP PRIMARY KEY, MODIFY id_product INT AUTO_INCREMENT PRIMARY KEY NOT NULL;
×
×
  • Create New...