Vendor Terms & conditions are not saving data

  • Posts: 28
  • Thank you received: 0
9 years 2 months ago #190415

-- HikaShop version -- : 2.3.5
-- HikaMarket version -- : 1.5.1
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5.17
-- Browser(s) name and version -- : Chrome 40.0.2214.111

Hi

This is my first post, so i will try my best to be clear :)

If user registered in my site, then he can register to be a vendor.
While registering as vendor, a filed is given for him to fill the "terms and conditions".

If that has been filled during registration, it is not being saved.
If filled later it saves the data.

I hope this is clear enough.

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

  • Posts: 26008
  • Thank you received: 4004
  • MODERATOR
9 years 2 months ago #190459

Hi,

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

	$vendor->vendor_published = ($config->get('allow_registration', 0) == 2 && $user_activated);
	$vendor->vendor_description = JRequest::getVar('vendor_description', '', '', 'string', JREQUEST_ALLOWRAW);
By
	$vendor->vendor_published = ($config->get('allow_registration', 0) == 2 && $user_activated);

	$safeHtmlFilter = JFilterInput::getInstance(null, null, 1, 1);

	if($config->get('register_ask_description', 1)) {
		$vendor->vendor_description = JRequest::getVar('vendor_description', '', '', 'string', JREQUEST_ALLOWRAW);
		$vendor->vendor_description = $safeHtmlFilter->clean($vendor->vendor_description, 'string');
	}
	if($config->get('register_ask_terms', 0)) {
		$vendor->vendor_terms = JRequest::getVar('vendor_terms', '', '', 'string', JREQUEST_ALLOWRAW);
		$vendor->vendor_terms = $safeHtmlFilter->clean($vendor->vendor_terms, 'string');
	}
It will fix the issue.
This patch will be include in the next release package.

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.
The following user(s) said Thank You: the1st_expert

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

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