Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

Calculating Cost by Quantity Ordered
Last Post 08-01-2013 09:13 AM by Ryan Bakerink. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
KyleUser is Offline
new to the springs
new to the springs
Posts:4
Avatar

--
07-31-2013 09:21 AM
    I have three fields -

    1. quantity (the conditional is (if this field is equal to or less than 50, the total price will be 0, otherwise if 51 or more, calculate the fixed item_price by quantity)

    2. item_price (the fixed price of the item )

    3.

    4. total_price (calculate cost if quantity is => 51


    I've seen the documentation here on calculations however to me it's not very clear and just not the example I can use as a guide.

    Thanks in advance to anybody that can help me out.

    Regards,

    Kyle



    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    08-01-2013 09:13 AM
    Hello Kyle,

    You'll want to use JavaScript to perform this conditional calculation. Here's an example that will work only if:

    The shortfieldnames of your tokens are as described above:

    var Qty = $(quantity);
    var Price = $(item_price);
    var Total = 0.00;
    if(Qty > 50)
    {
    Total = (parseFloat(Qty) * parseFloat(Price));
    }
    else
    {
    Total = 0.00;
    }

    You can tailor this any way you need, but this JavaScript provided is based on my understanding of your requirements above.

    You'll probably want to embed this JavaScript in your Calculate / Estimate button.

    Let me know if you have any questions.

    Thanks,

    Ryan
    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi