How can i hide color and size text from print label ?

I want to hide or remove the color and size title from all products print label.

Example: In this print label i want to hide 'Green Extra Small' text. I want to show only the product title and price.


2 comments

  • TrolleyMuseumTrolleyMuseum Member Posts: 19

    Go into your print templates in POS under "settings" and you can alter what information prints on your label. Look for something like this....

    {% set hide_description = false %}                 {# Remove the description from displaying on label #}

    Change the FALSE to TRUE and give it a go....

    🙂

  • Adrian SamuelAdrian Samuel Moderator, Lightspeed Staff Posts: 654 moderator

    Hey @arian & @TrolleyMuseum ,

    It is a little more complex than setting a boolean option. The description contains everything including the base name of the matrix product including the product and size variant specifications.

    In this example the item's name "Cotton T-shirt Green Extra Small"

    So the base name is "Cotton T-shirt"

    The Color and Size is "Green Extra Small"


    In the template response these things aren't split up.

    The only way to successfully remove elements in the description is to remake it.

    To do this you must make a call to the Item endpoint for this itemID and get the respected details with the following call:

    https://us.lightspeedapp.com/API/Account/{accountID}/Item/{itemID}.json?load_relation=["ItemAttributes","ItemAttributes.ItemAttributeSet"]

    Then you take the matrix variant details, store that in a variable, then take the matrix description from the response and remove the variants from that and then display that.


    An example of how to do this can be found here:

    https://gist.github.com/Adrian-Samuel/6188cac509f69e0cff3adf00fb627dd2

    Adrian Samuel

    Software Developer

    Lightspeed HQ

Sign In or Register to comment.