www.uburst.com www.uburst.com

"Discounts in v3.5"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

General Questions
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Discounts in v3.5"
Posted by Nancy Bohs on Sep-30-02 at 11:04 AM (EST)
Is there any work-around for the uShopDiscount1 applet and Javascript Discount only working with percentage values?

OR

Is there any way to automatically apply coupons based on subtotal?

(I really miss the subtotal flat rate discount from version 2.)

Thanks!

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: Discounts in v3.5, Bill Weiner, Oct-01-02, (1)
discount solution, Nancy Bohs, Oct-01-02, (2)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Discounts in v3.5"
Posted by Bill Weiner on Oct-01-02 at 04:49 AM (EST)
There are a couple ways to handle that... here's one:

Try utilizing the uShopJSI JavaScript function "setCouponNumber(String newValue)" to set the coupon number based on the "getSubtotal()" value.

That is:

STEP 1: Add the uShopJSI applet to the page where you want to set the coupon number.

STEP 2: Write a JavaScript like this that get's kicked off probably from the page's "onLoad" function:

function setCouponBasedOnSubtotal()
{
var subtotal = document.uShopJSI.getSubtotal();
if (subtotal >= 100)
{
document.uShopJSI.setCouponNumber("12345");
}
else if (subtotal >= 10)
{
document.uShopJSI.setCouponNumber("67890");
}
else
{
document.uShopJSI.setCouponNumber("12321");
}
}

Refer to the uShop Programmer's Guide for more information on using JavaScripts with uShop:

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

Also refer to the JavaScript Example in the Online Applet Reference:

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

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "discount solution"
Posted by Nancy Bohs on Oct-01-02 at 01:19 PM (EST)
Thanks for the quick reply! This is exactly what I need. I had tried using setDiscountRate() but got hung up by the percentage thing.
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.