Latest News: (loading..)
Sign in to follow this  
Followers 0
crombiecrunch

[Contribution] Support forum for Single Page Checkout

63 posts in this topic

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

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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

 

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 ' <span class="inputRequirement">' . ENTRY_STATE_TEXT;

 

 

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

Share this post


Link to post
Share on other sites

Hello

 

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

 

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 ' <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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

 

 

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

Share this post


Link to post
Share on other sites

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

 

 

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Hi

 

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

 

 

 

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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

 

 

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

Share this post


Link to post
Share on other sites
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

found it thanks

Share this post


Link to post
Share on other sites

Hello. i can't find this in my "checkout_confirmation.php".

 

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

 

Replace with

 

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

 

Find

 

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

 

Replace

 

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

 

I use 2.2ms2-051113

Share this post


Link to post
Share on other sites
Hello. i can't find this in my "checkout_confirmation.php".

 

 

 

I use 2.2ms2-051113

 

 

Hi there see the previous post. I left out a . in the text I think so just do a search for FILENAME_CHECKOUT_XXXX_XXXXX (FILENAME_CHECKOUT_PAYMENT_ADDRESS, etc) for all 4 edits

Edited by crombiecrunch

Share this post


Link to post
Share on other sites

Hi there

i just have to say this is an awesome contri

thanks thanks alot

 

installed it and it works great

thanks again

danta67

Share this post


Link to post
Share on other sites
Hi there see the previous post. I left out a . in the text I think so just do a search for FILENAME_CHECKOUT_XXXX_XXXXX (FILENAME_CHECKOUT_PAYMENT_ADDRESS, etc) for all 4 edits

 

 

The only thing i found is

<td class="main"><?php echo '<b>' . HEADING_BILLING_ADDRESS . '</b> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>

 

 

Is this the one???? Replace with:

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0