Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Offer discount for ordering certain amount of products - coding help!

New Here ,
Dec 19, 2019 Dec 19, 2019

I am trying to set up a conditional statement that goes like this: If a customer selects 6 or more products from a list of all possible products, then they will be offered 10% off of their subtotal. I have a field set up to calculate the "Total Quantity" of products ordered and a field for the "Subtotal". I then have a field set up for what the discounted price shoud be, once the 10% is taken off - "Discounted Subtotal. 

 

I have tried with no success to set this up correctly. Any help/ideas would be greatly appreciated! Thanks!

TOPICS
Acrobat SDK and JavaScript
387
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 20, 2019 Dec 20, 2019

Hi,

 

Can you share in greater detail the steps yhat you've followed?

 

And how big is the list of items that the user selects from? Does the user selects these items from a dropdown menu?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 20, 2019 Dec 20, 2019
LATEST

Here is an article on setting up conditional calculations:

https://acrobatusers.com/tutorials/conditional-execution

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines