Jump to content

NIKESLB

Members
  • Posts

    15
  • Joined

  • Last visited

Profile Information

  • Location
    Portugal
  • First Name
    Nicolas
  • Last Name
    Gameiro

NIKESLB's Achievements

Newbie

Newbie (1/14)

0

Reputation

1

Community Answers

  1. Hi. This is not first time but sometimes a customer is converting points to a voucher and another customer have access to it, but can't use. Customer A generate a voucher from point Customer B will check his vouchers and verify that there is one to use Customer B try to use this voucher and gives an error, because it's not associate to his account I can't understand why someone else can see a voucher from other customer. Any idea? Maybe compatibility between cart rules, but the module integrated with prestashop doesn't have this option. Edit; I don't why but it created twice the same topic when I submited.
  2. Hi. This is not first time but sometimes a customer is converting points to a voucher and another customer have access to it, but can't use. Customer A generate a voucher from point Customer B will see check his vouchers and verify that there is one to use Customer B try to use this voucher and give an error, because it's not associate to his account I can't understand why someone else can see a voucher from other customer. Any idea? May compatibility between cart rules, but the module integrated with prestashop doesn't have this option.
  3. I had the exact problem. At the log I could find this error: PHP Fatal Error - Address in mailbox given (email) does not comply with RFC 2822, 3.6.2. It happens because the Swift library updated his rules about the grammar. So to solve the problem just comment the function _assertValidAddress() at \tools\swift\classes\Swift\Mime\Headers\MailboxHeader.php. Ex: private function _assertValidAddress($address) { /*if (!preg_match('/^'.$this->getGrammar()->getDefinition('addr-spec').'$/D', $address)) { throw new Swift_RfcComplianceException( 'Address in mailbox given ['.$address. '] does not comply with RFC 2822, 3.6.2.' ); }*/ }
  4. Well I think I found finally the fix. At ObjectModel.php function update I added those line (At "//START FIX"): foreach ($id_shop_list as $id_shop) { $fields['id_shop'] = (int)$id_shop; $all_fields['id_shop'] = (int)$id_shop; $where = $this->def['primary'].' = '.(int)$this->id.' AND id_shop = '.(int)$id_shop; // A little explanation of what we do here : we want to create multishop entry when update is called, but // only if we are in a shop context (if we are in all context, we just want to update entries that alread exists) $shop_exists = Db::getInstance()->getValue('SELECT '.$this->def['primary'].' FROM '._DB_PREFIX_.$this->def['table'].'_shop WHERE '.$where); if ($shop_exists) { //START FIX if(get_class($this) == "Combination") { foreach ($fields as $key => $val) { if($val == 0) unset($fields[$key]); } } //END FIX $result &= Db::getInstance()->update($this->def['table'].'_shop', $fields, $where, 0, $null_values); } elseif (Shop::getContext() == Shop::CONTEXT_SHOP) { $result &= Db::getInstance()->insert($this->def['table'].'_shop', $all_fields, $null_values); } } I unset all property where value is equal to 0, so it will ignore all fields where there is no modification. I spent some days on it, I'm pretty sure some people have the same as me, because it's happening to me in diferents stores. I really hope this fix will help someone.
  5. So I'm trying to solve this myself and did some progress but it's really hard to fix it. The problem is prestashop save every field from a combination. Instead update just the field where it was modified, it updates everything. In the file adminProductsController at the function "processProductAttribute" and the edit section we can find: $this->isProductFieldUpdated('attribute_weight_impact') ? Tools::getValue('attribute_weight') * Tools::getValue('attribute_weight_impact') : null, So if there is no update at this field then the value is null. All attributes are sent to the file Product.php at updateAttribute function. The first code is: $combination = new Combination($id_product_attribute); At this moment it fetchs every attributes from database where id is equal to id_product_attribute. At this point it's no sense to fetch this data if we going to update over it. Then we get this code: $combination->weight = (float)$weight; The $weight come from the "processProductAttribute" function and if the result is null then the property $combination->weight become null. So when saves to the database the weight will be 0 for this combination in every stores. I tried to unset the property, but null or unset will always save 0 to the database. EDIT: Better fix if (Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_SHOP) { if(get_class($this) == "Combination") { foreach ($this->update_fields as $key => $val) { if($val == null) { unset($fields[$key]); } } } else { foreach ($fields as $key => $val) { if (!array_key_exists($key, $this->update_fields)) { unset($fields[$key]); } } } }
  6. Yes I found multiple bug with multi store, but this one is for me the biggest problem. One of my customers have multistore with almost 10k clients and this funcionality working would be really usefull.
  7. Hi, I'm using PS 1.6.1.17 and I got a problem with the combinations. I have two multistore. When I select "All stores" and I want to change one product combination, If i change the reference, the weight or the EAN-13, the product combination get a reset and the price become 0. Is it normal? Any solution please?
  8. Hi, I need help please about the tax. I have 2 store (multistore) and by default we have the "customer" group. At this moment we have like 8000 customer in a store (A) in the customer group. In the other store ( B ) we have 150 customer in the customer group as well. How can I hide the tax for the customer group but for a specific store? The multistore function doesn't work on groups, do I really need to create a new group and insert every member to this new group? Thank You
  9. I have the same error but for the last version 1.7.0.4 http://i.imgur.com/9OLBjvT.jpg If I disabled the debug mode I can access to the install modules, but when I try to install one I get a 500 error
  10. I understand now. I tried to edit one of the rules by default of my country and for some reason there was no option to define all, just some selected country, but creating a new rule I can now add for all countries. Thank You for your help!
  11. I am from portugal and my goal is to force the same tax value for all country. Doesn't matter if the customer is from Japan or Brazil, the tax will be always the same.
  12. Hi, We got an order from a diferent, but the value cames without any tax. Is there any way to tell that all countries has the tax? Thank You
×
×
  • Create New...