Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter Charles

    (@correctshop)

    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

    Thread Starter Charles

    (@correctshop)

    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

    Thread Starter Charles

    (@correctshop)

    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

    Thread Starter Charles

    (@correctshop)

    Sorry. Forgot to provide test user details:

    Username: testuser
    Password: 1234567

    Thread Starter Charles

    (@correctshop)

    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

    Thread Starter Charles

    (@correctshop)

    Resolved

    Thread Starter Charles

    (@correctshop)

    Sorry for late reply. If you have not found a solution yet, the best I could do was WP All Export plugin. Works well.

    Thread Starter Charles

    (@correctshop)

    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!

    Charles

    (@correctshop)

    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.

    Thread Starter Charles

    (@correctshop)

    Okay. All working great. Awesome plugin! Thank you!

    Thread Starter Charles

    (@correctshop)

    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?

    Thread Starter Charles

    (@correctshop)

    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:)

    Thread Starter Charles

    (@correctshop)

    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.

    Thread Starter Charles

    (@correctshop)

    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)