www.uburst.com www.uburst.com

"extra shipping/handling/cod price"

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

CGI Script Related Problems
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"extra shipping/handling/cod price"
Posted by christian on Nov-12-02 at 11:37 PM (EST)
Is it possible to show the costs for shipping, handling and cod as a extra position in the order reader
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: extra shipping/handling/cod pri..., Bill Weiner, Nov-13-02, (1)
extra shipping/handling/cod price, christian, Nov-18-02, (2)
RE: extra shipping/handling/cod pri..., Bill Weiner, Nov-18-02, (3)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: extra shipping/handling/cod price"
Posted by Bill Weiner on Nov-13-02 at 06:27 AM (EST)
That data is actually in the order files and accessible in the uShop CGI script via the global variables:

$totals_shipping
$totals_handling

So to display those two fields seperately instead of on just one "Shipping & Handling" line, it would require modifying the following two subroutines which are located in the ushop-lib.pl file:

sub get_cart_html
sub get_cart_text

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 . "extra shipping/handling/cod price"
Posted by christian on Nov-18-02 at 00:12 AM (EST)
I change the line "$formatted_output = sprintf("%s %.2f",$currency_symbol,$totals_shipping_and_handling)"
in two separat lines as
$formatted_output = sprintf("%s %.2f",$currency_symbol,$totals_shipping)+
$formatted_output = sprintf("%s %.2f",$currency_symbol,$totals_handling)
but the label is the same. Where can I change the label

In the line "sub get_cart_text" I'm not sure what I must change!

regards Christian

Remove this Message: Administrator and Moderator onlyClick 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
 
3 . "RE: extra shipping/handling/cod price"
Posted by Bill Weiner on Nov-18-02 at 05:48 AM (EST)
In the get_cart_html subroutine, you would actually need to duplicate the 6 lines after the "$formatted_output = sprintf...." line to, so that you create a new HTML TABLE row (Beginning with < TR > and ending with < /TR >).

Furthermore, there are actually two places in that subroutine that the change would have to be made. (One for the output when the shipping is taxed and one for the output when the shipping is not taxed.)

Because it is difficult to post code into this forum (due to formatting problems).... if you need some more help, just go ahead an submit a support request at:

http://www.uburst.com/supportform.html

... and I should be able to email you the code changes.

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.