javiernanni
Forum Replies Created
-
Forum: Plugins
In reply to: [YITH Infinite Scrolling] Help with selectorsYes, it works! Not sure I did anything, it looks like it “fixed itself”. Anyways, thanks for following up.
Forum: Plugins
In reply to: [Woo Mercado Pago Module Oficial] "Ups, algo funcionó mal"Yes, there are plenty of instances of wc-api. I’m debugging this with someone from MP now, I’ll come back to the thread to share the solution once we find it.
Forum: Plugins
In reply to: [YITH Infinite Scrolling] Help with selectorsThank you, but it’s still not working ??
Forum: Plugins
In reply to: [Woo Mercado Pago Module Oficial] "Ups, algo funcionó mal"That’s working now, but I still have the issue that my orders are stuck as pending in WooCommerce. Here’s the logs for the two last attempts at buying. In both cases I received my payment successfully in my MP account, but the orders are stuck as pending.
LOGS:
(I’m hiding personal information with XXX)07-19-2016 @ 16:30:09 – woocommerce-mercadopago-module: @[check_ipn_response] – Received _get content: {
“wc-api”: “WC_WooMercadoPago_Gateway”,
“topic”: “payment”,
“id”: “891134471”
}
07-19-2016 @ 16:30:10 – woocommerce-mercadopago-module: @[check_ipn_request_is_valid] – GOT EXCEPTION: {“status”:404,”message”:”merchant_order not found”}
07-19-2016 @ 16:37:25 – woocommerce-mercadopago-module: @[process_payment] – customer being redirected to Mercado Pago environment.
07-19-2016 @ 16:37:25 – woocommerce-mercadopago-module: @[buildPaymentPreference] – requesting mercado pago preference creation with following structure: {
“items”: [
{
“id”: “155”,
“title”: “Lic Javier Nanni x 1”,
“description”: “Especialidades<\/strong>\r\n- \r\n \t
- Depresi\u00f3n<\/li>\r\n \t
- Ansiedad<\/li>\r\n \t
- Ataques de P\u00e1nico<\/li>\r\n<\/ul>\r\nAtiendo a:<\/strong>\r\n
- \r\n \t
- Adultos<\/li>\r\n \t
- Parejas<\/li>\r\n \t
- Adolescentes<\/li>\r\n<\/ul>”,
“picture_url”: “https:\/\/www.terapiapoint.com\/wp-content\/uploads\/2016\/05\/Headshot-1.jpg”,
“category_id”: “others”,
“quantity”: 1,
“unit_price”: 2,
“currency_id”: “ARS”
},
{
“title”: “\u00a1Gratis!”,
“description”: “Servicio de env\u00edo utilizado por el almac\u00e9n”,
“category_id”: “others”,
“quantity”: 1,
“unit_price”: 0,
“currency_id”: “ARS”
}
],
“payer”: {
“name”: “XXX”,
“surname”: “XXX”,
“email”: “XXX”,
“phone”: {
“number”: “XXX”
},
“address”: {
“street_name”: “XXX”,
“zip_code”: “XXX”
}
},
“back_urls”: {
“success”: “https:\/\/www.terapiapoint.com\/checkout\/order-received\/810?key=wc_order_578e81750c311&utm_nooverride=1”,
“failure”: “https:\/\/www.terapiapoint.com\/cart\/?cancel_order=true&order=wc_order_578e81750c311&order_id=810&redirect”,
“pending”: “https:\/\/www.terapiapoint.com\/checkout\/order-received\/810?key=wc_order_578e81750c311&utm_nooverride=1”
},
“shipments”: {
“receiver_address”: {
“zip_code”: “XXX”,
“street_name”: “XXX”,
“apartment”: “”
}
},
“payment_methods”: {
“installments”: 6,
“default_installments”: 1
},
“notification_url”: “https:\/\/www.terapiapoint.com\/index.php\/woocommerce-mercadopago-module\/?wc-api=WC_WooMercadoPago_Gateway”,
“external_reference”: “WCTP-810”,
“sponsor_id”: 208682286,
“auto_return”: “approved”
}
07-19-2016 @ 16:37:26 – woocommerce-mercadopago-module: @[createUrl] – payment link generated with success from mercado pago, with structure as follow: {
“status”: 201,
“response”: {
“collector_id”: 214651848,
“sponsor_id”: 208682286,
“operation_type”: “regular_payment”,
“items”: [
{
“id”: “155”,
“title”: “Lic Javier Nanni x 1”,
“description”: “Especialidades\r\n\r\n \tDepresi\u00f3n\r\n \tAnsiedad\r\n \tAtaques de P\u00e1nico\r\n\r\nAtiendo a:\r\n\r\n \tAdultos\r\n \tParejas\r\n \tAdolescentes\r\n”,
“category_id”: “others”,
“picture_url”: “https:\/\/www.terapiapoint.com\/wp-content\/uploads\/2016\/05\/Headshot-1.jpg”,
“currency_id”: “ARS”,
“quantity”: 1,
“unit_price”: 2
},
{
“id”: “”,
“title”: “\u00a1Gratis!”,
“description”: “Servicio de env\u00edo utilizado por el almac\u00e9n”,
“category_id”: “others”,
“picture_url”: “”,
“currency_id”: “ARS”,
“quantity”: 1,
“unit_price”: 0
}
],
“payer”: {
“name”: “XXX”,
“surname”: “XXX”,
“email”: “XXX”,
“date_created”: “”,
“phone”: {
“area_code”: “”,
“number”: “XXX”
},
“identification”: {
“type”: “”,
“number”: “”
},
“address”: {
“street_name”: “XXX”,
“street_number”: null,
“zip_code”: “XXX”
}
},
“back_urls”: {
“success”: “https:\/\/www.terapiapoint.com\/checkout\/order-received\/810?key=wc_order_578e81750c311&utm_nooverride=1”,
“pending”: “https:\/\/www.terapiapoint.com\/checkout\/order-received\/810?key=wc_order_578e81750c311&utm_nooverride=1”,
“failure”: “https:\/\/www.terapiapoint.com\/cart\/?cancel_order=true&order=wc_order_578e81750c311&order_id=810&redirect”
},
“auto_return”: “approved”,
“payment_methods”: {
“excluded_payment_methods”: [
{
“id”: “”
}
],
“excluded_payment_types”: [
{
“id”: “”
}
],
“installments”: 6,
“default_payment_method_id”: null,
“default_installments”: 1
},
“client_id”: “963”,
“marketplace”: “NONE”,
“marketplace_fee”: 0,
“shipments”: {
“receiver_address”: {
“zip_code”: “XXX”,
“street_number”: null,
“street_name”: “XXX”,
“floor”: “”,
“apartment”: “”
}
},
“notification_url”: “https:\/\/www.terapiapoint.com\/index.php\/woocommerce-mercadopago-module\/?wc-api=WC_WooMercadoPago_Gateway”,
“external_reference”: “WCTP-810”,
“additional_info”: “”,
“expires”: false,
“expiration_date_from”: null,
“expiration_date_to”: null,
“date_created”: “2016-07-19T15:37:25.997-04:00”,
“id”: “214651848-2d8d0180-d2fb-4a6c-a578-40b16fd7a51f”,
“init_point”: “https:\/\/www.mercadopago.com\/mla\/checkout\/start?pref_id=214651848-2d8d0180-d2fb-4a6c-a578-40b16fd7a51f”,
“sandbox_init_point”: “https:\/\/sandbox.mercadopago.com\/mla\/checkout\/pay?pref_id=214651848-2d8d0180-d2fb-4a6c-a578-40b16fd7a51f”
}
}
07-19-2016 @ 16:56:13 – woocommerce-mercadopago-module: @[process_payment] – customer being redirected to Mercado Pago environment.
07-19-2016 @ 16:56:13 – woocommerce-mercadopago-module: @[buildPaymentPreference] – requesting mercado pago preference creation with following structure: {
“items”: [
{
“id”: “155”,
“title”: “Lic Javier Nanni x 1”,
“description”: “Especialidades<\/strong>\r\n
- \r\n \t
- Depresi\u00f3n<\/li>\r\n \t
- Ansiedad<\/li>\r\n \t
- Ataques de P\u00e1nico<\/li>\r\n<\/ul>\r\nAtiendo a:<\/strong>\r\n
- \r\n \t
- Adultos<\/li>\r\n \t
- Parejas<\/li>\r\n \t
- Adolescentes<\/li>\r\n<\/ul>”,
“picture_url”: “https:\/\/www.terapiapoint.com\/wp-content\/uploads\/2016\/05\/Headshot-1.jpg”,
“category_id”: “others”,
“quantity”: 1,
“unit_price”: 2,
“currency_id”: “ARS”
},
{
“title”: “\u00a1Gratis!”,
“description”: “Servicio de env\u00edo utilizado por el almac\u00e9n”,
“category_id”: “others”,
“quantity”: 1,
“unit_price”: 0,
“currency_id”: “ARS”
}
],
“payer”: {
“name”: “XXX”,
“surname”: “XXX”,
“email”: “XXX”,
“phone”: {
“number”: “XXX”
},
“address”: {
“street_name”: “XXX”,
“zip_code”: “XXX”
}
},
“back_urls”: {
“success”: “https:\/\/www.terapiapoint.com\/checkout\/order-received\/812?key=wc_order_578e85dd87242&utm_nooverride=1”,
“failure”: “https:\/\/www.terapiapoint.com\/cart\/?cancel_order=true&order=wc_order_578e85dd87242&order_id=812&redirect”,
“pending”: “https:\/\/www.terapiapoint.com\/checkout\/order-received\/812?key=wc_order_578e85dd87242&utm_nooverride=1”
},
“shipments”: {
“receiver_address”: {
“zip_code”: “XXX”,
“street_name”: “XXX”,
“apartment”: “”
}
},
“payment_methods”: {
“installments”: 6,
“default_installments”: 1
},
“notification_url”: “https:\/\/www.terapiapoint.com\/index.php\/woocommerce-mercadopago-module\/?wc-api=WC_WooMercadoPago_Gateway”,
“external_reference”: “WCTP-812”,
“sponsor_id”: 208682286,
“auto_return”: “approved”
}
07-19-2016 @ 16:56:14 – woocommerce-mercadopago-module: @[createUrl] – payment link generated with success from mercado pago, with structure as follow: {
“status”: 201,
“response”: {
“collector_id”: 214651848,
“sponsor_id”: 208682286,
“operation_type”: “regular_payment”,
“items”: [
{
“id”: “155”,
“title”: “Lic Javier Nanni x 1”,
“description”: “Especialidades\r\n\r\n \tDepresi\u00f3n\r\n \tAnsiedad\r\n \tAtaques de P\u00e1nico\r\n\r\nAtiendo a:\r\n\r\n \tAdultos\r\n \tParejas\r\n \tAdolescentes\r\n”,
“category_id”: “others”,
“picture_url”: “https:\/\/www.terapiapoint.com\/wp-content\/uploads\/2016\/05\/Headshot-1.jpg”,
“currency_id”: “ARS”,
“quantity”: 1,
“unit_price”: 2
},
{
“id”: “”,
“title”: “\u00a1Gratis!”,
“description”: “Servicio de env\u00edo utilizado por el almac\u00e9n”,
“category_id”: “others”,
“picture_url”: “”,
“currency_id”: “ARS”,
“quantity”: 1,
“unit_price”: 0
}
],
“payer”: {
“name”: “XXX”,
“surname”: “XXX”,
“email”: “XXX”,
“date_created”: “”,
“phone”: {
“area_code”: “”,
“number”: “XXX”
},
“identification”: {
“type”: “”,
“number”: “”
},
“address”: {
“street_name”: “XXX”,
“street_number”: null,
“zip_code”: “XXX”
}
},
“back_urls”: {
“success”: “https:\/\/www.terapiapoint.com\/checkout\/order-received\/812?key=wc_order_578e85dd87242&utm_nooverride=1”,
“pending”: “https:\/\/www.terapiapoint.com\/checkout\/order-received\/812?key=wc_order_578e85dd87242&utm_nooverride=1”,
“failure”: “https:\/\/www.terapiapoint.com\/cart\/?cancel_order=true&order=wc_order_578e85dd87242&order_id=812&redirect”
},
“auto_return”: “approved”,
“payment_methods”: {
“excluded_payment_methods”: [
{
“id”: “”
}
],
“excluded_payment_types”: [
{
“id”: “”
}
],
“installments”: 6,
“default_payment_method_id”: null,
“default_installments”: 1
},
“client_id”: “963”,
“marketplace”: “NONE”,
“marketplace_fee”: 0,
“shipments”: {
“receiver_address”: {
“zip_code”: “XXX”,
“street_number”: null,
“street_name”: “XXX”,
“floor”: “”,
“apartment”: “”
}
},
“notification_url”: “https:\/\/www.terapiapoint.com\/index.php\/woocommerce-mercadopago-module\/?wc-api=WC_WooMercadoPago_Gateway”,
“external_reference”: “WCTP-812”,
“additional_info”: “”,
“expires”: false,
“expiration_date_from”: null,
“expiration_date_to”: null,
“date_created”: “2016-07-19T15:56:14.527-04:00”,
“id”: “214651848-013a7e87-07d5-4132-8c49-0a20b0d8c90a”,
“init_point”: “https:\/\/www.mercadopago.com\/mla\/checkout\/start?pref_id=214651848-013a7e87-07d5-4132-8c49-0a20b0d8c90a”,
“sandbox_init_point”: “https:\/\/sandbox.mercadopago.com\/mla\/checkout\/pay?pref_id=214651848-013a7e87-07d5-4132-8c49-0a20b0d8c90a”
}
}
Forum: Plugins
In reply to: [Woo Mercado Pago Module Oficial] Error 500.. AyudaThanks, I fixed that but now I’m having this issue:
Hola Learck, gracias por tomarte el tiempo de contestar.
Este es el link que estoy usando:
https://www.terapiapoint.com/?wc-api=WC_MercadoPago_Gateway
Mi país es AR, así que esa ruta debería ser la correcta.
Tengo instalado woocommerce normalmente sobre el wordpress (que está en terapiapoint.com) con lo cual por ahí tampoco creo que pase el problema.
Sounds great, thanks ??
Argentina, Chile, Colombia, Mexico. Users subscribe to a service for a weekly payment. Just in case, here’s the link to WooCommerce subscriptions: https://www.woothemes.com/products/woocommerce-subscriptions/
Forum: Hacks
In reply to: Customize dashboard widgets for individual usersSetting it as resolved. Just in case someone else lands here and wants to implement this, here’s how my final code looks like:
/** * Add Dashboard Widget */ add_action('wp_dashboard_setup', 'wpse_51591_wp_dashboard_setup'); /** * Only builds the Widget if the display message checkbox is enabled in the user editing screen */ function wpse_51591_wp_dashboard_setup() { global $current_user; get_currentuserinfo(); $show_msg = get_user_meta( $current_user->ID, 'user_message_enable', true ); $widget_title = 'Acceso Rápido a Sesiones - ' . $current_user->data->display_name; if( $show_msg ) add_meta_box( 'wpse_user_personal_message', $widget_title, 'wpse_51591_wp_dashboard_per_user', 'dashboard', 'side', 'high' ); // the 'side' statement places the widget on the right column } /** * Content of Dashboard Widget * Shows the content of each user's custom message */ function wpse_51591_wp_dashboard_per_user() { global $current_user; get_currentuserinfo(); $the_msg = get_user_meta( $current_user->ID, 'user_message_text', true ); echo $the_msg; }
Forum: Hacks
In reply to: Customize dashboard widgets for individual usersWoohoooo!!! That made it work ??
Thanks a ton man, I owe you a beer or sth
Forum: Hacks
In reply to: Customize dashboard widgets for individual users@bcworkz thanks for the help! I tried to apply some of your suggestions, but I’m lost about what the correct order should be, and that comment about the user ID being an integer. (I’m not that technical).
Would you be so kind to take this code I have now and show me how it should look? I would appreciate that so so much!
———
/** * Add Dashboard Widget */ add_action('wp_dashboard_setup', 'wpse_51591_wp_dashboard_setup'); /** * Only builds the Widget if the display message checkbox is enabled in the user editing screen */ function wpse_51591_wp_dashboard_setup() { global $current_user; get_currentuserinfo(); $show_msg = get_user_meta( 'user_message_enable', 'user_' . $current_user->ID ); $widget_title = 'Personal Messages to ' . $current_user->data->display_name; if( $show_msg ) wp_add_dashboard_widget( 'wpse_user_personal_message', $widget_title, 'wpse_51591_wp_dashboard_per_user' ); } /** * Content of Dashboard Widget * Shows the content of each user's custom message */ function wpse_51591_wp_dashboard_per_user() { global $current_user; get_currentuserinfo(); $the_msg = get_user_meta( 'user_message_text', 'user_' . $current_user->ID ); echo $the_msg; }
Forum: Hacks
In reply to: Customize dashboard widgets for individual usersHi Dartiss, thanks a ton for your quick reply. I was trying this alternative approach, but the code isn’t working for me. I thought perhaps that’s because it’s 4 years old and part of it got deprecated…
Any idea if that could be the case?
Here’s the link to what I’m talking about:
Forum: Plugins
In reply to: [Mercado Pago payments for WooCommerce] Is it compatible with subscriptions?Hi Claudio, any updates on this? If it’s not working yet, could you provide an updated ETA?
Thanks in advance!