Hey there. I'm trying to find a way to paste multiple texts that I copied to my clipboard in the same snippet. I use a clipboard manager called Ditto and it allows me to copy multiple things and paste them using a shortcut (for example, Ctrl + Alt + 0, Ctrl + Alt + 9, etc).
What I am trying to accomplish is to create a snippet that will send an e-mail filling out an order number, the customer's e-mail address, and the shipping address, which are all copied separately.
For example:
Please fulfill order ORDER_NUMBER by EMAIL shipped to ADDRESS.
My clipboard manager would show something like this:
And the shortcuts to paste them is currently configured to this:
I tried using the Key Press option but it doesn't paste anything.
Please fulfill order {key: ctrl-alt-8} by {key: ctrl-alt-9} shipped to {key: ctrl-alt-0}.
If I manually press Ctrl + Alt + 8, it pastes the correct text.
Did you see our monthly update today about the {site} command working across multiple tabs. Would that work for you instead of copying and pasting multiple items?
In case it helps, WooCommerce order numbers are always above 20000 while Shopify order numbers are under 10000. Perhaps we can make a rule depending on the order number?
You are a freaking genius! That worked like a charm. It's just a shame it doesn't pop-up the selection window if I have both a Shopify and a WooCommerce order open, but I can live with that.
The selection popup does not show because each domain has only one corresponding tab to select. There is no need to make a selection for Shopify, as it has only one matching tab (and the same for WooCommerce).
If you want to always show the selection popup, you can set the select property to yes in the site command:
Click on select here:
Set it to yes in the right sidebar:
Note: It will still show both of the results in the selection popup (it will not actually allow you to choose the tab). If you want to choose a particular tab, you should use a formtoggle or a formmenu inside the snippet.
By the way @scott's suggestion works, and you can also simplify it to: