jeremyja Posted September 18, 2011 Posted September 18, 2011 Hi, I need when costumer click on "Checkout" to redirect them to my contact form. So, I want to skip all confirmation, login, if / else things. Just simple redirect to another page. I found this code that suits good onclick="location.href='www.something';" BUT I have no idea where to put it. Do I need to create new php file? Or delete everything in checkout_shipping.php and put this? How? Can someone please help me?
Guest Posted September 18, 2011 Posted September 18, 2011 Jeremy, Your simplifying a complicated process. In order for the client to get to checkout_process.php, they must sign in or create an account, so you can't bypass login/create account or anything else because the process is initiated prior to that point. If you can trying to create an inquiry cart, there is a contribution already available to do that. Chris
jeremyja Posted September 18, 2011 Author Posted September 18, 2011 Ok, but I deleted checkout_process.php, checkout_confirmation.php... and all files related to checkout. Now when I click on checkout button I get "page not found". Can't I just make new file there that will do the job?
kohalabill Posted September 18, 2011 Posted September 18, 2011 In the /catalog/shopping_cart.php the button for checkout is here: <div class="buttonSet"> <span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CHECKOUT, 'triangle-1-e', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary'); ?></span> </div> You could change the FILENAME_CHECKOUT_SHIPPING to FILENAME_CONTACT_US, but you would also have to do that for the button in the header.php also. I'm sure you would want to change the text on the contact_us.php page in the catalog/includes/english/contact_us.php page. It seems to me there may be other problems in doing this such as orders are not recorded inventory etc...
jeremyja Posted September 19, 2011 Author Posted September 19, 2011 Thanks kohalabill. That worked like a charm. I don't care about recorded inventory, because visitors wont be able to order anyway. I just want shopping cart to showcase the prices.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.