Reply To: Subtracting Percentage from Pricing Script

#95358

This night I thought about a cool way to play this game!

I suppose your layout is a puzzle of text frames! for each, there is (are) product(s) and a “%” +/- change.

So, 2 types of scripts:

1/ For defining what kind of % you apply: with the “black-arrow” tool, you select a text frame and play this script:
=> its fill-color (actually “none”) becomes Red30% (or Red50% or Red70% …). That means you’ll apply a -30% (or -50% or -70% …) to all the prices into it.
=> its fill-color (actually “none”) becomes Green5%. That means you’ll apply a +5% to all the prices into it …
a one-code-line script per color (duplications).
So, you can do this very quickly as a cool game: click-click-click…! Nothing to type!

2/ When all is done, just launch the “big” script:
It will loop on the text frames: if a fill-color == “Red30%”, it will change the color to “none”, insert “”SAVE 30%. ” text (in red) in the first line, barres the prices and adds new prices with +/– %.

That’s all!

When time, I’ write it! Just for fun!

(^/)

This article was last modified on June 13, 2017

Comments (0)

Loading comments...