Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Support forum for Single Page Checkout


crombiecrunch

Recommended Posts

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

  • Replies 62
  • Created
  • Last Reply

Top Posters In This Topic

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

Link to comment
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!

Link to comment
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.

Link to comment
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.

Link to comment
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

Link to comment
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
Link to comment
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
Link to comment
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.

Link to comment
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

Link to comment
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

Link to comment
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

Link to comment
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

Link to comment
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
Link to comment
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'));
??
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...