Print multiple promotions

General Discussions
Post Reply
gmollineau
Active Member
Active Member
Posts: 30
Joined: Mon Aug 22, 2016 4:51 pm

Print multiple promotions

Post by gmollineau »

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
User avatar
Scott
Site Admin
Site Admin
Posts: 2566
Joined: Wed Apr 16, 2003 5:35 pm
Location: Western PA

Re: Print multiple promotions

Post by Scott »

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
gmollineau
Active Member
Active Member
Posts: 30
Joined: Mon Aug 22, 2016 4:51 pm

Re: Print multiple promotions

Post by gmollineau »

Thank you very much Scott.

this is wonderful.
gmollineau
Active Member
Active Member
Posts: 30
Joined: Mon Aug 22, 2016 4:51 pm

Re: Print multiple promotions

Post by gmollineau »

Hi Scott

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

Maybe I am missing something?

Gerald
User avatar
Scott
Site Admin
Site Admin
Posts: 2566
Joined: Wed Apr 16, 2003 5:35 pm
Location: Western PA

Re: Print multiple promotions

Post by Scott »

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
gmollineau
Active Member
Active Member
Posts: 30
Joined: Mon Aug 22, 2016 4:51 pm

Re: Print multiple promotions

Post by gmollineau »

Hi

Did you try it? Can you advise me on how to do it properly?
User avatar
Scott
Site Admin
Site Admin
Posts: 2566
Joined: Wed Apr 16, 2003 5:35 pm
Location: Western PA

Re: Print multiple promotions

Post by Scott »

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
gmollineau
Active Member
Active Member
Posts: 30
Joined: Mon Aug 22, 2016 4:51 pm

Re: Print multiple promotions

Post by gmollineau »

Hi Scott

Thanks for the update
Post Reply