Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Shop / WooCommerce
  3. order notes

order notes

Scheduled Pinned Locked Moved Shop / WooCommerce
3 Posts 2 Posters 102 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    krzysztof
    wrote on last edited by
    #1

    Hi, I’m trying to add a custom “Order Notes” field in the WooCommerce block-based checkout. I want it to:

    • Save to order meta so it shows in admin.
    • Display on the Thank You page and in customer order details.
    • Be included in emails.

    Has anyone successfully added a custom order notes field in the block-based checkout? Thanks!

    Krzysiek

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by
      #2

      hey @krzysztof sorry about the late reply

      this seems like a custom programming task you're trying to do. are you a developer?

      as you may have seen, lay theme's checkout uses the checkout shortcode instead of the blocks

      if you look at this step:
      https://laytheme.com/documentation/shop-setup.html#preparation

      you see that we replace the cart and checkout worpdress blocks with the shortcodes instead.

      if you use blocks, i think blocks mayprovide you with action hooks or filters that you can use to insert your custom code. you may need to sift through any documentation you can find about this or the woocommerce code itself on their github.

      you could either create a wordpress plugin for this or use the https://wordpress.org/plugins/code-snippets/

      code snippets plugin to add your php code

      Save to order meta so it shows in admin.

      you'd need to custom code this

      Display on the Thank You page and in customer order details.

      this too

      if you look at the thank you php:
      lay\woocommerce\checkout\thankyou.php
      lay\woocommerce\thankyou\thankyou_style1.php

      you may find some filters or action hooks to insert your code

      if not, you would need to override the templates:
      https://woocommerce.com/document/saved-addresses-for-woocommerce/how-to-override-templates/

      same for emails

      I can do this custom development job for you but due to the complexity and time it would take me to do it, it would probably take like around 10 hours or 900€ plus taxes
      or more, depending on your exact needs

      i see you also wrote me an email about this
      sorry for replying late, was just super busy with coding some things for lay theme lately

      1 Reply Last reply
      0
      • arminunruhA Offline
        arminunruhA Offline
        arminunruh
        Global Moderator
        wrote on last edited by arminunruh
        #3

        OR

        you may be able to find a plugin that does what you want

        cause now i see youre talking about order notes, which should theoretically be a feature many other people would also wanted or need with woocommerce shops

        i was just more like looking at your points about thoughts on how to code this

        but i bet theres a plugin for this if you can find it

        or maybe even a standard feature that is shipped with woocommerce

        https://wordpress.org/plugins/woo-order-notes/

        how about this

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        I also code custom websites or custom Lay features.
        💿 Email me here: 💿
        info@laytheme.com

        Our Web Development company: 100k.studio

        Want to tip me? https://www.paypal.com/paypalme/arminunruh

        Before you post:
        1. When using a WordPress Cache plugin, disable it or clear your cache.
        2. Update Lay Theme and all Lay Theme Addons
        3. Disable all Plugins
        4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

        This often solves issues you might run into

        When you post:
        1. Post a link to where the problem is
        2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
        3. If the problem is difficult to explain, post screenshots / link to a video to explain it
        Online Users
        N
        Nzagamba
        Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
        laytheme.com
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Recent
        • Tags
        • Popular
        • Users
        • Search