- Posts: 28
- Thank you received: 0
Vendor Terms & conditions are not saving data
- the1st_expert
-
Topic Author
- Offline
Less
More
11 years 9 months ago #190415
by the1st_expert
Vendor Terms & conditions are not saving data was created by the1st_expert
-- 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.
-- 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.
11 years 9 months ago #190459
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Vendor Terms & conditions are not saving data
Hi,
Thanks for the report.
Please edit the file "administrator/components/com_hikamarket/classes/vendor.php" and replace
By
It will fix the issue.
This patch will be include in the next release package.
Regards,
Thanks for the report.
Please edit the file "administrator/components/com_hikamarket/classes/vendor.php" and replace
Code:
$vendor->vendor_published = ($config->get('allow_registration', 0) == 2 && $user_activated);
$vendor->vendor_description = JRequest::getVar('vendor_description', '', '', 'string', JREQUEST_ALLOWRAW);
Code:
$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');
}
This patch will be include in the next release package.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
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.062 seconds