| Author | Message | 
	| yourmom327 Newbie - One Blade
 
 
			Joined: 17 Apr 2007Posts: 12
 
 
   |   SBW Realtime AND Custom Shipping Logic 
			Can we use both?
 My client ships using USPS and UPS, but when a quantity of 6 or more are ordered they offer free UPS ground shipping.
 
 Need to code this option in with an option to choose faster shipping at the customers cost. I've tried a few things and nothing working. :0(.
 
 Thanks
 
 Lori
 
 
 | 
	| Mon Apr 23, 07 12:24 pm |     | 
	|  | 
	| yourmom327 Newbie - One Blade
 
 
			Joined: 17 Apr 2007Posts: 12
 
 
   | 
			I was able to add a free ship option on the cart, BUT, is there a way to have it not show up or be active unless the requirements are met...the way it is now you can choose it for any size order and it will apply free shipping. Need it to not show or work unless the order is 6 or more pieces.
 Lori
 
 
 | 
	| Mon Apr 23, 07 12:53 pm |     | 
	|  | 
	| scottcrew Moderator
 
   
			Joined: 13 Feb 2004Posts: 7516
 Location: The West Side of MI USA
 
   | 
			Lori,
 
You will need to set it up in the custom shipping logic.
 
It doesn't need to be dependant on a shipping method chosen.
 
What version of the cart are you using?
			 _________________ God Bless!
 
Bonnie - AgoraCart Moderator
Get a Gold Membership | 
	| Mon Apr 23, 07 2:49 pm |              | 
	|  | 
	| yourmom327 Newbie - One Blade
 
 
			Joined: 17 Apr 2007Posts: 12
 
 
   | 
			The latest version
 
 | 
	| Mon Apr 23, 07 4:39 pm |     | 
	|  | 
	| scottcrew Moderator
 
   
			Joined: 13 Feb 2004Posts: 7516
 Location: The West Side of MI USA
 
   | 
			Set it up in the custom shipping logic and set it to run "before". _________________ God Bless!
 
Bonnie - AgoraCart Moderator
Get a Gold Membership | 
	| Mon Apr 23, 07 5:39 pm |              | 
	|  | 
	| yourmom327 Newbie - One Blade
 
 
			Joined: 17 Apr 2007Posts: 12
 
 
   | 
			Thanks Bonnie, this is what I have set up:
 Use Custom: yes
 When: before
 Measured by weight: no
 
 
 Code:
 @sc_shipping_logic = ( "|384.00-|||0");
 #
 $shipping_price = &calculate_shipping($temp_total,
 $total_quantity, $total_measured_quantity);
 
 How many Custom Methods: 1
 Method Name: Free Shipping     Name for Form Lists: Free UPS Ground (6 or more sets)
 
 And I added an option on the order form.....maybe that is where my mistake is???
 
 Lori
 
 
 | 
	| Mon Apr 23, 07 5:47 pm |     | 
	|  | 
	| yourmom327 Newbie - One Blade
 
 
			Joined: 17 Apr 2007Posts: 12
 
 
   | 
			ok scratch all that. Here is what the client wants:
 This is a one item shopping cart
 
 To use real time USPS priority mail when ordering 1 piece
 To use real time UPS when ordering 2-5 pieces, offering UPS Ground , 2nd Day and Next Day
 To offer FREE UPS ground when ordering 6 or more pieces but also offer real time 2nd Day or Next Day at customers cost
 
 Have these options only show when applicable, IE
 if one ordered, only option real time priority (guess this could be custom since all would be the same cost)
 if 2-5 ordered UPS only, Ground, 2nd or Next Day realtime costs
 if 6 or more ordered only UPS Ground with 0.00 cost or 2nd Day and Next Day with realtime costs
 
 I'm going to work on this some more to see if I can get it to work, butint he meantime, any help is appreciated.
 
 Lori
 
 
 | 
	| Mon Apr 23, 07 7:21 pm |     | 
	|  | 
	| scottcrew Moderator
 
   
			Joined: 13 Feb 2004Posts: 7516
 Location: The West Side of MI USA
 
   | 
			Lori,
 
I have never seen that done and don't know where to start to try and make that happen.
 
Sorry.
			 _________________ God Bless!
 
Bonnie - AgoraCart Moderator
Get a Gold Membership | 
	| Tue Apr 24, 07 4:16 am |              | 
	|  | 
	| yourmom327 Newbie - One Blade
 
 
			Joined: 17 Apr 2007Posts: 12
 
 
   | 
			Thanks Bonnie, I'm gonna tell him it just has to be the way it has to be LOL. But I've messed with it so much now that I don't know what I have in there now.
 He wants the shipping methods to be driven by the number of products in the cart, and I am sure that can not be done, unless I can code to auto add shipping based on this:
 
 1 item=USPS Priority $6.50
 2-5 items=SBW UPS Ground, UPS 2nd DAY or UPS NEXT DAY
 6+ items=$0.00 , SBW UPS 2nd DAY or UPS NEXT DAY
 
 I just signed up to be a pro member so I can maybe pick their brains over there.
 
 Another idea: If I actually make 3 product options or 3 different products:
 
 Ordering 1 and add shipping price in product code
 Ordering 2-5
 Ordering 6 or more
 
 Lori
 
 Have a great day!
 
 
 | 
	| Tue Apr 24, 07 4:41 am |     | 
	|  | 
	| Dan Guest
 
 
			
 
 
   | 
			you might be able to do that with agorascript in step one. a conditional statement based on qty displays particular options.
d
 
 
 | 
	| Tue Apr 24, 07 4:51 am |  | 
	|  | 
	| yourmom327 Newbie - One Blade
 
 
			Joined: 17 Apr 2007Posts: 12
 
 
   | 
			Really? How?
 I am really just a designer trying to muddle her way thru programming LOL. I can do very basic agora programming but this is WAY over my head.
 
 Thank you!
 Lori
 
 
 | 
	| Tue Apr 24, 07 4:54 am |     | 
	|  | 
	|  |