checkout_steps.tpl

hello all



Does anybody have an out of the box, default version of checkout_steps.tpl they can send me? I’ve modded it a LOT and would like to see it in it’s original form (no, I don’t have the original file as I’m using browser editing).



my email is my username @hotmail.com if you find the time :slight_smile: many thanks!

```php {* $Id: checkout_steps.tpl 7967 2009-09-08 14:17:52Z zeke $ *}



{include file=“views/profiles/components/profiles_scripts.tpl”}



{if $completed_steps.step_one == true}{assign var="complete" value=true}{assign var="_title" value=$lang.save}{else}{assign var="complete" value=false}{assign var="_title" value=$lang.next_step}{/if}
{if $edit_step == "step_one"}{assign var="edit" value=true}{else}{assign var="edit" value=false}{/if}



1.

{if $complete || $edit}

{/if}

{if !$edit}
{include file="buttons/button.tpl" but_href="$index_script?dispatch=checkout.checkout&edit_step=step_one&from_step=$edit_step" but_rev="checkout_steps,cart_items,checkout_totals" but_meta="float-right cm-ajax" but_text=$lang.edit but_role="tool"}
{/if}

{$lang.contact_information}


{assign var="curl" value=$config.current_url|fn_query_remove:"login_type"}

{if ($settings.General.disable_anonymous_checkout == "Y" && !$auth.user_id) || ($settings.General.disable_anonymous_checkout != "Y" && !$auth.user_id && !$contact_info_population) || $smarty.session.failed_registration == true}


{include file="views/checkout/components/checkout_login.tpl" checkout_type="one_page"}







{include file="views/profiles/components/profiles_account.tpl" nothing_extra="Y" location="checkout"}
{include file="views/profiles/components/profile_fields.tpl" section="C" nothing_extra="Y"}

{hook name="checkout:checkout_steps"}{/hook}

{if $settings.Image_verification.use_for_register == "Y"}
{include file="common_templates/image_verification.tpl" id="register" align="center"}
{/if}


{include file="buttons/button.tpl" but_name="dispatch[checkout.add_profile]" but_text=$_title}
{$lang.or}
{include file="buttons/button.tpl" but_href=$curl but_onclick="$('#step_one_register').hide(); $('#step_one_login').show();" but_text=$lang.cancel but_role="tool"}




{if $settings.General.disable_anonymous_checkout != "Y"}




{include file="views/profiles/components/profile_fields.tpl" section="C" nothing_extra="Y" id_prefix="soacf_"}

{hook name="checkout:checkout_steps"}{/hook}

{if $settings.Image_verification.use_for_checkout == "Y"}
{include file="common_templates/image_verification.tpl" id="checkout" align="center"}
{/if}


{include file="buttons/button.tpl" but_name="dispatch[checkout.customer_info]" but_text=$_title}
{$lang.or}
{include file="buttons/button.tpl" but_href=$curl but_onclick="$('#step_one_anonymous_checkout').hide(); $('#step_one_login').show();" but_text=$lang.cancel but_role="tool"}




{/if}
{else}





{if !$edit}
{include file="views/profiles/components/step_profile_fields.tpl" section="C"}
{else}
{include file="views/profiles/components/profile_fields.tpl" section="C" nothing_extra="Y"}

{hook name="checkout:checkout_steps"}

{include file="buttons/button.tpl" but_name="dispatch[checkout.update_steps]" but_text=$_title}
{if $smarty.request.from_step}
{$lang.or}
{include file="buttons/button.tpl" but_href="$index_script?dispatch=checkout.checkout&edit_step=`$smarty.request.from_step`" but_meta="cm-ajax cm-ajax-force" but_rev="checkout_steps,cart_items,checkout_totals" but_text=$lang.cancel but_role="tool"}
{/if}

{/hook}
{/if}


{/if}



{if $profile_fields.B || $profile_fields.S}

{if $completed_steps.step_two == true}{assign var="complete" value=true}{assign var="_title" value=$lang.save}{else}{assign var="complete" value=false}{assign var="_title" value=$lang.next_step}{/if}
{if $edit_step == "step_two"}{assign var="edit" value=true}{else}{assign var="edit" value=false}{/if}



2.

{if $complete || $edit}

{/if}

{if $complete && !$edit}
{include file="buttons/button.tpl" but_meta="float-right cm-ajax" but_href="$index_script?dispatch=checkout.checkout&edit_step=step_two&from_step=$edit_step" but_rev="checkout_steps" but_text=$lang.edit but_role="tool"}
{/if}

{$lang.address}











{if $smarty.request.profile == "new"}
{assign var="hide_profile_name" value=false}
{else}
{assign var="hide_profile_name" value=true}
{/if}

{if !$edit}

{include file="views/profiles/components/multiple_profiles.tpl" hide_profile_name=$hide_profile_name hide_profile_delete=true profile_id=$cart.profile_id create_href="$index_script?dispatch=checkout.checkout&edit_step=step_two&from_step=$edit_step&profile=new"}

{else}
{include file="views/profiles/components/multiple_profiles.tpl" show_title=true hide_profile_name=$hide_profile_name hide_profile_delete=true profile_id=$cart.profile_id create_href="$index_script?dispatch=checkout.checkout&edit_step=step_two&from_step=$edit_step&profile=new"}
{/if}

{if !$edit}

{if $profile_fields.B}
{include file="views/profiles/components/step_profile_fields.tpl" section="B" text=$lang.billing_address}
{/if}

{if $profile_fields.S}
{if $cart.ship_to_another}
{include file="views/profiles/components/step_profile_fields.tpl" section="S" text=$lang.shipping_address}
{else}


{$lang.shipping_address}:
{$lang.text_ship_to_billing}


{/if}
{/if}
{else}

{if $profile_fields.B}
{include file="common_templates/subheader.tpl" title=$lang.billing_address}
{include file="views/profiles/components/profile_fields.tpl" section="B" nothing_extra="Y"}
{/if}

{if $profile_fields.S}
{include file="common_templates/subheader.tpl" title=$lang.shipping_address}
{include file="views/profiles/components/profile_fields.tpl" section="S" nothing_extra="Y" body_id="sa" shipping_flag=$profile_fields|fn_compare_shipping_billing ship_to_another=$cart.ship_to_another}
{/if}


{include file="buttons/button.tpl" but_name="dispatch[checkout.update_steps]" but_text=$_title}
{if ($billing_population || $smarty.request.profile == "new") && $smarty.request.from_step}
{$lang.or}
{include file="buttons/button.tpl" but_href="$index_script?dispatch=checkout.checkout&edit_step=`$smarty.request.from_step`" but_meta="cm-ajax cm-ajax-force" but_rev="checkout_steps,cart_items,checkout_totals" but_text=$lang.cancel but_role="tool"}
{/if}

{/if}




{/if}

{if $cart.shipping_required == true}

{if $completed_steps.step_three == true}{assign var="complete" value=true}{assign var="_title" value=$lang.save}{else}{assign var="complete" value=false}{assign var="_title" value=$lang.next_step}{/if}
{if $edit_step == "step_three"}{assign var="edit" value=true}{else}{assign var="edit" value=false}{/if}



{if $profile_fields.B || $profile_fields.S}3{else}2{/if}.

{if $complete || $edit}

{/if}

{if $complete && !$edit}
{include file="buttons/button.tpl" but_meta="cm-ajax float-right" but_href="`$index_script`?dispatch=checkout.checkout&edit_step=step_three&from_step=$edit_step" but_rev="checkout_steps" but_text=$lang.edit but_role="tool"}
{/if}

{$lang.shipping_method}





{if !$cart.shipping_failed}





{if $edit == true}
{include file="views/checkout/components/shipping_rates.tpl" no_form=true display="radio"}
{else}
{include file="views/checkout/components/shipping_rates.tpl" no_form=true display="show"}
{/if}

{if $edit}

{include file="buttons/button.tpl" but_name="dispatch[checkout.update_steps]" but_text=$_title}
{if $shipping_population && $smarty.request.from_step}
{$lang.or}
{include file="buttons/button.tpl" but_href="$index_script?dispatch=checkout.checkout&edit_step=`$smarty.request.from_step`" but_meta="cm-ajax cm-ajax-force" but_rev="checkout_steps,cart_items,checkout_totals" but_text=$lang.cancel but_role="tool"}
{/if}

{/if}

{else}

{$lang.text_no_shipping_methods}


{/if}



{/if}

{if $completed_steps.step_four == true}{assign var="complete" value=true}{else}{assign var="complete" value=false}{/if}
{if $edit_step == "step_four"}{assign var="edit" value=true}{else}{assign var="edit" value=false}{/if}



{if $cart.shipping_required == true}{if $profile_fields.B || $profile_fields.S}4{else}3{/if}{elseif $profile_fields.B || $profile_fields.S}3{else}2{/if}.
{if $complete || $edit}

{/if}

{$lang.payment_method}




{* Payment methods form *}
{include file="views/checkout/components/payment_methods.tpl" no_mainbox="Y"}
{* /Payment methods form *}

{if $cart|fn_allow_place_order}
{include file="views/checkout/summary.tpl"}
{/if}



```

many thanks!

[quote name=‘matt5409’]Does anybody have an out of the box, default version of checkout_steps.tpl they can send me? I’ve modded it a LOT and would like to see it in it’s original form (no, I don’t have the original file as I’m using browser editing).

[/QUOTE]

Unless you have manually copied your changes back, you should have copies of your originals in /var/skins_repository/YOURSKIN/.



Bob

[quote name=‘jobosales’]Unless you have manually copied your changes back, you should have copies of your originals in /var/skins_repository/YOURSKIN/.



Bob[/QUOTE]



i dont have a local copy so am working in the browser with the files directly.



thanks.

[quote name=‘matt5409’]i dont have a local copy so am working in the browser with the files directly.[/QUOTE]

If you are directly editing your template files (which are in /skins/YOURSKIN), you should still have the original files in /var/skins_repository/YOURSKIN - the only way those files get overwritten or deleted is if you do so manually.



You can also download full distribution from the Helpdesk (helpdesk.cs-cart.com) and keep these on your local computer for future comparison - you don’t need to do an installation.



Bob