registration bug

  • Posts: 21
  • Thank you received: 0
  • Hikashop Business
9 years 8 months ago #191732

-- HikaShop version -- : 2.3.5
-- HikaMarket version -- : 1.6.0
-- Joomla version -- : 3.3.6

hy ,
the informations of vendor in the registration are not saved (city , phone ...)
thanks for help

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 8 months ago #191760

Hi,

Would it be possible to have a link to your store in order to know more about your actual configuration ?
The registration can display address vendor fields like it can display the address user fields ; so these fields might not be saved in the same place. After that, HikaMarket have some plugins to synchronize the data between the user and his vendor account.
So having more details about your website will help us to understand.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 0
  • Hikashop Business
9 years 8 months ago #191793

i sent you the url in private message
thanks for help .

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 8 months ago #191826

Hi,

Please edit the file "administrator/components/com_hikamarket/classes/vendor.php" and replace

		$status = $this->save($vendor);

		if($status) {
By
		$query = 'SELECT * FROM '.hikamarket::table('shop.field').' WHERE field_table = \'plg.hikamarket.vendor\' AND field_frontcomp = 1 AND field_published = 1 ORDER BY field_ordering';
		$this->db->setQuery($query);
		$vendorFields = $this->db->loadObjectList();
		if(!empty($vendorFields)) {
			foreach($vendorFields as $vendorField) {
				$namekey = $vendorField->field_namekey;
				if(substr($namekey, 0, 7) == 'vendor_') {
					$name = substr($namekey, 7);
					if(isset($status->address_data) && isset($status->address_data->$name))
						$vendor->$namekey = $status->address_data->$name;
				}
			}
		}

		$status = $this->save($vendor);

		if($status) {
It will copy the user address to the vendor during the registration.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.066 seconds
Powered by Kunena Forum