agile multiple seller ERROR:update customer transform seller

In this forum you can post anything related to PrestaShop Modules/Addons from Agile Addons-Modules.Com.

If you need support for any module/addon from Agile Addons-Module.Com, please post it here. We will respond as soon as possible. Usually within one business day.

Please indicate the PrestaShop version, product name. product version, and if possible your order # to get a prompt response.

Moderator: jeffayao_1666

agile multiple seller ERROR:update customer transform seller

Postby oldlastman_2250 » Wed Jun 19, 2013 6:48 pm

Hello,

background datas:
  • Prestashop: 1.5.2.0
  • agile multiple seller module : 2.0.1 (i have version 2.1.3 ziped actually i cant update)

Problem:
Every time i update custmer data this person transform automatically in Seller and appear in seller info
example
I try to change newsletter check to active, and magically (i'm sure i dont touch create seller account because i did this action from customer list) transform this person in seller

clues
After hours of try and error i found this function on agilemultipleseller/install/1.5x/override/controllers/admin and of course there is a copy in override/controllers/admin

Code: Select all
protected function afterUpdate($object)   {
$this->create_seller_account($object);
return true;   }


This means every time i update customer info that function convert automatically in seller?

i read code in version 2.1.3 of the module and this function is the same.

Please, could you help me? i must change this code for something similar to afterAdd function?
this is an error? or there is something more?

thanks
oldlastman_2250
 
Posts: 6
Joined: Mon Nov 19, 2012 12:53 am

Re: agile multiple seller ERROR:update customer transform se

Postby shokinro » Wed Jun 19, 2013 11:33 pm

@oldlastman
Thanks for using our module.

There was a bug in an specific earlier version, you happened to have this version I I guess.
I suggest you update to latest version of the module if you could. I assume that you have not modified or customized the module.

Or please replace following function create_seller_account with below code

Code: Select all
    private function create_seller_account($object)
    {
      ///check if we need to create a seller account
      if($this->is_seller OR Tools::getValue('create_seller_account') <=0)return;
      if(!Module::isInstalled('agilemultipleseller'))return;
                include_once(_PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php");
      $id_sellerinfo = SellerInfo::getIdByCustomerId($object->id);
      if($id_sellerinfo >0)return;
      include_once(_PS_ROOT_DIR_ . "/modules/agilemultipleseller/agilemultipleseller.php");
      AgileMultipleSeller::createSellerAccount($object);
    }
Follow us at Twitter Like us on Facebook Watch our Tutorial Videos on YouTube
shokinro
Site Admin
 
Posts: 3091
Joined: Sat Jun 25, 2011 3:08 pm

Re: agile multiple seller ERROR:update customer transform se

Postby oldlastman_2250 » Thu Jun 20, 2013 5:16 pm

i'm Sorry but

I replace old function and
now i can modify customer datas but if update old user and transform in seller..

i obtain:

Code: Select all
Caught exception: Property SellerInfo->id_seller is empty




something more i could do?
oldlastman_2250
 
Posts: 6
Joined: Mon Nov 19, 2012 12:53 am

Re: agile multiple seller ERROR:update customer transform se

Postby shokinro » Sat Jun 22, 2013 6:07 pm

@oldlastman
I think the best way is to upgrade your store to the latest version of the module.
It is very difficult to for me figure out what is happening with code has been changed.
Follow us at Twitter Like us on Facebook Watch our Tutorial Videos on YouTube
shokinro
Site Admin
 
Posts: 3091
Joined: Sat Jun 25, 2011 3:08 pm


Return to Support forum - Agile PrestaShop Modules/Addons

Who is online

Users browsing this forum: No registered users and 12 guests