uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
Javascript use.

Knowledge Base Lobby : uStorekeeper Support Conference : Configuration Questions
Dec-17-17 12:38 PM EST
Original Message
Javascript use.
Author Paul K on 08-15-2001 at 08:03 (EST)
IS it feasable to include a javascript calculator in an order page to calculate price where the product is sold by the pound on a sliding scale where the price per pound drops as the buyer orders more product by weight? We have the script written to provide these calculations in a form using FORMAIL to send the order but our client wants to have this option built into the actual cart. The script works stand-alone and is not dependant on the FORMAIL to function.
Suggestions anyone. please email me. paul@webevo.com.
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: Javascript use. Bill Weiner, 2001-08-16 06:36:17 (1)

Messages In This Discussion
         1. RE: Javascript use.
        Author Bill Weiner on 08-16-2001 at 06:36 (EST)
So basically you want the price of the product to be dependent on the the total pounds of the product purchased? If so, could you just use uStorekeeper's quantity@price option (described in section 6.5.9 of the uStorekeeper User's Guide: http://www.uburst.com/uStorekeeper/UsersGuide.html ) ... and have the user enter the quantity as the number of pounds needed?

Otherwise, without modifying the uStorekeeper script itself to output your JavaScript (which would become quite involved) ... there really isn't a way to "elegantly" tie the JavaScript output into the price of the product. As a work around, you could try putting your JavaScript in the "Additional HTML" field of the product... and then add instructions to enter the calculated quantity/price into the product form in QUOTE format (also described in that section of the User's Guide).
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.