Jump to content

joelabine

Members
  • Posts

    10
  • Joined

  • Last visited

joelabine's Achievements

Newbie

Newbie (1/14)

  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

0

Reputation

  1. Hi everyone, we are using the version 1.6.1.19. I want to customize the "$minimal_quantity" value. Below is a portion of the Cart.php updateQty() function (function starting at line 911). At the bottom of the code there is a call to a hook : actionBeforeCartUpdateQty. What I would like to do is have a module hoked to that call (actionBeforeCartUpdateQty) and override the $minimal_quantity. Is this something doable since the $minimal_quantity is not passed to the hook? /* If we have a product combination, the minimal quantity is set with the one of this combination */ if (!empty($id_product_attribute)) { $minimal_quantity = (int)Attribute::getAttributeMinimalQty($id_product_attribute); } else { $minimal_quantity = (int)$product->minimal_quantity; } if (!Validate::isLoadedObject($product)) { die(Tools::displayError()); } if (isset(self::$_nbProducts[$this->id])) { unset(self::$_nbProducts[$this->id]); } if (isset(self::$_totalWeight[$this->id])) { unset(self::$_totalWeight[$this->id]); } Hook::exec('actionBeforeCartUpdateQty', array( 'cart' => $this, 'product' => $product, 'id_product_attribute' => $id_product_attribute, 'id_customization' => $id_customization, 'quantity' => $quantity, 'operator' => $operator, 'id_address_delivery' => $id_address_delivery, 'shop' => $shop, 'auto_add_cart_rule' => $auto_add_cart_rule, )); Or maybe the only way is by overriding the function? Thanks!!
  2. Hi All, We just upgrade from 1.4 to 1.6. We are updating our product database through PS webservices. In 1.4 updating about 2500 products was taking about 7-8 minutes. In 1.6 in 7-8 minutes we can barely update 200 products. So our upgrade script timeout way before we can update all our 2500 products. Anyone had the same issue? What can I do about it? Thanks.
  3. Hi, We are upgrading from version 1.4.10.0 to 1.6.0.14 version (latest). Everything goes correctly. No error, neither warnings. But when we go on the front end we found that there are many things missing. After digging, we realize that the hook table is missing many entries (IE displayNav). For what I know, displayNav was not an existing hook in versions 1.4. So I guess there should be an instruction in the upgrade that should create this new hook. I looked at the .sql files in "install\sql\upgrade" of the 1.6.0.14 version that we used to upgrade and there is no file having a "insert into" sql instruction to add the displayNav hook. So my questions are. How is this hook supposed to be created? How can I be sure that my upgrade is 100% done. Thanks
  4. Hi all, I found a way a client can bypass the checkout process (skip address selection, carrier, etc.). So I began to write a "bug tracker" but I feel hesitant about telling this information to everybody. What should I do? Can I PM an administrator ? Thanks Mathieu
  5. In my case, I would like to add all product from a category
  6. Anybody found a solution for this? I would also like to do this.
  7. Bonjour, j'essaie d'accéder au fichier index.php du module d'administration (backoffice) via l'utilisation des fonctions php CURL. Le problème est que je dois pouvoir me connecter au backoffice pour que mon traitement fonctionne. Existe-il un moyen de le faire via les fonction CURL? Est-il possible d'envoyer l'information de login dans les données POST ou GET? Merci Mathieu
  8. Bonjour, je voudrais savoir si la version 1.2 règle le problème pour les taxes au Canada Merci (Existe-il un endroit où on peut voir tous les changements d'une nouvelle version?)
×
×
  • Create New...