Dillx
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] woocommerce-variation placeholder set to display: noneswitched off restriction. you can see now
Forum: Plugins
In reply to: [WooCommerce] woocommerce-variation placeholder set to display: noneYes it is a theme issue. What seems to have changed is that because the div has a display:none that div no longer appears when my theme wants it to. so if I remove the display:none using firebug everything looks ok again.
If you toggle the selection from choose an option to having chosen a value the formatting is fine as the <div class=”woocommerce-variation single_variation” style=”display: none;”> now reads display:Block.
http://www.14atest.ragdog.co.uk/shop/cage-j-clips-black-pliers/
Forum: Plugins
In reply to: [Woocommerce Smart Export] Improvement – custom meta dataThat worked brilliantly thank you.
Forum: Plugins
In reply to: [WooCommerce Simply Order Export] Adding fieldsThis is an example of adding two fields.
/**
* Add columns to WooCommerce Simply Order Export
*/function f14a_Woo_export_add_col($cols) {
$cols[‘wc_settings_findus_method’] = __(‘How Did You Find Us’, ‘mytheme’);
$cols[‘wc_settings_order_id’] = __(‘Order Id’, ‘mytheme’);
return $cols;
}
add_filter(‘wpg_order_columns’, ‘f14a_Woo_export_add_col’);/**
* Add columns to WooCommerce Simply Order Export – settings page
* Notice that in above step, id attribute is identical to that of array key in step 1
*/
function f14a_Woo_export_add_fields($settings) {$settings[‘findus_method’] = array(
‘name’ => __( ‘How Did You Find Us’, ‘woocommerce-simply-order-export’ ),
‘type’ => ‘checkbox’,
‘desc’ => __( ‘How Did You Find Us’, ‘woocommerce-simply-order-export’ ),
‘id’ => ‘wc_settings_findus_method’
);$settings[‘order_id’] = array(
‘name’ => __( ‘Order Id’, ‘woocommerce-simply-order-export’ ),
‘type’ => ‘checkbox’,
‘desc’ => __( ‘Order Id’, ‘woocommerce-simply-order-export’ ),
‘id’ => ‘wc_settings_order_id’
);
return $settings;}
add_filter(‘wc_settings_tab_order_export’, ‘f14a_Woo_export_add_fields’);/**
* Add columns to WooCommerce Simply Order Export – add to csv
*/
function f14a_Woo_export_csv_write( &$csv, $od, $fields ) {if( !empty( $fields[‘wc_settings_findus_method’] ) && $fields[‘wc_settings_findus_method’] === true ){
$findus_method = get_post_meta( $od->id, ‘How did you find us’, true );
array_push( $csv, $findus_method );
};
if( !empty( $fields[‘wc_settings_order_id’] ) && $fields[‘wc_settings_order_id’] === true ){
array_push( $csv, $od->id );
};}
add_action(‘wpg_before_csv_write’, ‘f14a_Woo_export_csv_write’, 10, 3);Forum: Plugins
In reply to: [WooCommerce Simply Order Export] Adding fieldsfunction xxxx_Woo_export_csv_write( &$csv, $od, $fields ) {
if( !empty( $fields[‘wc_settings_findus_method’] ) && $fields[‘wc_settings_findus_method’] === true ){
$findus_method = get_post_meta( $od->id, ‘How did you find us’, true );
array_push( $csv, $findus_method );
};if( !empty( $fields[‘wc_settings_order_id’] ) && $fields[‘wc_settings_order_id’] === true ){
array_push( $csv, $od->id );
};}
add_action(‘wpg_before_csv_write’, ‘xxxx_Woo_export_csv_write’, 10, 3);Forum: Plugins
In reply to: [WooCommerce Simply Order Export] Adding fieldsI ‘ve managed to get two extra fields on the admin screen but cant get them written to the csv file. It just ignores them.
The code worked when I only had one.Just updated to version 2.1 and this still hasn’t been fixed.
Should I be reporting this in a different forum ?
Forum: Fixing WordPress
In reply to: WordPress Auto Updates – default – emailsHave created a MU-plugin with suggested code. Have to see if it makes any difference. Should it send emails when it autoupdates plugins ?
Forum: Fixing WordPress
In reply to: WordPress Auto Updates – default – emailsI think you have to create a must-use plugin.
“The best place to put these filters is in a must-use plugin.
Note: Do not add add_filter() calls in wp-config.php – causes conflicts with WP-CLI and possibly other problems.”I might try a creating a simple must-use plugin with the code in you suggested.
This worked initially but since the recent updates to the plugin it no longer works properly. I am using this on a home page to get the meta descriptions of other posts to display on that home page.
Since the recent updates (1.7.4 onwards possibly before that). The meta description retrieved is always that of the home page not the current post.Forum: Fixing WordPress
In reply to: WordPress Auto Updates – default – emailsI’m reluctant to start messing with any settings until I understand why these emails arent being sent in the first place.
Forum: Fixing WordPress
In reply to: WordPress Auto Updates – default – emailsI receive emails for comments requiring approval and messages from Wordfence about plugins.
Much to my frustration I receive nothing about updates to plugins. I have had another minor problem caused by a autoupdate to a plugin. Wouldnt be so bad if I’d have known an update had happened.
Forum: Fixing WordPress
In reply to: WordPress Auto Updates – default – emailsYou have the latest version of WordPress. Future security updates will be applied automatically.
Forum: Fixing WordPress
In reply to: WordPress Auto Updates – default – emailsum still don’t understand why plugins are updated but I get no messages from wordpress.
There are no entries in the config.php files other than the default ones.
Currently I’m using this to remove it….
$f14abreadcrumbs = yoast_breadcrumb(“”,””,false);
$home_entry = strpos($f14abreadcrumbs,’Home’,1) ;
/* Removing the Custom Post Type from the Breadcrumb
/* </span> and the delimiter length = 10 */$home_entry_end = strpos($f14abreadcrumbs,'</span’,$home_entry) + 10;
$custom_entry_end = strpos($f14abreadcrumbs,'</span’,$home_entry_end) + 10;$edited_breadcrumbs = substr($f14abreadcrumbs,0,$home_entry_end) . substr($f14abreadcrumbs,$custom_entry_end);