Jump to content



Latest News: (loading..)

- - - - -

[Contribution] Support forum for Single Page Checkout


  • Please log in to reply
61 replies to this topic

#1   crombiecrunch

crombiecrunch
  • Members
  • 34 posts
  • Real Name:Jonathan

Posted 07 December 2008 - 03:52 AM

Please post any issues here that you may have with the single page checkout.

You will need basic HTML knowledge to format it to your site. It is setup right now to display as a single column.

Thanks for downloading and installing it And I hope you enjoy it.

Edited by crombiecrunch, 07 December 2008 - 03:53 AM.


#2   Amrahp

Amrahp
  • Members
  • 74 posts
  • Real Name:John

Posted 07 December 2008 - 06:27 AM

Nice work!!!! IMHO is this what Osc really needs!

I have installed it now and testing it...
First problem that has come up now is that the "toggle shipping" doesn't seem to work properly for me.
I am using STS and did try to implement the javascript in the checkout.php.html header but then received code errors...

#3   Amrahp

Amrahp
  • Members
  • 74 posts
  • Real Name:John

Posted 07 December 2008 - 08:09 AM

Well in case someone else wonders did I get to know that this excellent addon not toggles the shipping information on/off if the "Shipping address same as billing address" is ticked.
Instead it copies the information to the shipping fields.

Nice work!

#4   redrum

redrum
  • Members
  • 213 posts
  • Real Name:Fredrik
  • Gender:Male

Posted 07 December 2008 - 02:22 PM

Is there a demo available?

#5   akvario

akvario
  • Members
  • 28 posts
  • Real Name:yngve
  • Gender:Male
  • Location:Norway

Posted 07 December 2008 - 03:32 PM

The title got my attention :) "Singe page checkout"

I would love to see a demo OR just some screenshoots.

#6   crombiecrunch

crombiecrunch
  • Members
  • 34 posts
  • Real Name:Jonathan

Posted 07 December 2008 - 03:49 PM

Sorry you can see it on my live store at http://rentthisroom.com/salescart and then you can play with it at http://rentthisroom.com/test01 feel free to create accounts and orders at the /test01

Edited by crombiecrunch, 07 December 2008 - 03:53 PM.


#7   charinlasvegas

charinlasvegas
  • Members
  • 307 posts
  • Real Name:Charlene
  • Gender:Female
  • Location:Nevada

Posted 07 December 2008 - 05:35 PM

View Postcrombiecrunch, on Dec 6 2008, 07:52 PM, said:

Please post any issues here that you may have with the single page checkout.

You will need basic HTML knowledge to format it to your site. It is setup right now to display as a single column.

Thanks for downloading and installing it And I hope you enjoy it.


Wow, this is great!!! Exactly what I wanted, thanks for adding it to the contributions.  Played with it on your test site & it appears to work perfectly.

#8   akvario

akvario
  • Members
  • 28 posts
  • Real Name:yngve
  • Gender:Male
  • Location:Norway

Posted 07 December 2008 - 05:41 PM

Thanks Jonathan

Looks good, i'll have to test this one ;)

#9   crombiecrunch

crombiecrunch
  • Members
  • 34 posts
  • Real Name:Jonathan

Posted 07 December 2008 - 06:09 PM

Thanks I hope a lot of people will find a good use for it. The page was really created for my website only at first, and then it was 'adapted' for a default OSC install. As some know from chatting with me in IM, I actually hired a developer for my site since I have zero skills :)

I am more then happy to have any reasonable suggestions added in to the contribution. And the contribution will be fully supported by myself and my developer.

And if the page really works for you, please try to show your support through a donation.

#10   fernyburn

fernyburn
  • Members
  • 139 posts
  • Real Name:Ronnie

Posted 07 December 2008 - 06:33 PM

Hi
Excellent contribution - I was wondering though....

we use drop down states for the shipping,  

