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
Shipping Modifier in Ushopinput13 Class

Knowledge Base Lobby : uShop Support Conference : General Questions
Dec-13-17 08:18 AM EST
Original Message
Shipping Modifier in Ushopinput13 Class
Author Paul Cangialosi on 02-07-2001 at 19:19 (EST)
It is possible to create a negative Shipping Modifier? Or is it possible to have something have free freight while other products are based on weight? I used the weight calculation method. If I want to have something that is a Free shipment item and enter 0.00 as the weight it will still add the initial Y value to it.
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: Shipping Modifier in Ushopinput13 Class Bill Weiner, 2001-02-08 06:03:07 (1)

Messages In This Discussion
         1. RE: Shipping Modifier in Ushopinput13 Class
        Author Bill Weiner on 02-08-2001 at 06:03 (EST)
So it sounds like your are using the "Weight Formula" shipping calculation:

Shipping Charge = (ORDER WEIGHT * X) + Y

...but want a way to flag certain items as having FREE shipping?

Well, there is a modification that you can make to the "ushop-lib.pl" script that will allow you to specify negative Shipping Modifiers and/or negative Weights for your products.

To make this modification:

STEP 1: Make a backup of your current "ushop-lib.pl" file... just in case.

STEP 2: Open the "ushop-lib.pl" file with any text editor such as WordPad.

STEP 3: Do a search on the following line:

$vstring =~ s/[^0-9.]//g; # remove everything except numbers and periods.

And change that line to:

$vstring =~ s/[^-0-9.]//g; # remove everything except dashes, numbers and periods.

STEP 4: Save the file (as text if your editor asks).

STEP 5: Try it out by setting a negative value in "shipping_modifier" parameter and/or the "weight" parameter of the applets that you want to have Free shipping.

If that doesn't work, then maybe you can just use the shipping modifier for all of your products ... and not use the "Weight Formula" at all. That way you can just leave the free shipping items as having a "shipping_modifier" of $0.00.

Otherwise, you may just have to implement your own "custom_shipping" subroutine to calculate your shipping charges.

But in any case, we'll look into the possibility of providing a simple keyword for marking items as having free shipping.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.