• Hi there!
    We recently designed a multi-vendor-shop using woocommerce.
    Since we don’t deliver the goods but integrated a “Click&Collect” option, we need customers to be able to see the shop adress in the Order-Confirmed-Mail.
    Otherwise they won’t know where to go to pick up te goods…
    Is there a Placeholder we can use to automatically integrate the Shop Adress/Shop URL (Where the adress is listed)?
    Unfortunately we are not able to edit the php code ore use a child theme due to the hosting plattform we are using. Therfore creatig custom Placeholders doesn’t seem to be an option?

    Btw, I was looking for a full list of all usable placeholders with the Kadence custom email plugin, but wasn’t able to find one. And since I did read loads of the topics in the support forum I noticed that there are some that aren’t listed within the Plugin. I’d be graet if you were to add that!

    Looking foward to your ideas,
    Jan T.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hey,
    I’m not totally sure I know what you want but there isn’t a placeholder built into the plugin that outputs the shop address or site url.

    Unfortunately we are not able to edit the php code ore use a child theme due to the hosting plattform we are using. Therfore creatig custom Placeholders doesn’t seem to be an option?

    I suggest new hosting then, seems crazy that you wouldn’t be able to do anything custom and since you want something custom I don’t know what else to suggest.

    What placeholder are you seeing missing?

    Ben

    Thread Starter jantraeger

    (@jantraeger)

    Hey Ben,
    thanks for the fast help.

    I suggest new hosting then, seems crazy that you wouldn’t be able to do anything custom and since you want something custom I don’t know what else to suggest.

    Yep, I guess you are right.

    What placeholder are you seeing missing?

    Those are the ones listed:

    {site_title}, {order_date}, {order_number}, {customer_first_name}, {customer_last_name}, {customer_full_name}, {customer_username}, {customer_email}

    I am missing

    {invoice_pay_link}

    and a few more I think I saw while looking through this Forum.

    Jan

    • This reply was modified 4 years, 10 months ago by jantraeger.
    • This reply was modified 4 years, 10 months ago by jantraeger.
    • This reply was modified 4 years, 10 months ago by jantraeger.
    • This reply was modified 4 years, 10 months ago by jantraeger.
    Thread Starter jantraeger

    (@jantraeger)

    We just switched hoster and created the child theme. Can you link to the topic in which it is described how to create custom placeholders?

    Thanks a lot,
    Jan

    Thread Starter jantraeger

    (@jantraeger)

    I just found it!

    But since I have no coding experience and can’t find suiting code snippets anywhere, I am once again asking for your suport. Can I somehow grab the shop Adress of the shop the user is buying from?

    Hey,
    {invoice_pay_link} is a placeholder that only works in one place in one email. It’s not a placeholder you should add anywhere else in emails so it’s not listed as a possible placeholder because it’s not outside of the one email where it’s already added by default.

    You are using a multi-vendor-shop plugin, you would have to reach out to their support to find a function that would allow you to “grab the shop Adress of the shop the user is buying from” based on the order object passed in the email text information filter.

    I hope that helps,

    Ben

    Thread Starter jantraeger

    (@jantraeger)

    Okay, thanks for the effort. I will post the solution here when (and if) I find one.

    Thread Starter jantraeger

    (@jantraeger)

    Okay, so the code snippet to find the Vendro Adress is

    $vendor = get_wcmp_vendor( get_post_field( 'post_author', 'YOUR PRODUCT ID') );
    $vendor_address = $vendor->get_formatted_address()

    edit: I was hoping to be able to write a new function using Tutorials aviable online, but turns out I’m not. Would you be so kind to help?

    • This reply was modified 4 years, 10 months ago by jantraeger.
    • This reply was modified 4 years, 10 months ago by jantraeger.

    That requires a product ID, so you need to get a products from the order and loop through each since an order can have more then one product how are you planning to output this information? Or are you preventing orders from having more then one product.

    https://wordpress.stackexchange.com/questions/97176/get-product-id-from-order-id-in-woocommerce

    Ben

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Placeholder for Shop URL/Adress’ is closed to new replies.