basically we get th pull down

	  echo tep_draw_pull_down_menu('state', $zones_array);
	  } else {
		echo tep_draw_input_field('state');
	  }
	} else {
		echo tep_draw_input_field('state');

and change to


echo tep_draw_pull_down_menu('state', $zones_array);
	  } else {
		echo tep_draw_input_field('state');
	  }
	} else {
		  // FORM NOT PROCESSED YET
	  $zone_id = 0;
	  $check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . (int)STORE_COUNTRY . "'");
	  $check = tep_db_fetch_array($check_query);
	  $entry_state_has_zones = ($check['total'] > 0);
	  if ($entry_state_has_zones == true) {
		$zones_array = array();
		$zones_array[] = array('id' => PULL_DOWN_DEFAULT, 'text' => PULL_DOWN_DEFAULT);
		$zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int)STORE_COUNTRY . "' order by zone_name");
		while ($zones_values = tep_db_fetch_array($zones_query)) {
		  $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
		}
		echo tep_draw_pull_down_menu('state', $zones_array);
	  } else {
		echo tep_draw_input_field('state'); }
	}


however in checkout_shipping &  checkout_billing

it only shows this

 echo tep_draw_pull_down_menu('state', $zones_array,'',$disabled_ship." ".'onchange="toggleShipping_fields(\'state\',\'ship_state\');"');
	  } else {
		echo tep_draw_input_field('state',$state,$disabled_ship." ".'onkeyup="toggleShipping_fields(\'state\',\'ship_state\');"');
	  }
	} else {
	  echo tep_draw_input_field('state',$state,$disabled_ship." ".'onkeyup="toggleShipping_fields(\'state\',\'ship_state\');"');
	}
	
	if (tep_not_null(ENTRY_STATE_TEXT)) echo '&nbsp;<span class="inputRequirement">' . ENTRY_STATE_TEXT;


how do I alter this code so the state becomes a drop down with the zones listed

#11   crombiecrunch

crombiecrunch
  • Members
  • 34 posts
  • Real Name:Jonathan

Posted 07 December 2008 - 06:36 PM

Hello

The state drop down will be updated in the next release. Which should be tomorrow or the next day( DEC 8th or 9th).

View Postfernyburn, on Dec 7 2008, 12:33 PM, said:

Hi
Excellent contribution - I was wondering though....

we use drop down states for the shipping,  

basically we get th pull down

	  echo tep_draw_pull_down_menu('state', $zones_array);
	  } else {
		echo tep_draw_input_field('state');
	  }
	} else {
		echo tep_draw_input_field('state');

and change to


echo tep_draw_pull_down_menu('state', $zones_array);
	  } else {
		echo tep_draw_input_field('state');
	  }
	} else {
		  // FORM NOT PROCESSED YET
	  $zone_id = 0;
	  $check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . (int)STORE_COUNTRY . "'");
	  $check = tep_db_fetch_array($check_query);
	  $entry_state_has_zones = ($check['total'] > 0);
	  if ($entry_state_has_zones == true) {
		$zones_array = array();
		$zones_array[] = array('id' => PULL_DOWN_DEFAULT, 'text' => PULL_DOWN_DEFAULT);
		$zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int)STORE_COUNTRY . "' order by zone_name");
		while ($zones_values = tep_db_fetch_array($zones_query)) {
		  $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
		}
		echo tep_draw_pull_down_menu('state', $zones_array);
	  } else {
		echo tep_draw_input_field('state'); }
	}


however in checkout_shipping &  checkout_billing

it only shows this

 echo tep_draw_pull_down_menu('state', $zones_array,'',$disabled_ship." ".'onchange="toggleShipping_fields(\'state\',\'ship_state\');"');
	  } else {
		echo tep_draw_input_field('state',$state,$disabled_ship." ".'onkeyup="toggleShipping_fields(\'state\',\'ship_state\');"');
	  }
	} else {
	  echo tep_draw_input_field('state',$state,$disabled_ship." ".'onkeyup="toggleShipping_fields(\'state\',\'ship_state\');"');
	}
	
	if (tep_not_null(ENTRY_STATE_TEXT)) echo '&nbsp;<span class="inputRequirement">' . ENTRY_STATE_TEXT;


