Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 08-09-2002 00:12:39

Guest
Guest

Shipping/total calculation problem (help?)

I just want all orders to be $6 shipping. No matter what. I changed the shipping option to custom and changed the custom shipping variable to 6.00. Problem is, the cart subtracts amounts from total at checkout. It does it on all items and multiple items. Check out this link for more info:

Http://www.deadlydudley.com/help.gif

Please, someone have any suggestions?

 

#2 08-09-2002 06:17:45

Guest
Guest

Re: Shipping/total calculation problem (help?)

I did some more testing... I started using the weight custom shipping and just added a BASE variable as $6 and all the items have a 0.00 weight so 6+(x * 0.00) is always $6. BUT I get the same outcome, it always tries to get rid of the shipping. On the final page (as seen in the above link) it always subtracts just enough from the item total to negate the shipping. I changed the shipping to $5.88 and it changed the total accordingly to make it $3.40 (the item cost). So, what gives? HELP!  smile

 

#3 08-09-2002 08:40:56

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19724
Website

Re: Shipping/total calculation problem (help?)

Your example doesn't show the whole custom script.  Can you post it here.  My suspicion is that your hidden form field has 0.00 as the price.  That's what the program reads to figure out the shipping.


Nick Hendler

Offline

 

#4 08-09-2002 16:24:05

Guest
Guest

Re: Shipping/total calculation problem (help?)

#########
######### This custom script calculates shipping
######### based on user scripting.  The default script
######### uses a flat rate shipping fee.
#########
######### A listing of available variables:
#########
######### $ship_items_found     Count Of shippable items
#########
######### $ship_methods_found   Count of items with a
#########                       shipping method already
#########
######### $cart_items_found     Count of rows in the cart
#########
######### $cart_quantity_found  Total quantity of items
#########                       in the cart
#########
######### $tracking_subtotal    Subtotal of the prices for
#########                       all items in the cart
#########
######### $cart_total_weight    Total weight of all items
#########                       in the cart in pounds.
#########
######### Directly below, enter in the name for this
######### method to be displayed to the user.
#########

my $ship_meth_name = "USPS all sales (any size order)";
my $ship_total = "6.00";
my $ship_display = "$ship_meth_name - $currency_symbol$ship_total";

#########
######### Print the HTML display for the shipping
######### charge.
#########

print <<ENDOFTEXT;

<INPUT TYPE="HIDDEN" NAME="shipinfo" VALUE="$ship_meth_name:$ship_total">

<CENTER>

<TABLE WIDTH="100%" CELLPADDING="10" CELLSPACING="3">

<TR BGCOLOR="$html_pri_tablerow_color">

<TD VALIGN="TOP"><FONT FACE="$html_small_font_face" SIZE="$html_small_font_size" COLOR="$html_small_font_color"><B>Shipping Method</B> <FONT COLOR="$html_notnull_font_color"><B>$html_notnull_character</B></FONT><BR><BR></FONT>

<INPUT TYPE="RADIO" NAME="shipinfo" VALUE="$ship_meth_name:$ship_total" CHECKED> <FONT FACE="$html_base_font_face" SIZE="$html_base_font_size" COLOR="$html_base_font_color">

$ship_display

</FONT></TD>

</TR>

</TABLE>

</CENTER>

<BR>

ENDOFTEXT

 

#5 08-09-2002 18:57:31

Guest
Guest

Re: Shipping/total calculation problem (help?)

HELP! Everything is working (including integrating with Authorize.net!) *except* my shipping. Argh!

 

#6 08-10-2002 10:02:00

Guest
Guest

Re: Shipping/total calculation problem (help?)

Hey, I went ahead and paid for some tech support and filled out the tech form. To me, it seems like a small problem that I am overlooking something and hopefully you guys (knowing the software) can easily penpoint it. I *really* need this site functional by this weekend. Any chance you can look at it today?

Thanks,
Greg
deadlydudley.com

 

#7 08-10-2002 10:49:27

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19724
Website

Re: Shipping/total calculation problem (help?)

Ok.  We figured out your issue.  Basically we plugged in your script into a test install we built and found out that you have two problems:

(1) You have a hidden field for shipinfo, plus a radio button.  That is screwing the program up.  Only pass one field.

(2) This may be because we copied the code from the forum, but the last line: ENDOFTEXT had a space at the end of it.  That's not allowed.  It's got to be ENDOFTEXT with an enter right at the end.  Like I said, that's probably from the forum, so if you copy the code from here, look out for that.

Here is the working custom script:

######### based on user scripting. The default script
######### uses a flat rate shipping fee.
#########
######### A listing of available variables:
#########
######### $ship_items_found Count Of shippable items
#########
######### $ship_methods_found Count of items with a
######### shipping method already
#########
######### $cart_items_found Count of rows in the cart
#########
######### $cart_quantity_found Total quantity of items
######### in the cart
#########
######### $tracking_subtotal Subtotal of the prices for
######### all items in the cart
#########
######### $cart_total_weight Total weight of all items
######### in the cart in pounds.
#########
######### Directly below, enter in the name for this
######### method to be displayed to the user.
#########

my $ship_meth_name = "USPS all sales (any size order)";
my $ship_total = "6.00";
my $ship_display = "$ship_meth_name - $currency_symbol$ship_total";

#########
######### Print the HTML display for the shipping
######### charge.
#########

print <<ENDOFTEXT;

<CENTER>

<TABLE WIDTH="100%" CELLPADDING="10" CELLSPACING="3">

<TR BGCOLOR="$html_pri_tablerow_color">

<TD VALIGN="TOP"><FONT FACE="$html_small_font_face" SIZE="$html_small_font_size" COLOR="$html_small_font_color"><B>Shipping Method</B> <FONT COLOR="$html_notnull_font_color"><B>$html_notnull_character</B></FONT><BR><BR></FONT>

<INPUT TYPE="RADIO" NAME="shipinfo" VALUE="$ship_meth_name:$ship_total" CHECKED> <FONT FACE="$html_base_font_face" SIZE="$html_base_font_size" COLOR="$html_base_font_color">

$ship_display

</FONT></TD>

</TR>

</TABLE>

</CENTER>

<BR>

ENDOFTEXT


Nick Hendler

Offline

 

Board footer