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
Question on Applet 17 Arrangement

Knowledge Base Lobby : uShop Support Conference : General Questions
Nov-18-17 05:21 AM EST
Original Message
Question on Applet 17 Arrangement
Author AlexW on 12-12-2000 at 00:57 (EST)
Is is possible to re-order the arrangement of the fields in an applet to suit our layout needs?

That is, Input Applet 17 has the "item" selection menu then the "quantity" field, from left to right. Is it simple enough to reverse the order on that?

I have a client that would prefer the buyer select the quantity first, then the item for some odd reason and wouldn't mind changing it, if that's what they want.

Also, if the width parameter on an input applet's dimension is set as a percentage width, instead of a pixel width, would this cause certain browsers to render it incorrectly?

Thank you!

Awesome script, too ... very nice!
If it had a way to generate e-mail to the previous buyers as a group on demand, it would be close to perfect... With a two-level affiliate payout calculator, it WOULD be perfect!


Alex
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: Question on Applet 17 Arrangement Bill Weiner, 2000-12-12 09:05:24 (1)
            re: AlexW, 2000-12-13 13:34:44 (2)
                 re:re: Bill Weiner, 2000-12-13 15:29:08 (3)
                      re: AlexW, 2000-12-13 19:10:02 (4)
                           re:re: Bill Weiner, 2000-12-14 06:59:02 (5)
                                re: AlexW, 2000-12-14 16:35:25 (6)

Messages In This Discussion
         1. RE: Question on Applet 17 Arrangement
        Author Bill Weiner on 12-12-2000 at 09:05 (EST)
While some of the fields on the standard set of uShop applets can be hidden...there is not really an option to re-arrange them... at least not at this time. In the mean time, you may just have to use the uShop Java API to create your own custom applet. Or easier yet, maybe use regular HTML to design your own input < FORM > and then use the uShop JavaScript API to add the form information to the cart. See the JavaScript Input Examples in the Applet reference.

As for specifying the applet WIDTHs as a percentage instead of a fixed pixel width... you know, I've never actually tried that. But based on other experiences with browsers trying to resize tables with applets in them, I wouldn't be surprised if some browsers had problems with that... So I would recommend just sticking with the fixed pixel width.

Anyway, thanks for the nice compliments. Your email and affiliate features requests have been noted ;^)
TABLE OF CONTENTS
                 2. re:
                Author AlexW on 12-13-2000 at 13:34 (EST)
Bill,

Thank you ... just wondering.

Can the order form that's generated be set up to have the Item Quantity as the first column?


Alex
TABLE OF CONTENTS
                         3. re:re:
                        Author Bill Weiner on 12-13-2000 at 15:29 (EST)
You can hide columns in that shopping cart...but unfortunately, you can't reorder the columns in the shopping cart at this time.

(Unless you wanted to try modifying the ushop-lib.pl file. I'll put some instructions below in case you want to try.)

STEP 1: Make a backup of the 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 "sub get_cart_html" in order to locate the start of the subroutine that displays the shopping cart on the order form.

STEP 4: About 120 lines into that get_cart_html() subroutine, you will see the following line:

if ($cart_show_quantity =~ /yes/i)

Cut that line AND THE FOLLOWING 3 LINES (4 lines total) and paste them back about 16 lines earlier in that subroutine... directly before the line that says:

if ($cart_show_id =~ /yes/i)

This will handle moving the quantity column HEADER LABEL to the first column. In the next step, we will move the quantity column DATA to the first column.

STEP 5: About 190 lines into that "sub get_cart_html" subroutine, you will seen another line like this:

if ($cart_show_quantity =~ /yes/i)

This time cut that line and AND THE FOLLOWING 3 LINES (4 lines total) and paste them back about 37 lines earlier in that subroutine... directly before the line that says:

if ($cart_show_id =~ /yes/i)

STEP 6: Save the file (as TEXT if your editor asks) ... and try it out!

NOTE that when making the above changes, you have to be really careful where you are making the changes because the indicators that I gave you in Step 5 are identical to the indicators that I gave you in Step 6. Just note that the Step 5 changes are around line 120 and the Step 6 changes are around line 190 in that subroutine.

ALSO NOTE that the above changes will move the quantity column to be the left-most column in the shopping cart.... but it will not affect the location of the quantity column in the uShopCart applets... nor on the very first HTML shopping cart that is displayed after you press the uShopOrderButton applet. The changes will only affect the final shopping cart displays that are controlled by the CGI script.
TABLE OF CONTENTS
                                 4. re:
                                Author AlexW on 12-13-2000 at 19:10 (EST)
Bill,

I believe that I may have been a little unclear with the question. However, the example you've cited is now in our archives, because we intend to buy a lot of these licenses and I'm sure it'll come up in the future.

What I was getting to in the last question was inquiring about the possibility of changing the order in the data output on the "receipt". This particular client takes the e-mailed order forms and hand-enters them into a Peachtree database. Apparantly, the quantity field is the first entry. I've recommended that they set the database up with the same field order to make the input importable. But, if I could achieve a reorganization of the data output order, it might get them by with what they have in place.

Do you also have reference information on integrating the data to a backend accounting/database example? I'm sure it's straight forward, but I'd like to read through whatever you might recommend ...

Also, thank you for all your interest in this. I suppose the more scalable and air-tight Ushop is, the more valuable it will be for us all. Right now, it's handling a tremendous volume of products and orders with very few platform errors being reported. Overall, we're very happy with it!

Alex
TABLE OF CONTENTS
                                         5. re:re:
                                        Author Bill Weiner on 12-14-2000 at 06:59 (EST)
Oh, ok. I'll include some instructions below in case you want to try to make a change to the order of the columns on the email receipt.

In regard to integration with an accounting database backend, we don't really have any specific documentation on that at this time, but something that you may want to look into is the "Maintain Inventory Log" feature that is described in SECTION 11.1.6 of the uShop 3.0 User's Guide. When turned on, that feature will maintain a bar-delimited data file that can easily be imported into a spread sheet. (By the way the order of the fields in that data file can be adjusted by modifying the PRINT INV_LOG lines that are located in the "update_inventory_log()" subroutine of the "ushop.pl" file.)

Anyway, thanks again for the nice compliments :^) Here are the instructions on how to move the quantity column in the email receipt to be the left-most column:

STEP 1: Make a backup of your 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 "sub get_cart_text" in order to locate the start of the subroutine that formats the shopping card data for the email receipt.

STEP 4: About 68 lines into that subroutine, locate the following line:

if ($width_quantity > 0)

Cut that line AND THE NEXT 4 LINES (5 lines total), and move them back about 10 lines... directly before the line:

if ($width_id > 0)

STEP 5: About 138 lines into that subroutine, locate the following line:

if ($width_quantity > 0)

Cut that line AND THE NEXT 4 LINES (5 lines total), and move them back about 10 lines... directly before the line:

if ($width_id > 0)

STEP 6: Save the file (as TEXT if your editor asks)... and try it out!
TABLE OF CONTENTS
                                                 6. re:
                                                Author AlexW on 12-14-2000 at 16:35 (EST)
Bill,

That's perfect ... exactly what we needed.

Thank you so much!

Since we deal with a lot of application providers, I can tell you this with reasonable experience ... You and Microburst are fantastic support providers.

I'm sure you have a ton of long-range plans for mods to this program, and we can't wait to see what the next jump will be. Anything you could do to add more marketing functions and accounting integration would be well received.

Alex
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.