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
How?: Buy 5 get the next free

Knowledge Base Lobby : uShop Support Conference : General Questions
Dec-16-17 02:27 AM EST
Original Message
How?: Buy 5 get the next free
Author Chris Guth (Thomas Laboratories) on 04-18-2001 at 17:14 (EST)
Can this be done? Please help.
My company wants to be able for certain products to for every 5 items a custumer buys they get the next free.
ie.) Fish-Cillin, the customer bought 6 and 1 of the twelve they get free.
or bought 12 and 2 of the twelve they get free.

Thanks in advance,
Chris Guth, Webmaster
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: How?: Buy 5 get the next free Bill Weiner, 2001-04-19 05:05:01 (1)
            Thanks Chris Guth (Thomas Laboratories), 2001-04-19 10:22:13 (2)
                 RE: Thanks Bill Weiner, 2001-04-20 05:30:09 (3)
                      Thank you Chris Guth, 2001-04-20 09:51:58 (4)

Messages In This Discussion
         1. RE: How?: Buy 5 get the next free
        Author Bill Weiner on 04-19-2001 at 05:05 (EST)
There are several different options based on the type of input applets you are using. Here are a couple that could get you close:

OPTION 1) Try using the "CLASSIFICATION" parameter in combination with a price table. The classification/price table options are described in Section 4 on this page in the applet reference:

http://www.uburst.com/uShop/reference/ref_parameter_standards.html

It won't specifically make "one item free"... but will adjust the prices accordingly. For example, if your product is priced at $10 each... and you want to 6th item to be free, then you could set a price table like this:

QTY: 1 - 5 PRICE: $ 10.00 each
QTY: 6 PRICE: $ 8.33 each
QTY: 7 PRICE: $ 8.57 each
QTY: 8 PRICE: $ 8.75 each
QTY: 9 PRICE: $ 8.89 each
QTY: 10 PRICE: $ 9.00 each
QTY: 11 PRICE: $ 9.09 each
QTY: 12 PRICE: $ 8.33 each
QTY: 13 or more PRICE: $ 8.75 each

In which case, you could specify the price parameter as:

"1@$10.00,6@$8.33,7@$8.57,8@$8.75,9@$8.89,10@$9.00,11@$9.09,12@$8.33,13@$8.75"

OPTION 2) Or another option, perhaps you can use uShopInput15 or uShopInput16... which will show the customer the various discounts based on the quantity selected.

OPTION 3) Or as yet another option, perhaps you could use uShopInput17, uShopInput18, or uShopInput19... and bundle the quantities in the drop-down menu. Such as:

One widget
Pack of 6 widgets
Pack of 12 widgets

... and basically have a list of predefined quantities/prices.


Do these options give you any ideas?
TABLE OF CONTENTS
                 2. Thanks
                Author Chris Guth (Thomas Laboratories) on 04-19-2001 at 10:22 (EST)
Thanks you for the quick response, you guys are great.
I am going to use applet 17 since we get people ordering 360 of each item at times.

Is it possible to write a script that could work better than them having to select case lots,
Maybe using the classification?

I would be fine doing a simple price table but I don't want to have to do it for each quanity, plus
we have about 1000 products.
TABLE OF CONTENTS
                         3. RE: Thanks
                        Author Bill Weiner on 04-20-2001 at 05:30 (EST)
In hopes of being able to setup something with JavaScript, I took a look at the public methods that are available for use by JavaScripts (via the uShopJSI applet). There is a method called:

document.uShopJSI.getTotalQuantity()

... which can be used to get the total quantity, but unfortunately, there isn't any methods at this time that would allow you to get the total quantity based on "classification".

We'll see about adding a few more methods for obtaining that information more easily.

In the mean time, you may just have to stick with uShopInput17... either that, or maybe use one of the discount types that are available with the uShopDiscount1 and uShopDiscount2 applets.
TABLE OF CONTENTS
                                 4. Thank you
                                Author Chris Guth on 04-20-2001 at 09:51 (EST)
Thank you for your time, If i didn't have people ordering a few hundred items at a time i'd use the price paramaters but app 17 will work for now
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.