how do I alter this code so the state becomes a drop down with the zones listed

Edited by crombiecrunch, 07 December 2008 - 06:36 PM.


#12   fernyburn

fernyburn
  • Members
  • 139 posts
  • Real Name:Ronnie

Posted 07 December 2008 - 06:40 PM

thank you,  all i have to do next is figure out how to merge it with fast easy checkout !!

as I dont need customers to have an account or password

#13   kbking

kbking
  • Members
  • 266 posts
  • Real Name:Chris

Posted 07 December 2008 - 06:40 PM

Hi!

Yes very nice indeeed!

I did a quick test, but got a blank page and parse errors saying unexpected end at the last line.  I added a curly bracket not really knowing the correct spot for it, after the page showed up, but none of the checkout related areas were there...

A few </td> </tr>, lines: 2560,2561,2563,2564 seems to be redundant.

Edited by kbking, 07 December 2008 - 06:41 PM.


#14   crombiecrunch

crombiecrunch
  • Members
  • 34 posts
  • Real Name:Jonathan

Posted 07 December 2008 - 06:50 PM

This will actually be added in as well was already on the to do list


View Postfernyburn, on Dec 7 2008, 12:40 PM, said:

thank you,  all i have to do next is figure out how to merge it with fast easy checkout !!

as I dont need customers to have an account or password


#15   fernyburn

fernyburn
  • Members
  • 139 posts
  • Real Name:Ronnie

Posted 07 December 2008 - 06:55 PM

wow - i can't wait !!!!!

#16   crombiecrunch

crombiecrunch
  • Members
  • 34 posts
  • Real Name:Jonathan

Posted 07 December 2008 - 07:02 PM

Yup see the error. Ill upload a new file in a min


View Postkbking, on Dec 7 2008, 12:40 PM, said:

Hi!

Yes very nice indeeed!

I did a quick test, but got a blank page and parse errors saying unexpected end at the last line.  I added a curly bracket not really knowing the correct spot for it, after the page showed up, but none of the checkout related areas were there...

A few </td> </tr>, lines: 2560,2561,2563,2564 seems to be redundant.


#17   danta67

danta67
  • Members
  • 52 posts
  • Real Name:dan

Posted 07 December 2008 - 07:28 PM

View Postcrombiecrunch, on Dec 7 2008, 08:02 PM, said:

Yup see the error. Ill upload a new file in a min
just downloaded the contri but cant find this line in my check..comformation.php

tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'));

    Replace with

tep_redirect(tep_href_link(FILENAME_CHECKOUT, '', 'SSL'));

help please using rc2a
danta67

#18   crombiecrunch

crombiecrunch
  • Members
  • 34 posts
  • Real Name:Jonathan

Posted 07 December 2008 - 07:31 PM

Hi

Just do a search in your file for FILENAME_CHECKOUT_PAYMENT_ADDRESS, etc.



View Postdanta67, on Dec 7 2008, 01:28 PM, said:

just downloaded the contri but cant find this line in my check..comformation.php

tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'));

    Replace with

tep_redirect(tep_href_link(FILENAME_CHECKOUT, '', 'SSL'));

help please using rc2a
danta67


#19   danta67

danta67
  • Members
  • 52 posts
  • Real Name:dan

Posted 07 December 2008 - 07:35 PM

View Postcrombiecrunch, on Dec 7 2008, 08:31 PM, said:

Hi

Just do a search in your file for FILENAME_CHECKOUT_PAYMENT_ADDRESS, etc.
thanks for the quik res[ponse

i found  <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL')
is this what im looking for
danta67

#20   crombiecrunch

crombiecrunch
  • Members
  • 34 posts
  • Real Name:Jonathan

Posted 07 December 2008 - 07:38 PM

yes those are the ones, there are 4 edits you need to make. I think I left out a . so just search for the FILENAME_CHECKOUT_XXXX_XXXXX and youll pull them up


View Postdanta67, on Dec 7 2008, 01:35 PM, said:

thanks for the quik res[ponse

i found  <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL')
is this what im looking for
danta67