Title: Charles's Replies | WordPress.org

---

# Charles

  [  ](https://wordpress.org/support/users/correctshop/)

 *   [Profile](https://wordpress.org/support/users/correctshop/)
 *   [Topics Started](https://wordpress.org/support/users/correctshop/topics/)
 *   [Replies Created](https://wordpress.org/support/users/correctshop/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/correctshop/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/correctshop/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/correctshop/engagements/)
 *   [Favorites](https://wordpress.org/support/users/correctshop/favorites/)

 Search replies:

## Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Using WordPress to manage document scan and redistribution](https://wordpress.org/support/topic/using-wordpress-to-manage-document-scan-and-redistribution/)
 *  Thread Starter [Charles](https://wordpress.org/support/users/correctshop/)
 * (@correctshop)
 * [6 years ago](https://wordpress.org/support/topic/using-wordpress-to-manage-document-scan-and-redistribution/#post-13206575)
 * Hi,
    I am really sorry that I did not reply sooner. Thank you for the insight
   you provided. I’ve split the project in two major parts.
 * Part A is too sell message coupons(1 coupon=100 Baht = 10 Letters – This is to
   cover our costs for paper and printing) online to users on Woocommerce which 
   must then generate a qr code / barcode using user’s id. Then I need to find a
   way to print 10 pages with the qr code on top (YITH Gift Card plugin might work
   with some customizing). The prisoner will write his letter on this page.
 * Part B is the scanning of the doc and sending to the user, and based on your 
   ideas, I’ve managed to accomplish a few things in the B part:
 * I can now scan a document to pdf and, using a windows app, read the qr code on
   the document which then changes the filename to the name found in the qr code.
   In this case, it is the LINE ID of the user. I can then upload all the files 
   to our server and then send a message through LINE API with the URL of the file
   which the user can click and retrieve the PDF to their mobile device using LINE
   app.
 * However, I have some serious challenges: LINE API does not use user LINE ID, 
   it uses User_ID which is a long number. And to get the User_ID I had to create
   a bot to capture user data upon making friends, then get User profile data and
   extract the User_ID. All that said, we have to have a special LINE verified account
   to get use profiles.
 * So, I started looking at BuddyPress as a solution where I hope to put the user’s
   profile id in the QR Code, use it as a filename, save it as such on server and
   then send the link using to the user’s BuddyPress message inbox. What I have 
   not been able to discover yet is whether BuddyPress API will be able to accommodate
   the sending of a message via their API containing the URL for the PDF.
 * I would really appreciate any further ideas or insights you may have in this 
   regard. I do appreciate your time and interest.
    Best regards, Charles
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Maximum Products per User for WooCommerce] Limit per User Meta](https://wordpress.org/support/topic/limit-per-user-meta/)
 *  Thread Starter [Charles](https://wordpress.org/support/users/correctshop/)
 * (@correctshop)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/limit-per-user-meta/#post-12801347)
 * Hi,
    While we waiting for your reply about limiting bookings per prisoner, I’m
   trying to prevent users at least from making another booking for prisoners in
   other buildings(Each building is a different product number, but all in the one
   category). But I’m having some trouble limiting by category. In the “limits” 
   tab, I’ve tried enabling ‘All products as well as enabling ‘Per Product Category’.
   But user is still able to book for a different building although they the limit
   works if they try to book again for the same building. In Products>Category, 
   the list of bookings does populate. Not sure what I’m doing wrong. Best regards,
   Charles
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Maximum Products per User for WooCommerce] Limit per User Meta](https://wordpress.org/support/topic/limit-per-user-meta/)
 *  Thread Starter [Charles](https://wordpress.org/support/users/correctshop/)
 * (@correctshop)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/limit-per-user-meta/#post-12781601)
 * Yes, that’s correct, because it relates to the visit being booked for that particular
   prisoner in that particular booking and may not be the same for the next booking(
   Although, out of the 6k users, there are only about 10% that have two prisoners
   registered in their user_meta). Our biggest problem is prevent the same prisoner
   being allowed more than one visit per month.
    At the moment I’m having to search
   out duplicates manually :). We will buy the pro version of your plugin today.
 * Thank you so very much!
    Best regards, Charles
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Maximum Products per User for WooCommerce] Limit per User Meta](https://wordpress.org/support/topic/limit-per-user-meta/)
 *  Thread Starter [Charles](https://wordpress.org/support/users/correctshop/)
 * (@correctshop)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/limit-per-user-meta/#post-12767949)
 * Sorry. Forgot to provide test user details:
 * Username: testuser
    Password: 1234567
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Maximum Products per User for WooCommerce] Limit per User Meta](https://wordpress.org/support/topic/limit-per-user-meta/)
 *  Thread Starter [Charles](https://wordpress.org/support/users/correctshop/)
 * (@correctshop)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/limit-per-user-meta/#post-12767946)
 * Hi. Thanks so much for the reply.
 * The user first registers where they can save the details for 2 prisoners and 
   numbers. (user_meta: prisoner_1 and prisoner_1_number).
    Then they login and 
   choose a date and time, and in the checkout page they choose which prisoner they
   want to visit online.
 * I use a code snippet to collect that information in checkout page:
 * add_action(‘woocommerce_before_order_notes’, ‘wps_add_select_checkout_field’);
   
   function wps_add_select_checkout_field( $checkout ) { // Get Current User
 *  $user_id = get_current_user_id();
 * // Setup Variable Values from Metadata
    $pris_1 = get_user_meta( $user_id, ‘prisoner_1’,
   true ) . ‘ – ‘ . get_user_meta( $user_id, ‘prisoner_1_number’, true ); $pris_2
   = get_user_meta( $user_id, ‘prisoner_2’, true ) . ‘ – ‘ . get_user_meta( $user_id,‘
   prisoner_2_number’, true ); // Select Prisoner PHP Code echo ‘<h2>’.__(‘รายละเอียด
   ผู้ต้องขัง’).'</h2>’;
 * woocommerce_form_field( ‘prisoner’, array(
    ‘type’ => ‘select’, ‘class’ => array(‘
   wps-drop’ ), ‘label’ => __( ‘แตะเพื่อเลือกชื่อผู้ต้องขัง’ ), ‘options’ => array(‘
   blank’ => __( ‘เลือกผู้ต้องขัง’, ‘wps’ ), $pris_1 => __( $pris_1, ‘wps’ ), $pris_2
   => __( $pris_2, ‘wps’ ), ) ),
 * $checkout->get_value( ‘prisoner’ ));
 * }
 * And it is saved with the following snippet:
 *  add_action(‘woocommerce_checkout_update_order_meta’, ‘wps_select_checkout_field_update_order_meta’);
   
   function wps_select_checkout_field_update_order_meta( $user_id ) {
 *  if ($_POST[‘prisoner’]) update_post_meta( $user_id, ‘prisoner’, esc_attr($_POST[‘
   prisoner’]));
 *  }
 * I have a stage site but not sure if I can post admin access details here.
    [https://cida.site/dev2](https://cida.site/dev2)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[REST API Log] Export log data to Excel](https://wordpress.org/support/topic/export-log-data-to-excel/)
 *  Thread Starter [Charles](https://wordpress.org/support/users/correctshop/)
 * (@correctshop)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/export-log-data-to-excel/#post-12762088)
 * Resolved
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[REST API Log] Export log data to Excel](https://wordpress.org/support/topic/export-log-data-to-excel/)
 *  Thread Starter [Charles](https://wordpress.org/support/users/correctshop/)
 * (@correctshop)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/export-log-data-to-excel/#post-12762084)
 * Sorry for late reply. If you have not found a solution yet, the best I could 
   do was WP All Export plugin. Works well.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Datepicker squashed up in Mobile View](https://wordpress.org/support/topic/datepicker-squashed-up-in-mobile-view/)
 *  Thread Starter [Charles](https://wordpress.org/support/users/correctshop/)
 * (@correctshop)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/datepicker-squashed-up-in-mobile-view/#post-12762078)
 * Hi!
 * Thanks for the reply! I found out that it was RegistrationMagic plugin that was
   causing the problem with the mobile view. 🙂
    You guys have a great plugin!
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Classified Listing – AI-Powered Classified ads & Business Directory] My Apology](https://wordpress.org/support/topic/worst-plugin-i-have-tested/)
 *  [Charles](https://wordpress.org/support/users/correctshop/)
 * (@correctshop)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/worst-plugin-i-have-tested/#post-12121207)
 * You have absolutely no idea what you are talking about. This is an awesome product
   with a support team that goes that extra mile for people. Your comments are clearly
   an echo of your frustrations and inabilities.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[REST API Log] Woocommerce Rest API v3](https://wordpress.org/support/topic/woocommerce-rest-api-v3/)
 *  Thread Starter [Charles](https://wordpress.org/support/users/correctshop/)
 * (@correctshop)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/woocommerce-rest-api-v3/#post-12064216)
 * Okay. All working great. Awesome plugin! Thank you!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[REST API Log] Woocommerce Rest API v3](https://wordpress.org/support/topic/woocommerce-rest-api-v3/)
 *  Thread Starter [Charles](https://wordpress.org/support/users/correctshop/)
 * (@correctshop)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/woocommerce-rest-api-v3/#post-12060102)
 * The route that I need to log is: /wp-json/wc/v3/orders/*. I have also tried a
   number of variations with only /wp-json/wc/v3/ with and without wildcards.
    Does
   cron job have anything to do with the fact that there is no logging? I also thought
   that maybe it is not recording because I am sending requests through POSTMAN 
   from the same IP address. Is that a possibility?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Force Coupon for WooCommerce] Specific Category](https://wordpress.org/support/topic/specific-category-5/)
 *  Thread Starter [Charles](https://wordpress.org/support/users/correctshop/)
 * (@correctshop)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/specific-category-5/#post-12060083)
 * Thank you for the reply, but I’m afraid we do not have the budget for that. I
   will have to try and to find the solution somehow. Thanks anyway:)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Message Gateway for Inmates](https://wordpress.org/support/topic/message-gateway-for-inmates/)
 *  Thread Starter [Charles](https://wordpress.org/support/users/correctshop/)
 * (@correctshop)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/message-gateway-for-inmates/#post-11954622)
 * Hi,
    Thanks for the feedback. The problem is that 7 Eleven here in Thailand have
   not developed an API for their Counter Service payments and are looking to me
   to write one in order to make use of their service. It’s not so much a question
   of them not wanting to, but they clearly don’t have the resources/skills with
   regards to writing an API that would interact with Woocommerce’s MySQL data. 
   I’m prepared to put in the effort and the time to learn whatever skills are needed
   to get the API written, but I’m finding it so hard to understand where I should
   start. So, naturally I would be very happy if I could find an out of the box 
   solution that can be customized.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Classified Listing – AI-Powered Classified ads & Business Directory] Listing Permalink problem with Thai language](https://wordpress.org/support/topic/listing-permalink-problem-with-thai-language/)
 *  Thread Starter [Charles](https://wordpress.org/support/users/correctshop/)
 * (@correctshop)
 * [7 years ago](https://wordpress.org/support/topic/listing-permalink-problem-with-thai-language/#post-11753750)
 * Hi. I am using Weglot. When a viewer selects Thai language then the link from
   the product list to the detail page works. If it is in English the error Page
   not found occurs. I can send you a user name and password for WP login if you
   would give me an email addy?
 * THanks so much. I’m really desperate:)
 * In the meantime, I will try reset permalinks as you said

Viewing 14 replies - 1 through 14 (of 14 total)