Closed SumitYesit closed 3 years ago
@SumitYesit sorry for the delay - the currency code should be a default woocommerce property on the order.
I would offer a very simple solution to the problem temporarily if you're comfortable editing code - in the MailChimp_WooCommerce_Order
class to replace this function of getCurrencyCode
and use your default currency where the letters 'USD' are.
I'm not sure why this is coming up blank - but you might need to look into another plugin that might be impacting the currency code used on your orders? Can you please tell us a little more about your setup? What is your default woo currency?
/**
* @return null
*/
public function getCurrencyCode()
{
return !empty($this->currency_code) ? $this->currency_code : 'USD';
}
Hi @SumitYesit we just wanted to check back with you to see if this was still a problem with our latest plugin (2.5.1 at the time of this post). Please let us know when you get a moment, we’ll be happy to help troubleshoot further if necessary.
Hi,, Thanks for help.. your given code for set default currency as USD ...it help us to solve this error ..i found my order currency was blank in postmeta table ..
after solve this error ...i found another error in log .
2021-05-17T14:06:58+00:00 ERROR order_submit.error :: addStoreOrder ::
order_url: That is not a valid URL:
http://localhost/tgin/my-account/view-order/230172/
on 1890 in C:\xampp\htdocs\tgin\wp-content\plugins\mailchimp-for-woocommerce\includes\api\class-mailchimp-api.phpwe are sync order data on my localhost ....and after complete sync order are showing 0 . Need to know my order was sync or not . [image: Firefox_Screenshot_2021-05-17T14-24-05.673Z.png] [image: Firefox_Screenshot_2021-05-17T14-25-45.846Z.png]
On Fri, 14 May 2021 at 01:59, khungate @.***> wrote:
Hi @SumitYesit https://github.com/SumitYesit we just wanted to check back with you to see if this was still a problem with our latest plugin (2.5.1 at the time of this post). Please let us know when you get a moment, we’ll be happy to help troubleshoot further if necessary.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mailchimp/mc-woocommerce/issues/768#issuecomment-840814778, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATM2B4PY5FIFJA3QZ2EEYUTTNQZC7ANCNFSM4ZZN2R7A .
@SumitYesit localhost
is not a valid url - so it's going to fail. Looks as if you're trying to do some dev work on your local machine? The Mailchimp plugin really wasn't intended to be used in a local/development environment, as this is supposed to push live orders to your customer base, so the URL's should be legit. I would simply disable the plugin if you're doing that locally.
Am I missing something here? You're not saying this is your production environment are you? With localhost?
Hello
on my production environment when i activate this plugin...my frontend display gone ...might be some other plugin is conflit. so i decided to do on my localmachine...
i have over 40k order 30k user ....sync is continuously running.... do i have any option to stop sync..
On Mon, 17 May 2021 at 20:01, Ryan Hungate @.***> wrote:
@SumitYesit https://github.com/SumitYesit localhost is not a valid url
- so it's going to fail. Looks as if you're trying to do some dev work on your local machine? The Mailchimp plugin really wasn't intended to be used in a local/development environment, as this is supposed to push live orders to your customer base, so the URL's should be legit. I would simply disable the plugin if you're doing that locally.
Am I missing something here? You're not saying this is your production environment are you? With localhost?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mailchimp/mc-woocommerce/issues/768#issuecomment-842373791, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATM2B4OBUTNNXGYKUTCA7W3TOESELANCNFSM4ZZN2R7A .
Hi, i am sync my data on my production enviourment
again come error in log :
2021-05-20T10:02:42+00:00 ERROR order_submit.error :: addStoreOrder :: #245489 :: Error Code 404 :: Resource Not Found :: The requested resource could not be found. on 1858 in /var/www/html/wp-content/plugins/mailchimp-for-woocommerce/includes/api/class-mailchimp-api.php 2021-05-20T10:02:42+00:00 DEBUG action_scheduler.process_job.fail :: MailChimp_WooCommerce_Single_Order :: obj_id 245489 :: MailChimp_WooCommerce_Error - Resource Not Found :: The requested resource could not be found.
Can you please how to resolve it .. is it some wrong data in my orders ...how to trace..
@SumitYesit I'm going to take a guess that you copied your database into your localhost, and possibly removed the Mailchimp plugin on your dev environment? If you did that, it would have deleted the store by it's ID on Mailchimp - which would then put you in a disconnected spot on your production environment.
At this point I think you're going to have to disconnect on production, then reconnect. This should put you in the right spot.
As for your site not working, you should be able to see something in the fatal error logs that would give us something to go by but it's impossible for me to give any sort of feedback without at least seeing something that references our plugin code in a fatal log.
Can you please try re-installing the plugin first and report back?
Hello sir ..
My client did import , users , product and orders data from third party on website .. now client need to sync all data with help of mailchimp woocommerce ....
i never connect same Store on development and production.... ... production alwasy connected with client store. on production when i run sync .. error log show . below error .. i dont know what is prob in it .. i have reconnect store with client account .
2021-05-20T10:02:40+00:00 ERROR order_submit.error :: addStoreOrder :: #245487 :: Error Code 404 :: Resource Not Found :: The requested resource could not be found. on 1858 in /var/www/html/wp-content/plugins/mailchimp-for-woocommerce/includes/api/class-mailchimp-api.php 2021-05-20T10:02:40+00:00 DEBUG action_scheduler.process_job.fail :: MailChimp_WooCommerce_Single_Order :: obj_id 245487 :: MailChimp_WooCommerce_Error - Resource Not Found :: The requested resource could not be found. 2021-05-20T10:02:42+00:00 DEBUG order_submit :: #245489 :: Array ( [id] => 245489 [customer] => Array ( [id] => dddb451c0d5f0f5923c6bffeb57ba0e7 [email_address] => marlene@honeyfig.com [opt_in_status] => 1 [company] => HoneyFig [first_name] => Marlene [last_name] => Robinson-Pereira [orders_count] => 12 [total_spent] => 6122.48 [address] => Array ( [name] => Marlene Robinson-Pereira [address1] => 4967 Yonge St [city] => Toronto [postal_code] => M2N 5N6 [country] => CA [phone] => 4162262100 )
)
[financial_status] => pending
[fulfillment_status] => fulfilled
[currency_code] => USD
[order_total] => 604.4
[order_url] => https://awstgin.tginatural.com/my-account/view-order/245489/
[tax_total] => 0
[discount_total] => 0
[shipping_total] => 0
[processed_at_foreign] => 2016-08-05 16:00:12
[shipping_address] => Array
(
[name] => Marlene Robinson
[address1] => 1300 Military Rd
[address2] => c/o Buffalo Forwarding Group
[city] => Kenmore
[province] => NY
[postal_code] => 14217-1531
[country] => US
[phone] => 4162262100
)
[billing_address] => Array
(
[name] => Marlene Robinson-Pereira
[address1] => 4967 Yonge St
[city] => Toronto
[postal_code] => M2N 5N6
[country] => CA
[phone] => 4162262100
)
[lines] => Array
(
[0] => Array
(
[id] => 55572
[product_id] => 229197
[product_variant_id] => 229197
[quantity] => 1
[price] => 53.96
)
[1] => Array
(
[id] => 55573
[product_id] => 229095
[product_variant_id] => 229095
[quantity] => 1
[price] => 53.96
)
[2] => Array
(
[id] => 55574
[product_id] => 229104
[product_variant_id] => 229104
[quantity] => 6
[price] => 64.76
)
[3] => Array
(
[id] => 55575
[product_id] => 229101
[product_variant_id] => 229101
[quantity] => 1
[price] => 53.96
)
[4] => Array
(
[id] => 55576
[product_id] => 229103
[product_variant_id] => 229103
[quantity] => 1
[price] => 53.96
)
)
)
@SumitYesit so this happens from time to time where for whatever reason, the store might not be connected properly due to a "bad uninstall" or possibly "duplicate stores" or even a "deleted list" etc.
I would recommend taking the following steps:
This should really be all you need to do in order to get synced up properly.
my sycn is not working from feb month .. error log showing error. ..
ERROR order_submit.error :: addStoreOrder :: #230340 :: Error Code 400 ::
: Required fields were not provided: currency_code
on 1886 in /var/www/html/wp-content/plugins/mailchimp-for-woocommerce/includes/api/class-mailchimp-api.phpi am using updated version of this plugin .. php version is 7.2 give us solution how to handle this error .
Thanks.