Manual shipping method address override

  • Posts: 35
  • Thank you received: 1
9 years 7 months ago #196736

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5.1
-- Browser(s) name and version -- : All Browsers

Hi There

When I set "Override Shipping Address" to "HTML Version" - it strips out all the valid HTML from the code that I entered in the textarea leaving me with just plain text after I save.

I can't figure out what I am doing wrong.

Cheers

Mark

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

  • Posts: 12953
  • Thank you received: 1778
9 years 7 months ago #196756

Hello Mark,
Can you give me more information about the issue that you are having through some screenshots for example ?
Thanks.

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

  • Posts: 35
  • Thank you received: 1
9 years 7 months ago #196960

Thanks Mohamed... Please see attached image for an explanation... This screenshot was taken while editing a manual shipping plugin.

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
9 years 7 months ago #197099

Hi,

Thanks for the report, please edit the file "administrator/components/com_hikashop/controllers/plugins/php" function "store()" and replace:

							if(is_array($val) || $key=='information'){
								$element->$params_name->$key = $val;
							}else{
								$element->$params_name->$key = strip_tags($val);
							}
By:
							if(is_array($val) || $key=='information'){
								$element->$params_name->$key = $val;
							}elseif($key =='shipping_override_address_text' && $formData[$this->plugin_type][$column]['shipping_override_address'] == '4'){
								$safeHtmlFilter = JFilterInput::getInstance(null, null, 1, 1);
								$element->$params_name->$key = $safeHtmlFilter->clean($val, 'string');
							}else{
								$element->$params_name->$key = strip_tags($val);
							}

Last edit: 9 years 7 months ago by Xavier.

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

Time to create page: 0.079 seconds
Powered by Kunena Forum