Advance software forum
May 18, 2012, 07:53:18 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Ajax Checkout - globals problem  (Read 2931 times)
0 Members and 1 Guest are viewing this topic.
bunnyboy
Newbie
*
Offline Offline

Posts: 1


View Profile
« on: January 26, 2009, 10:09:33 AM »

I just installed Ajax Checkout on OSC 2.2rc2a, but seem to be having a problem with the shipping_weight global.  When the ajax_checkout.php page is first loaded the shipping options and quotes are correct.  However when the Select and Continue button is pressed the shipping quotes get changed to incorrect values.  It seems the shipping_weight global in _PerformShippingSelection is no longer defined so the quote is based on a weight of 0 lbs.  Hitting the edit button next to Shipping Method brings back the correct quotes.  Any solutions?
Logged
Alex
Administrator
Full Member
*****
Offline Offline

Posts: 128


View Profile
« Reply #1 on: January 27, 2009, 01:40:57 AM »

Hello bunnyboy,

We're glad you're using our product. As long it is now a free and distributed as is under a GPL, you are free to modify the code as you wish
or as you need. Go on, debug it a bit, and get things working. If you would be so kind and post a solution here, that'd be great.
Logged
kompak
Newbie
*
Offline Offline

Posts: 1


View Profile
« Reply #2 on: February 04, 2009, 02:34:06 AM »

Hi,
I too have just installed the AJAX single page checkout. When iam clicking on the button "Checkout" from the shopping cart page.
The ajax_checkout page is opening but the contents in the page are not loading, i.e. blank page is appearing.

Please help me..what should i need to do.

Regards
Kam
Logged
Alex
Administrator
Full Member
*****
Offline Offline

Posts: 128


View Profile
« Reply #3 on: February 07, 2009, 09:42:44 AM »

You are probably having STS or BTS installed at your Osc, if no javascript error appears at this point. AJAX checkout requires much customization of installation procedure to properly work on BTS or STS template systems.
Logged
kotau
Newbie
*
Offline Offline

Posts: 8


View Profile
« Reply #4 on: February 10, 2009, 10:25:33 PM »

I have just done a standard install of oscommerce 2.2rc2 and followed the steps to install ajax checkout. I get the same problem when I checkout in that the

ajax_checkout.php script is loaded but the content is not displayed instead I just get the following div:

<div id="ajaxManager">
</div>


The .js file is correctly loaded.


Do you have any suggestions for tracking this down?


edit.

I just tried installing 2.2rc2a from scratch and I have the same issue.

Cheers.

« Last Edit: February 10, 2009, 10:53:33 PM by kotau » Logged
Alex
Administrator
Full Member
*****
Offline Offline

Posts: 128


View Profile
« Reply #5 on: February 11, 2009, 01:19:15 AM »

Hello,

Its hard to tell what is wrong out there. Could you at least provide me a link?
Logged
kotau
Newbie
*
Offline Offline

Posts: 8


View Profile
« Reply #6 on: February 11, 2009, 01:26:11 AM »

I have PM'd you the urls.
Logged
Alex
Administrator
Full Member
*****
Offline Offline

Posts: 128


View Profile
« Reply #7 on: February 11, 2009, 05:06:46 AM »

Hi,

You have 2 javascript error on your checkout page of `oscommerce2a` store:
1) malformed formal parameter
goOnLoad()ajax_checkout.php (line 18)
onload(load )include....tmentid=1 (line 1)

2) ajaxManagerInit();
ajax_checkout.php (line 18)
ajaxManagerInit is not defined

Seems like there's something wrong with the files you uploaded, as when I'm trying to open the
url with ajax/javascript/ajaxManager.js to view javascript file, I got a SERVER ERROR page.
What permissions are on files in the /ajax directory?
Logged
kotau
Newbie
*
Offline Offline

Posts: 8


View Profile
« Reply #8 on: February 11, 2009, 05:32:41 PM »

Hi,

Thankyou for your very helpful assistance. That will teach me to not rely on safari for testing a dev setup...

After some tests the issue turns out to be with the .htaccess file in the /ajax/ folder.

If I remove the file things are working.

The file contains the following setting:

 Options -Indexes


Im not sure why that will cause an issue with my server.


Logged
Alex
Administrator
Full Member
*****
Offline Offline

Posts: 128


View Profile
« Reply #9 on: February 12, 2009, 04:49:18 AM »

Yep, the first thing you should be looking at when you got 500 Server error is the .htaccess file. Good.
Logged
Gizmor
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #10 on: March 13, 2009, 07:54:07 PM »

You are probably having STS or BTS installed at your Osc, if no javascript error appears at this point. AJAX checkout requires much customization of installation procedure to properly work on BTS or STS template systems.

maybe it is a idea to create another Ajax checkout for OSCMAX (oscmax has BTS installed standard) if a BTS version is make then it can be easily adapted for STS i think,
and for as far as i can see there is not much to do only that there is no header.php in the includes folder and some coding around the paths.

I have tried it for myself to make it work but i cant find why my page stays blank, and i really want this to work because it is much better then the standard checkout procedure.
« Last Edit: March 13, 2009, 07:56:20 PM by Gizmor » Logged
steve_s
Newbie
*
Offline Offline

Posts: 8


View Profile
« Reply #11 on: March 15, 2009, 04:01:30 PM »

You are probably having STS or BTS installed at your Osc, if no javascript error appears at this point. AJAX checkout requires much customization of installation procedure to properly work on BTS or STS template systems.

maybe it is a idea to create another Ajax checkout for OSCMAX (oscmax has BTS installed standard) if a BTS version is make then it can be easily adapted for STS i think,
and for as far as i can see there is not much to do only that there is no header.php in the includes folder and some coding around the paths.

I have tried it for myself to make it work but i cant find why my page stays blank, and i really want this to work because it is much better then the standard checkout procedure.


Hi did you make a seperate page in your sts_template/templatename/ folder for ajax checkout and add any javascript calls in the head tags
if not try that and see what happens
Logged
Gizmor
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #12 on: March 18, 2009, 07:50:53 AM »

You are probably having STS or BTS installed at your Osc, if no javascript error appears at this point. AJAX checkout requires much customization of installation procedure to properly work on BTS or STS template systems.

maybe it is a idea to create another Ajax checkout for OSCMAX (oscmax has BTS installed standard) if a BTS version is make then it can be easily adapted for STS i think,
and for as far as i can see there is not much to do only that there is no header.php in the includes folder and some coding around the paths.

I have tried it for myself to make it work but i cant find why my page stays blank, and i really want this to work because it is much better then the standard checkout procedure.


Hi did you make a seperate page in your sts_template/templatename/ folder for ajax checkout and add any javascript calls in the head tags
if not try that and see what happens

well i dont use STS but BTS and i did put the file in the templates/templatename/content folder where all the other files are also, and i created in the root of the website a file called ajax_checkout.php with the correct lines for BTS copy of shoppingcart.php and edited for Ajax Checkout.
And i edited includes/filenames.php added the content(BTS) and file lines.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 3.1.1 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!