stefk
Forum Replies Created
-
Forum: Plugins
In reply to: [WPAdmin AWS CDN] Plugin Update: Change Line referring Non-Existant FileWe appended this to correct:
$wparoot = ABSPATH;
$wpconfig = $wparoot . “wp-config.php”;Forum: Plugins
In reply to: [WPAdmin AWS CDN] Plugin Update: Change Line referring Non-Existant FileUpdate of the issue:
– The root cause of almost all of the entries in the log file is in this file: “\wp-content\plugins\aws-cdn-by-wpadmin\class-aws-cdn.php” in each of the four sites.
– If this was to be addressed, this log file would be minimal
– This file, “class-aws-cdn.php”, has this code in it:
$wparoot = str_replace(“wp-content/plugins/aws-cdn-by-wpadmin”,””, (__DIR__) );
$wpconfig = $wparoot . “wp-config.php”;
– Above code ends up telling the script to open this file: “\wp-content\plugins\aws-cdn-by-wpadmin\wp-config.php” which is not in this directory. The “wp-config.php” file is located in the site root directory for each sites. This means that the variable $wparoot is not being set correctly.
Thank you, sending an email shortly.
@stodorovic @suascat_wp Thank you for your inputs, both valid suggestions, and comments.
A URL popped up on google webmaster tools, which is flagged with a crawl issue.
The example below:
domainname.com/products/%products_categories%/tablet-pcSo initially I tried to do a redirect of that URL to another page, but redirect won’t work on it, I’m guessing because of the % in the slug.
So my thinking is that I need to exclude this URL, even though it does not exist from being crawled.
Forum: Plugins
In reply to: [Mailchimp for WooCommerce] Birthdate Field@ryanhungate
We have updated the plugin. Its working only when I have a hardcoded value on the merge tag. We are trying to add a date custom field using the date picker. Below is the code we added to functions.php and comments included. This is working properly. The date you can see it in the backend saved. For some reason, this code is failing to get the submitted value. What am I doing wrong?/** * Add custom field to the checkout page */ add_action('woocommerce_after_order_notes', 'custom_checkout_field'); function custom_checkout_field( $checkout ){ echo '<div id="date-of-birth-field"><h2>' . __('Date of Birth') . '</h2>'; woocommerce_form_field( 'date_of_birth', array( 'type' => 'date', 'class' => array('my-dateofbirth-class form-row-wide'), 'label' => __('Fill in this field'), 'placeholder' => __('DD/MM'), ), $checkout->get_value( 'date_of_birth' )); echo '</div>'; } /** * Checkout Process */ add_action('woocommerce_checkout_process', 'customised_checkout_field_process'); function customised_checkout_field_process(){ // Show an error message if the field is not set. if (!$_POST['date_of_birth']) wc_add_notice(__('Please enter date of birth!') , 'error'); } /** * Save the value given in custom field */ add_action('woocommerce_checkout_update_order_meta', 'custom_checkout_field_update_order_meta'); function custom_checkout_field_update_order_meta($order_id){ if (!empty($_POST['date_of_birth'])) { //convert the submitted date so that we get only MM/DD as the Mailchimp set date format $date = new DateTime($_POST['date_of_birth']); $birthday = $date->format('d/m'); update_post_meta($order_id, 'Date of Birth', $birthday); } } /** * @param array $merge_tags * @param MailChimp_WooCommerce_Order $order * @return array */ function mailchimp_custom_order_merge_tags($merge_tags, $order, $order_id) { $birthday = get_post_meta( $order_id, 'date_of_birth', true ); /// add whatever you want to the merge tags $merge_tags['MMERGE3'] = $birthday; return $merge_tags; } add_filter('mailchimp_get_ecommerce_merge_tags', 'mailchimp_custom_order_merge_tags', 10, 2);Forum: Plugins
In reply to: [Mailchimp for WooCommerce] Birthdate FieldHaving the same issue as you Kees78
Forum: Plugins
In reply to: [Mailchimp for WooCommerce] Birthdate FieldThank you for the feedback. I will take a look at the plugin as a last resort.
Was hoping to pass on the data natively, even with a function.
We have stored the data as both, order and user object.
Hi Slava, yes I am using the “Other SMTP” mailer setting.
Strangely enough, I have had the same issue with two sites.
I have checked settings and the logs – the error comes back as Authentication Failed only for password reset. I forgot to mentioned both sites are running woocomerce.
Thank you, I came across that and I am actively following it.
Forum: Plugins
In reply to: [Product Filter for WooCommerce by WBW] Force Page Reload on FilterThank you Nick
Forum: Plugins
In reply to: [Role Based Price For WooCommerce] Display Lowest Price OnlyThis is the function which worked pre-installation of this plugin
// Show only lowest prices in WooCommerce variable products
add_filter( ‘woocommerce_variable_sale_price_html’, ‘wpglorify_variation_price_format’, 10, 2 );
add_filter( ‘woocommerce_variable_price_html’, ‘wpglorify_variation_price_format’, 10, 2 );function wpglorify_variation_price_format( $price, $product ) {
// Main Price
$prices = array( $product->get_variation_price( ‘min’, true ), $product->get_variation_price( ‘max’, true ) );
$price = $prices[0] !== $prices[1] ? sprintf( __( ‘From: %1$s’, ‘woocommerce’ ), wc_price( $prices[0] ) ) : wc_price( $prices[0] );// Sale Price
$prices = array( $product->get_variation_regular_price( ‘min’, true ), $product->get_variation_regular_price( ‘max’, true ) );
sort( $prices );
$saleprice = $prices[0] !== $prices[1] ? sprintf( __( ‘From: %1$s’, ‘woocommerce’ ), wc_price( $prices[0] ) ) : wc_price( $prices[0] );if ( $price !== $saleprice ) {
$price = ‘‘ . $saleprice . $product->get_price_suffix() . ‘‘ . $price . $product->get_price_suffix() . ‘‘;
}
return $price;
}But sadly, does not work anymore.
Forum: Plugins
In reply to: [Contact Form 7 - Dynamic Text Extension] Assitance – Tags Stopped WorkingThis worked, appreciate the help
Hi Michael
We found the issue. It was a malicious file that was uploaded via the contact form.
regards
StefForum: Plugins
In reply to: [Contact Form 7 - Dynamic Text Extension] Assitance – Tags Stopped WorkingThank you so much for the reply.
The tags aren’t showing in the email, I will regenerate them and let you know.