Jump to content

 

Elsherif

Member Since 10 Jul 2015
Offline Last Active Sep 29 2015 06:01 AM
-----

Posts I've Made

In Topic: How Can I Stop Script Execution From A Hook

26 August 2015 - 10:41 AM

No thoughts from me without detailed code examination. Sorry

 

No problem I can provide the code just tell me what you need. :)


In Topic: How Can I Stop Script Execution From A Hook

26 August 2015 - 06:11 AM

Hm.. I do not see any reason for the mentioned error. Try to remove the check of the ajax error and run the URL directly in the browser

 

Didn't help .... I discovered a strange thing now though, it is that I use the same code for 3 conditions in the same hook and none of the other two produce the error it is only this one and more interestingly I tried changing the order of the three conditions and I found that the error is always produced by the last condition no matter which one of them it is.

Thoughts?


In Topic: How Can I Stop Script Execution From A Hook

25 August 2015 - 12:16 PM

Please provide us with the code which is executed before exit function

if (!preg_match('/\S+/', $request_data['new_name']) && defined('AJAX_REQUEST')) {
					$msg = 'Please fill in your new name value.';
					fn_set_notification('E', fn_get_lang_var('error'), $msg, 'I', 'empty_name');
					exit;
				}

In Topic: Your Add-On Needs A New Hook In Cs-Cart. Post It Here.

25 August 2015 - 10:03 AM

Will be there in 4.3.5 only. That's because 4.3.4 branch is closed for new changes already.

Great ... thanks :)


In Topic: How Can I Stop Script Execution From A Hook

25 August 2015 - 08:42 AM

Redirect to the page of your choice.

 

It is an AJAX request.