Contact Form – add an arrow to submit button
Just simple add below shortcode in the contact form in wp-admin
[submit “SUBMIT FORM →”]
Just simple add below shortcode in the contact form in wp-admin
[submit “SUBMIT FORM →”]
Method-1: First Check the Timezone in Settings > Store. Make sure you set to UTC. If you need to change it back you can in the SQL table “oc_setting” column “key” value “config_timezone” in the “value” column change it back to “UTC” UPDATE oc_setting SET value=’UTC’ WHERE key = ‘config_timezone’; If still issue, follow below method. Method-2: You…
Runtime check pincode // Validate function action_woocommerce_after_checkout_validation( $data, $error ) { // The accepted delivery zones $del_zones_array = array( 500001, 500004, 500008, 500028, 500030, 500032, 500033, 500034, 500036, 500048, 500049, 500057, 500086, 500089 ); // If the postal is not within the array, deny checkout if( ! in_array( $data[‘shipping_postcode’], $del_zones_array ) ) { $error->add( ‘validation’,…
Let’s say you are selling fresh produce and only want to sell to your home state. Because you are selling fresh produce such as fruits, vegetables and don’t have a proper delivery system in place to deliver all over the country. add_filter( ‘woocommerce_states’, ‘bwt_restrict_states’ ); function bwt_restrict_states( $states ) { $states[‘IN’] = array( ‘TS’ =>…
5 0 * * * /bin/find /tmp/ -type f -print0 | xargs -0 rm
On some occasions apache server will just fail, and become crashed, failing to restart with an error message like # tail /var/log/httpd/error_log [Sun Dec 22 10:05:27.006998 2013] [core:emerg] [pid 15001:tid 140145945569216] (28)No space left on device: AH00023: Couldn’t create the fcgid-proctbl mutex [Sun Dec 22 10:05:38.000403 2013] [core:emerg] [pid 15018:tid 140368783902656] (28)No space left on…
Dump Dumping from a remote database Restore or in one line mysql -u username -p db_name < /path/to/table_name.sql Dump and restore a single table from a compressed (.sql.gz) format Dump Restore