No valid shipping options found. Please check your address carefully. Hi Developers, Make sure two things: Products have weights Base zip code is entered If still not working? Debugging: Now if you are familiar with your favorite browser’s console then try this command there jQuery(‘input[name=”no_shipping_options”]’) You will see that there are two input elements with […]
How to define your SITE_URL? $self = explode(‘/’, $_SERVER[‘PHP_SELF’]); array_pop($self); define(‘SITE_URL’, ‘http://’.$_SERVER[‘HTTP_HOST’].implode(‘/’, $self).’/’); define(‘IMG’, SITE_URL.’assets/uploads/’);
Regular Expressions Regular Expressions
Injection Guard
PHP Helper Function: get_function_static() Description: This function returns the name of calling function. You can specify the $index param to retrieve nth level of calling functions. function get_function_static($bt, $index=0) { if (isset($bt[$index][‘function’])) return $bt[$index][‘function’]; else return false; } Usage $bt = debug_backtrace(); $parent_function = $this->get_function_static($bt, 1);
Severity: 4096, Object of class stdClass could not be converted to string Error Description: A PHP Error was encountered Severity: 4096 Message: Object of class stdClass could not be converted to string Filename: libraries/Parser.php Line Number: 101 Solution: if (is_array($val)) { $template = $this->_parse_pair($key, $val, $template); } elseif(is_object($val)){ $val = (array)$val; $template = $this->_parse_pair($key, $val, […]
RSS Feed Widget
PHP Regular Expressions to Extract Images from HTML Content //preg_match_all(‘/<img[^>]+>/i’, $description, $img); //preg_match_all(‘/src=”([^”]*)”/’, $description, $img); preg_match_all(‘@<img.*src=”([^”]*)”[^>/]*/?>@Ui’, $description, $img);