Guest Posted March 5, 2003 Posted March 5, 2003 Okay, day 3 of working on the same piece of code and nearly there, however .... Trying to skip checkout_shipping altogether (I use zone shipping with no options so there's no need for user to select a shipping option - I'm also scrapping the alternative shipping address, therefore no need for the page to be seen at all). checkout_shipping is still needed though to calculate the shipping depending on zone, so I thought the easiest way would be to chop out all the display elements of the page, get it to do what it does and then redirect to checkout_payment. (don't really know much php, so it's been real trial and error). The stage I'm at this morning is that on going to checkout_shipping I have a blank screen apart from the Continue button - click on the button, all is OK - goes to payment etc etc, shipping rates correct. It seems like that until the Continue button is pressed, the shipping rate hasn't been stored - how do I force the "default" shipping (which if there was anything on the screen would be the only one displayed) to be stored before then? Without doing this (ie: just removing the button and replacing it with a redirect) it'll redirect OK but shipping is always 0.00. I hope that makes sense! It's really annoying me now, as it seems such a simple thing that I'm trying to achieve, yet my own lack of knowledge lets me down :oops: Thanks, Ali www.freelollies.co.uk Quote
Paul_w Posted March 5, 2003 Posted March 5, 2003 I would guess that the problem is down to the need to pass all necessary variables on to the next page, normally by clicking the 'continue' button you would be posting all form variables to the following page. If you are going to redirect directly to that page then you need to build all the necessary variables and pass them via GET in the re-direct, also you will then need to change any necessary POST methods to GET on the following page where the variables are called. Hope this helps! Paul Quote
Guest Posted March 5, 2003 Posted March 5, 2003 Thanks Paul, that's exactly what I needed to know ... :D I knew there had to be another way was passing all the parameters - I just didn't know what it was. Now I've just got to find out about GET and how to use it. :roll: Google time methinks! Thanks, Ali www.freelollies.co.uk Quote
Paul_w Posted March 5, 2003 Posted March 5, 2003 Now I've just got to find out about GET and how to use it. :roll: Simple really! header("location : mypage.php?var1=whatever&var2=something&var3=etc"); just make sure you name the variables correctly and pass all that are needed. You could try echoing all the form parameters from the original (unmodified) page to see what exactly needs to be passed across.... Paul Quote
mbianchi Posted March 19, 2003 Posted March 19, 2003 This would be a great "Contribution." There are several great uses to bypass shipping! One use that I have is the ability to have the product (tickets) available at a "Will Call" window. Is there a PHP god out there interested in tackling the challenge of bypassing shipping? I would but my php skills are quite limited. Thanks! Mark Dayton Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.