Forum Replies Created

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’);

    Thread Starter uk2021

    (@uk2021)

    I’m not on whatsapp.
    I’ll add your number to my phone and see if you appear on Telegram or Signal.

    Cheers

    Problem resolved at my end with some tweaking of the above code!

    Editing this file:

    /wp-content/plugins/woocommerce/templates/emails/plain/email-order-items.php

    I used the code below and inserted it into line 63 (at the bottom of the plain text template) and left the rest of the file untouched (as installed).

    echo “\r\n”;
    echo “——————————”;
    echo “\r\n”;

    And here is the result on printout:

    **************************
    Number: #2329,
    **************************
    FOOD ITEMS:
    BBQ Lamb & Mint Burger X 1 = £4.50
    Peas Choice: mushy
    ——————————
    BBQ Lamb & Mint Burger X 1 = £4.50
    Peas Choice: garden
    ——————————
    BBQ Lamb & Mint Burger X 1 = £4.50
    Peas Choice: none
    ——————————
    Euca Hill Chardonnay 750ml X 1 = £10.00
    ——————————`

    Hope that helps someone else needing a bit more clarity between order lines!

    I am also trying to use additional line spaces between Orders using WOO INSTANT NOTIFICATIONS.

    Using your code addition:

    echo “\r\n”;
    echo ‘—————-‘;
    echo “\r\n”;

    Caused a fault on checkout submission for me too.

    But using the following did not:

    echo ‘—————-‘;

    The printout in plain text displays as shown below… (unfortunately with the divide line ______ in an odd place).

    Telephone Order
    **************************
    Number: #2251,
    **************************
    FOOD ITEMS:
    Jerk Jackfruit & Grilled Pineapple X 1 = £6.50
    ———–
    – Choose your topping:: Jacket Potato
    Ploughmans. Cheese, Ham Pickle, Lettuce, Apple, Boiled Egg, Gherkin X
    1 = £7.00
    ———–
    – Choose your topping:: Wraps

    The “add on” food items ie: ‘- Choose your topping:: Jacket Potato’ (created by Advanced Product Fields for WooCommerce Plug-in) display with the second item….

    Desirable output:

    Telephone Order
    **************************
    Number:  #2251,
    **************************
    FOOD ITEMS:
    Jerk Jackfruit & Grilled Pineapple X 1 = £6.50
    - Choose your topping:: Jacket Potato
    -----------
    Ploughmans. Cheese, Ham Pickle, Lettuce, Apple, Boiled Egg, Gherkin X
    1 = £7.00
    - Choose your topping: Wraps
    -----------

    FYI:
    The generic Woocommerce email displays properly like this:

    Jerk Jackfruit & Grilled Pineapple × 1

    Choose your topping: Jacket Potato£ 6.50
    ________________________________________________________________________
    Ploughmans. Cheese, Ham Pickle, Lettuce, Apple, Boiled Egg, Gherkin × 1

    Choose your boat: Wraps £7.00
    ________________________________________________________________________

    So woo commerce email format knows where the divide __________ between orders should be. But not Woo Instant Notifications. Not really that customizable as yet

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

    (@uk2021)

    Ok thanks Georgi!

    Thread Starter uk2021

    (@uk2021)

    So how do we move forward?

    Thread Starter uk2021

    (@uk2021)

    Just thinking ahead. I’m not sure if you’ll find that info in the basic plugin files. I don’t think Eat At Table is even demo’d on the basic plugin.

    Pretty sure I had to download a whole new “Pro” Plugin to use Eat At Table and disable the basic one.

    Let me know if I can help in any way.

    Thread Starter uk2021

    (@uk2021)

    Bit of an update here from Woo Instant Notifications Developers: https://ww.wp.xz.cn/support/topic/food-online-shortcodes/#post-14275115

    I guess that the table number isn’t there as it isn’t added to woo instant notifications codebase but we can easily add it using the metadata from the food online plugin.

    Looks like we are sorted at this end when the meta link is added!

    All the Best 🙂

    Thread Starter uk2021

    (@uk2021)

    That sounds great!

    Just so you know. The table number does appear on the Woo commerce built in order emails as standard. But your formatting is better than the integrated Woocommerce plain text email, but missing that short code for table number is not so good….

    I will Link this thread to the support I put on FOOD ONLINE to see if there is anything those developers could do to make their fields more translatable across plugins in the future.

    Thanks for your swift response (and on a Sunday too!)

    Appreciated 🙂

    Thread Starter uk2021

    (@uk2021)

    Ok not being funny. But you really do need to read the posts beofre replying to support tickets 😉

    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.

    TIME is not the issue (as said in original post)

    There are 3 delivery options on FOOD ONLINE.

    Pickup

    Delivery

    Eat at table (which then asks customer for a table number)

    table number is not shortcoded anywhere after putting in all of your shortcodes (shown below)

    The customer TABLE NUMBER cant be printed out….

    {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} )

    Thread Starter uk2021

    (@uk2021)

    Its in the original post…

    Hope all is well FOOD ONLINE https://ww.wp.xz.cn/support/plugin/food-online-for-woocommerce/

    All the Best!

    Thread Starter uk2021

    (@uk2021)

    That was quick. Fantastic! Yes, now works now as expected.

    Thank you!

    Thread Starter uk2021

    (@uk2021)

    Apologies. There is an error on post above! Was a late night.

    “If I put a number as Value in the variant nothing displays in the product variation drop down list”

    So.

    When I enter a WORD as a variant option. The drop down doesn’t work and just lists the varient name ie: “Selece COLOUR” but no colour options below it in the list:
    It should show “Black” then “Blue”. But nothing appears.

    But if I use a single number as a variant ie: “Select colour” “1” or “2”.
    The list indeed shows “1” and “2” as an option on the list below “Select Colour”.

    • This reply was modified 5 years, 4 months ago by uk2021.
Viewing 13 replies - 16 through 28 (of 28 total)