Help - Search - Members - Calendar
Full Version: oscommerce template - programer help needed
Get Paid Forum - Get Paid Discussion > Webmaster's Corner > Advertising Section related to Running a website > Other Offers & Requests Related to Running a Website
richardjlee
Hi there, not sure if this is the correct place to write this, seems to be the best suited anyways.

I'm looking for someone who has experience with oscommerce templates, im having a problem with one of my sites, when going through the checkout and when you click the continue button, nothing happens. I think what i need to do is change the destination of this button during the checkout process to the correct php file, however im not sure where i can do this, which file it is that i need to access. Can anyone help me? Thanks.
ballpark5000
Hi, how are you?
I'm a web developer, I used to operate a site using OsCommerce. I'm not entirely familiar with it, but I know my way around php. I can try to help! What version of oscommerce are you using? And, did you buy the template from somewhere/download it for free, and if so, where did you get it? That way I can download it quickly and take a look. Any info will help!
richardjlee
QUOTE (ballpark5000 @ Jun 25 2008, 06:09 PM) *
Hi, how are you?
I'm a web developer, I used to operate a site using OsCommerce. I'm not entirely familiar with it, but I know my way around php. I can try to help! What version of oscommerce are you using? And, did you buy the template from somewhere/download it for free, and if so, where did you get it? That way I can download it quickly and take a look. Any info will help!



Hi there, i appreciate your help very much, been mind boggling all day, no doubt it be something simple now aa.gif What happens is when a customer goes to buy a product, its added to the cart, they are then taken to login or sign up, so far so good, then takes them to the shipping section where they select the address, heres the odd bit, when they click continue its destination is the same page checkout_shipping.php, i need it to go to checkout_payment.php. Any ideas what file needs to be added. Also i bought the template from somewhere while back, its www.thebigscript.com feel free to go through the checkout process to see for yourself. ill remove you account later no worries.

Cheers,
Rich
ballpark5000
This could be one of a few things. If you only sell virtual products that don't require shipping there's a function in OsCommerce that tells it to skip shipping altogether... in checkout_shipping.php line 58 it should say tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));

Other than that, there's a few things it could be.
1. Make sure all the information for the payment module you are using is correct and make sure the module is active.
2. In checkout_process.php on line 17 (at or around) make sure it says $navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_PAYMENT));
3. The next two lines of code are from checkout_shipping.php; just make sure they match
line 126: tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
line 136: tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));

Try this out... if not, there's one more thing we could look at; but if it doesn't work then it looks like you got a bad template and I would suggest getting another because a flaw in a checkout process poses a security threat.
ballpark5000
And I forgot, in the actual template files there are a few .php files. there should be one called something like display_output.php (in the includes folder). This is where all the images are declared. I noticed your continue button doesn't even link to anything at the moment. Somewhere in this file the continue button image is declared. Make sure it connects to filename_checkout_payment. Luckily what's wrong isn't a security threat, it's just a button that doesn't link to anywhere.
richardjlee
Unfortunately still not luck. Have check all the code you mentioned, all seems fine, even pasted your code to ensure and re-uploaded the files. No luck. I dont understand what it could be. Thanks for your help though i really appreciate it.
richardjlee
SOLVED IT! Thanks ever so much though for your help, you have been fantastic. Wish there were more people like you around.

Thanks again!
Rich
ballpark5000
I'm glad you solved it! Haha it was even bugging me, I tried to think of everything... what did it end up being?
richardjlee
aa.gif Its actually so simple its embarrassing! Turns out that the sql table that had been imported about a year ago when the site was originally set up was faulty. So I found another table and imported it fresh then imported my listings data. Seemed to work fine. Also i noticed there seems to be another bit of information shown during the checkout process regarding the shipping. So I believe that the module for shipping must have been incorrect before hand so in all you were definitely on the rights tracks.

Really I'd say you cracked the case so well done and thank you! ac.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.