Have your say in Community Polls: What was/is your greatest motivation to start your own business?

new order printer: tip code - help! shopify support had zero idea

Solved

new order printer: tip code - help! shopify support had zero idea

gci
Excursionist
12 0 3

The following code worked perfectly in the "legacy" order printer but shows nothing in the new order printer (thanks, @Shopify!).

Shopify support chat led us on for over an hour only to finally admit they could not / would not help. Any ideas?

<td>{% unless line_item.title ==  'Tip' %}<b>{{ line_item.title }} {%else%} Tip: Thank you so much!{%endunless%}

</td>

 

Accepted Solution (1)

MakP
Shopify Partner
33 9 13

This is an accepted solution.

FYI for you and anyone else finding this in the future: I was looking into this again for another user and found that the issue with tip lines seems to certainly be caused by the new order printer app and has nothing to do with any of us making errors in our code.

 

Link to my reply in the other thread:

https://community.shopify.com/c/technical-q-a/order-printer-add-thanks-for-tip-line-on-invoice/m-p/2...

View solution in original post

Replies 8 (8)

Erin
Shopify Staff (Retired)
1116 137 182

Hi, @gci. Old templates from the original Order Printer app cannot be copy and pasted directly to the new Shopify Order Printer app without changes. You'll want to follow these steps to migrate from the Order Printer app to Shopify Order Printer. We may be able to assist with customizations to templates, but these are assessed on a case by case basis so I wouldn't be able to say what we can do for certain. If you'd like us to take another look please contact our support team through the Help Center here. You can also hire help from a Shopify Partner to assist you with this.

Erin | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

SGM411
Excursionist
29 0 20

Disappointed in your reply, @Erin 

We know templates from the "legacy" order printer can't be simply copied and pasted into the new order printer...that's why we're asking here.

The page you linked to does not fully address the attributes/fields we referenced...again, that's why we're asking here.

You suggest we contact your support team...like we wrote, already contacted your support team (and wasted over an hour with them without getting any help)...yet again, that's why we're asking here. 

Suggesting customers spend more $$$ on outside help and third-party apps to make up for Shopify's lacking service is also a consistent reply from Shopify. If we had the money for this, do you think we'd be asking here?

Based on your response, it doesn't seem like you actually read what we wrote at all. Unfortunately, this is consistent with pretty much all the experiences we've had with shopify support.

MakP
Shopify Partner
33 9 13

This may sound weird, but does your table have a border? If not, and there is still a good chance this won't solve your particular issue, but try adding a border to your table like this:

 

<table style="border: 1px solid black;">
..
...
....
</table>

 

I noticed that if my container did not have a border only one line item would be visible. They exist if I inspected the page source, but they won't show up on the print preview because the app frame is hiding them. So when I was testing your code snippet with no border I could only get 1 line item to show - When I added a border, all line items began showing fine.

 

I am also very frustrated with this new order printer. I have already found several issues that there seem to be no good answer for, and an equal number that require odd workarounds such as this.

gci
Excursionist
12 0 3

Thanks, @MakP ! Appreciate ya taking the time to share this. 
Unfortunately, this didn't solve it, but thanks for sharing it as it may help other users! 

Totally feel ya on frustration with @Shopify 's new Order Printer -- and that they randomly changed liquid implementation and hid other quirks (like your table discovery -- thanks again!) in this useless "update" while they let us customers pay for the opportunity to test it and debug it for them is just another reason among many that we're actively looking for another provider.

MakP
Shopify Partner
33 9 13

 

Sorry it didn't work. Only Other thing I could think of off the top of my head would be to change your unless statement to look at the variant ID just to make sure there is nothing screwy going on with the line item title. That would look like this:

"{% unless line_item.variant_id == 123456789123456  %}" (Note that the variant ID number is not in quotes. That is important)

 

If you're not sure how to get the variant ID, you can find it by going to that specific product page in your admin and adding .json to the end of the URL. For example:

https://admin.shopify.com/store/{YOUR-STORE-NAME}/products/987654231564.json

 

Then find where it says "Variant", then get the ID nested under it:

 

MakP_0-1716309445459.png

 

And yes, it definitely feels like we're beta testing this for them. There are some things it cannot do that we have relied on for years and I'm a bit terrified they will not fix these issues before sunsetting the legacy app.

MakP
Shopify Partner
33 9 13

This is an accepted solution.

FYI for you and anyone else finding this in the future: I was looking into this again for another user and found that the issue with tip lines seems to certainly be caused by the new order printer app and has nothing to do with any of us making errors in our code.

 

Link to my reply in the other thread:

https://community.shopify.com/c/technical-q-a/order-printer-add-thanks-for-tip-line-on-invoice/m-p/2...

gci
Excursionist
12 0 3

Thank you, @MakP! Appreciate you looking into this and posting (especially when @Shopify isn't). 

Taking the liberty of copying and pasting from your other thread's post because we think it is spot on and great advice:

"I recommend sending a support email (https://help.shopify.com/en/support/support-type). I do not recommend the live chat as I and many others have had issues with poor support through that method.

 

I also encourage you or anyone else reading this that is frustrated with this new app to leave an honest review on the new order printer app's store page. In 3 months they will sunset the legacy app and I worry that they will not fix issues such as this unless they are encouraged by an influx of negative reviews and support tickets."
https://community.shopify.com/c/technical-q-a/order-printer-add-thanks-for-tip-line-on-invoice/m-p/2...

MartinP1
Visitor
1 0 0

Hi GCI,

 

It seems the unless condition doesn't work.  Why not use the if condition, it will still achieve the result you need.  

{% if line_item.title == "Tip" %}<b>{{ line_item.title }} {%else%} Tip: Thank you so much!{% endif %}