Print multiple promotions

General Discussions
Member
Posts: 25
Joined: Mon Aug 22, 2016 3:51 pm

Print multiple promotions

Postby gmollineau » Mon May 29, 2017 1:25 pm

Hi

Is there a way that I can print more than one Promo message at the same time?

I have a message that I want to print on all days of the week and another message that I want to print only from Tuesday through to Sunday.

How do I get both messages to print on the invoice at the same time?

Gerry

Site Admin
User avatar
Posts: 2088
Joined: Wed Apr 16, 2003 4:35 pm
Location: Western PA

Re: Print multiple promotions

Postby Scott » Tue May 30, 2017 5:55 am

The only way to get more than one is by using enhanced graphical receipts. Put the %pr (promo message) variable in your script 2 times to get 2 different promo messages.

On Mondays you will end up with 2 of the same message unless you setup another promo message (even a blank one with ---- or something) to run only on Monday since your receipt will want at least 2 different ones for each day of the week in your case.

Scott

Member
Posts: 25
Joined: Mon Aug 22, 2016 3:51 pm

Re: Print multiple promotions

Postby gmollineau » Thu Jun 01, 2017 5:18 am

Thank you very much Scott.

this is wonderful.

Member
Posts: 25
Joined: Mon Aug 22, 2016 3:51 pm

Re: Print multiple promotions

Postby gmollineau » Thu Jun 15, 2017 11:44 am

Hi Scott

When I put the %pr variable twice, I am getting the same promo message printing twice.

Maybe I am missing something?

Gerald

Site Admin
User avatar
Posts: 2088
Joined: Wed Apr 16, 2003 4:35 pm
Location: Western PA

Re: Print multiple promotions

Postby Scott » Thu Jun 15, 2017 4:18 pm

Hmmm, it should make two separate calls getting two different results. I will have to try this when I get back into the office.


Scott

Member
Posts: 25
Joined: Mon Aug 22, 2016 3:51 pm

Re: Print multiple promotions

Postby gmollineau » Wed Jun 21, 2017 6:55 pm

Hi

Did you try it? Can you advise me on how to do it properly?

Site Admin
User avatar
Posts: 2088
Joined: Wed Apr 16, 2003 4:35 pm
Location: Western PA

Re: Print multiple promotions

Postby Scott » Thu Jun 22, 2017 12:34 pm

I tried it here, and it does the same thing. I investigated the script code processor, and this is the expected behavior after looking through it's design. It replaces ALL instances of specific variables with the current data at one shot. Therefore they will all be the same. The script interpreter was designed that way for increased performance. There is no way to get 2 different messages since this is the case.

In the future a 2nd promo variable could be added like %pr2 or something similar, allowing for a different message than %pr.

I will see about doing this in the next update.


Scott

Member
Posts: 25
Joined: Mon Aug 22, 2016 3:51 pm

Re: Print multiple promotions

Postby gmollineau » Thu Jun 29, 2017 4:37 am

Hi Scott

Thanks for the update

Return to General Forum

Who is online

Users browsing this forum: No registered users and 1 guest