img

PaperCut Print Script of the Month #14 – Black Friday


In between internal training on Presto and KPAX I sat down with John and collaborated on the next idea for our famous PaperCut Print Script Of The Month.

Is it always left to the last minute? No, yes, maybe…sometimes real work gets in the way of the fun things and if we do not get any inspiration from support emails/calls for SOTM we have to start using our imagination.

With Paul enjoying £30 off a Sonos Play:1 from John Lewis and some of the support team buying cheap Amazon Echo Dots to play their Spotify playlists at home we thought a Black Friday themed Script Of The Month should be made (long live consumerism)!

Grab a cup of coffee and a biscuit (we suggest these) and we shall begin. The idea behind this script is to offer (but not advertise) discounted printing in a “flash sale” style. With different discounts applied throughout the day.

First thing to do is create a bunch of variables these will cover the discount to give, messages to show and the time to start the “flash sale”.

Now we will need to work out if the “flash sale” is on by checking the hour the job was sent and making sure it isn’t over the end hour. To do this we will use inputs.job.date.getHours() you can also use getDays() and getMinutes() if you really wanted to. Once we have worked that out, we can change the value of FLASH_SALE to true for the next part.

We have a variable set that we can use to tell us if the “flash sale” is on so we can put that in an if statement then use actions.client.prompOK() to inform the user and change the cost of the job to the discounted rate using inputs.job.cost().

All that is left to do now is to add a note to the job so that we don’t forget why the discount was applied, to do this we use actions.job.addComment().

That is it for this month and as always the complete print script is below. If you have your own requirements for a print script and you don’t have the time or in-house experience to make it then simply contact us.

Get in touch today | sales@selectec.com

sotm_14_black_friday
Latest News from Ross Malyon
img

Large spool files and PaperCut MF

We can’t promise this blog post will be a riveting read, the glimpse behind t...

Written by: Ross Malyon

More
img

Foldr V4 Updates for March

Foldr has released Foldr v4! The talented Foldr development team has been ...

Written by: Ross Malyon

More

img

We have worked with Selectec for a number of years now and they are the perfect PaperCut partner for us. The support team is fantastic and knowledgeable and the sales staff are superb. With the high level of service we get from Selectec we have no reason to consider using anyone else.

Martin Croft Direct-tec Group Ltd
This website works best using cookies which are currently disabled. We use cookies to help with our site analytics to improve our services.
Back to Top ↑