mmcculli
Forum Replies Created
-
Forum: Plugins
In reply to: [Brands for WooCommerce] shortcode change image size doesn’t workThanks, that looks to resolve my issue.
Forum: Plugins
In reply to: [Brands for WooCommerce] shortcode change image size doesn’t workJust wondering if there is any update on this issue I found?
Forum: Plugins
In reply to: [Mailchimp for WooCommerce] Merge Field Company NameThank you. I was able to find the merge field name for company.
I just did this myself. The issue if you need to use the ‘Address’ merge tag. Then within that the address tags need to be in an array. Below is my code the syncs over billing address and phone.
NOTE: For phone number to display right in MailChimp I found you need to format the telephone before sending it over.
function custom_format_telephone($phone_number)
{
//Remove all formatting
$cleaned = preg_replace(‘/[^[:digit:]]/’, ”, $phone_number);
//seperate phone into its parts
preg_match(‘/(\d{3})(\d{3})(\d{4})/’, $cleaned, $matches);
//Send back phone number in xxx-xxx-xxxx format.
return “{$matches[1]}-{$matches[2]}-{$matches[3]}”;
}function custom_user_merge_tags($merge_vars, $user) {
// Get the WooCommerce customer object
$customer = new WC_Customer($user->ID);
// Build Address Array
$address = array();
$address[“addr1”] = $customer->get_billing_address_1();
$address[“addr2”] = $customer->get_billing_address_2();
$address[“city”] = $customer->get_billing_city();
$address[“state”] = $customer->get_billing_state();
$address[“zip”] = $customer->get_billing_postcode();
$address[“country”] = $customer->get_billing_country();//Assign to MailChimp merge tag name
$merge_vars[‘ADDRESS’] = $address;
$merge_vars[‘PHONE’] = custom_format_telephone((string) $customer->get_billing_phone());// return the merge tag array to be submitted.
return $merge_vars;
}add_filter(‘mailchimp_sync_user_mergetags’, ‘custom_user_merge_tags’, 100, 2);`
Forum: Plugins
In reply to: [WooCommerce] Capture Payment based on delayThanks for the interesting solution idea. I will have to talk to the client and find out which direction they wish to go.
Forum: Plugins
In reply to: [WooCommerce] Capture Payment based on delayThanks for the fast reply. I was scared this was not something easy to do through code.
If anyone out there has any ideas on how to do this a different way it would be great. Example: I was trying to see if I could do this within the getaway’s portal itself. Example: If I am using PayPal can I have it auto capture on their end, then it would update woocommerce.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] error message on widgetsJust wondering what was the solution to resolve this issue. I am also getting it when I activate Jetpack. I am using php 7.3, not php 8.0
I am have the same problem. It is like the browser is caching the redirect. If I start with a fresh browser I login and can view the page.
I then logout, try to view page and get redirect the the login page as I set it up.
I now log back in. If I try to view the page now I still get redirected to the login page.
I have tried this on Chrome and Edge. Both do the same thing.