• Resolved uk2021

    (@uk2021)


    Hello.

    Hope all is well FOOD ONLINE https://wordpress.org/support/plugin/food-online-for-woocommerce/
    and Woo instant Notifications (https://wordpress.org/plugins/woo-instant-notifications/) developers (I have paid for both apps).

    I’m not sure if “Woo instant notifications” or FOOD ONLINE developers have the answer here so I’m messaging you both!

    In the Woo Instant notifications app (to print out food order information) there are short codes to put into email template for orders to print.

    {food_online_delivery_mode},
    {food_online_delivery_time},
    {food_delivery_date},
    {food_delivery_time},
    {food_delivery_method},

    Unfortunately after putting all of these short codes onto a print out. None of these show customer table number when EAT AT RESTAURANT option is checked in FOOD ONLINE.

    Where is this short code created? Table number print out is pretty essential on an order printout.

    Can You help?
    Thanks!

    Here are the full list of available short codes on Woo Instant Notifications Premium

    {order_date}, {order_number}, {woocommerce_email_order_meta}, {order_paypal_txn_id}, {order_billing_name}, {order_shipping_name}, {order_shipping_address_1}, {order_shipping_address_2}, {order_shipping_city}, {order_shipping_state}, {order_shipping_postcode}, {order_shipping_country}, {email_order_items_table}, {email_order_total_footer}, {order_billing_email}, {order_billing_phone}, {order_billing_address_1}, {order_billing_address_2}, {order_billing_city}, {order_billing_state}, {order_billing_postcode}, {order_billing_country}, {order_customer_note}, {local_pickup_location_name}, {local_pickup_location_address_1}, {local_pickup_location_address_2}, {local_pickup_location_postcode}, {local_pickup_location_city}, {local_pickup_location_state}, {local_pickup_location_country}, {local_pickup_location_phone}, {local_pickup_location_startdate}, {local_pickup_location_startdate}, {email_addresses}, {custom_field1}, {custom_field2}, {custom_field3}, {chkmanager_billing_1}, {chkmanager_billing_2}, {chkmanager_billing_3}, {chkmanager_shipping_1}, {chkmanager_shipping_2}, {chkmanager_shipping_3}, {chkmanager_additional_1}, {chkmanager_additional_2}, {chkmanager_additional_3}, {order_time}, {used_coupon}, {byc_delivery_date}, {byc_delivery_time}, {byc_delivery_type}, {ws_delivery_date}, {ws_delivery_time}, {ws_delivery_type}, {flex_billing_1}, {flex_billing_2}, {flex_billing_3}, {flex_shipping_1}, {flex_shipping_2}, {flex_shipping_3}, {flex_order_1}, {flex_order_2}, {flex_order_3}, {crockz_delivery_date}, {crockz_delivery_time}, {crockz_delivery_type}, {crockz_pickup_date}, {crockz_pickup_time}, {tyche_delivery_date}, {tyche_delivery_time}, {food_store_service_type}, {food_store_service_date}, {food_store_service_time}, {food_online_delivery_mode}, {food_online_delivery_time}, {food_delivery_date}, {food_delivery_time}, {food_delivery_method}, {od_ts_date}, {od_ts_timeframe} )`

Viewing 13 replies - 16 through 28 (of 28 total)
  • Thread Starter uk2021

    (@uk2021)

    OOPS!
    That code takes the whole site down…

    “There has been a critical error on this website.

    Learn more about troubleshooting WordPress.”

    When I delete it, the site comes back up…

    Heres the full block of code I added after the food online code new line inserted at 413

    // WooCommerce Food Online

    $this->placeholders[‘{food_online_delivery_mode}’] = $this->object->get_meta(‘fdoe_delivery_mode’);
    $this->placeholders[‘{food_online_delivery_time}’] = $this->object->get_meta(‘fdoe_picked_time’);
    $this->placeholders[‘{food_online_table}’] = $this->object->get_meta(‘_billing_table’);

    Plugin Author Georgi Bakalski

    (@irdroid)

    maybe its a typo.

    you can enable debugging and see where is the issue.
    To do so

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    define( 'WP_DEBUG_LOG', true );

    in /public_html/wp-config.php

    then inspect the generated errors in

    /wp-content/debug.log

    Thread Starter uk2021

    (@uk2021)

    Bit outside the realm of my capability. I also cant take a live site down to fault find the code right now.

    Come to think of it. I think it was a typo I corrected on the orders list line spacing issue that was had in email templates (on another support ticket).

    I spotted that by eye. But going into error logs is another matter.

    Will you be adding the FOOD ONLINE code in your next update?

    Cheers!

    Plugin Author Georgi Bakalski

    (@irdroid)

    Sure, we will probably tomorrow

    Thread Starter uk2021

    (@uk2021)

    Thanks Georgi!

    Much Appreciated…

    Thread Starter uk2021

    (@uk2021)

    OK I sorted it.

    These > < were creating the error.
    Just like the typo I corrected in the email plain text template PHP (different support post)

    So they should be this instead > <

    Also. On your next update could you please correct this code I had to enter into:

    woo-instant-notifications/admin/class-wcnotifications-instance.php

    to not cause errors.

    This was the post I worked from:

    Hello, the issue is with plugin woo-instant-notifications. They have “re-defined” the hook woocommerce_email_order_meta with only 2 parameters. If you change line 279 in
    woo-instant-notifications/admin/class-wcnotifications-instance.php to:
    do_action( ‘woocommerce_email_order_meta’, $this->object, true, $plain_text, $email);

    You may have already added it. Not sure if we’ve updated the plugin yet…..

    Thanks for the Support Georgi!

    Plugin Author Georgi Bakalski

    (@irdroid)

    Thanks,

    my fault, I had to add the code in the relevant code tags so that to display properly

    Thread Starter uk2021

    (@uk2021)

    OK Now that’s weird, looking above… Both of those symbols look the same on this forum post (but not in its editor block)! Random.

    
    These two >>  ‘   '   << display differently in the post editor.

    The first of these two symbols ended up in the copied code from your support post (below) which I pasted into Brackets Editor.

    All very strange. But something I’ll look out for!

    Post copied from:

    `Georgi Bakalski

    (@irdroid)

    2 hours, 16 minutes ago

    In this case you will have to manually edit the php file class

    /wp-conntent/plugins/woo-instant-notifications/admin/class-wcnotifications-instance.php

    find the line related to food online

    $this->placeholders[‘{food_online_delivery_time}’] = $this->object->get_meta(‘fdoe_picked_time’);

    Should be line 420
    and after that line add:

    $this->placeholders[‘{food_online_table}’] = $this->object->get_meta(‘_billing_table’);

    save the file
    then edit your template and add the following shortcode to display table number:

    {food_online_table}`

    Anyway. All sorted!

    • This reply was modified 4 years, 2 months ago by uk2021.
    Thread Starter uk2021

    (@uk2021)

    Thanks again Georgi.

    The website owner is very happy with the new printouts!

    Plugin Author Georgi Bakalski

    (@irdroid)

    If you are happy with it as well, please rate below link:

    https://wordpress.org/support/plugin/woo-instant-notifications/reviews/

    Thread Starter uk2021

    (@uk2021)

    I will do after the next update 😉

    Thread Starter uk2021

    (@uk2021)

    Hello Georgi!

    I have updated your plugin and unfortunately we took a step back and had to manually modify the code to see table numbers in food online PREMIUM:

    Looks like you may have forgotten to add this fix to your recent update?

    See below or check this forum thread….
    `
    Your advice:
    In this case you will have to manually edit the php file class

    /wp-conntent/plugins/woo-instant-notifications/admin/class-wcnotifications-instance.php

    find the line related to food online

    $this->placeholders['{food_online_delivery_time}'] = $this->object->get_meta('fdoe_picked_time');

    Should be line 420
    and after that line add:

    $this->placeholders['{food_online_table}'] = $this->object->get_meta('_billing_table');

    save the file
    then edit your template and add the following shortcode to display table number:

    {food_online_table}

    All the best.

    • This reply was modified 4 years ago by uk2021.
    • This reply was modified 4 years ago by uk2021.
    Plugin Author Georgi Bakalski

    (@irdroid)

    Hi,

    It may be that it updated to the regular version, not PRO.

    Download latest PRO from your account at https://ji4ka.com install and it will be fixed

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘FOOD ONLINE – Shortcodes’ is closed to new replies.