Post by simpl3 » Thu Sep 29, 2011 6:45 am

this is an example folder structure, I expanded the respective folders where the files are located

'bene' is the name of my custom theme

Image

main stylesheet is stylesheet.css

in checkout.tpl (my bad...) insert this anywhere you want, its javascript in jquery syntax and need to be enclosed in a <script> tag

Code: Select all

<script>
  $('input[name=account]:eq(1)').attr('checked', 'checked');
  $('#button-account').trigger('click');
</script>

Newbie

Posts

Joined
Tue Sep 06, 2011 4:23 am

Post by Rebecka » Thu Sep 29, 2011 2:19 pm

/catalog/view/theme/default/template/checkout/checkout.tpl

/catalog/view/theme/default/stylesheet/stylesheet.css

Does it look right?

In the stylesheet I add this at the end?:

Code: Select all

#checkout {
   display: none;
}
And this:

Code: Select all

  $('input[name=account]:eq(1)').attr('checked', 'checked');
  $('#button-account').trigger('click');
Before example this?:

Code: Select all

</script> 
<?php echo $footer; ?>
At the end of checkout.tpl?

One more question, what program can I edit tpl files? I can open tpl files with my program Free File Viewer, but I can not edit anything with it.

Rebecka went over to PrestaShop.


Active Member

Posts

Joined
Sun Sep 18, 2011 4:49 am
Location - Sweden

Post by simpl3 » Thu Sep 29, 2011 9:07 pm

tpl files -> any text editor

why dont you try the stuff out instead of asking, and asky only if sth doesnt work,

I cant setup a Open Cart Shop for you and even design a unique template if you want, just pm me

Newbie

Posts

Joined
Tue Sep 06, 2011 4:23 am

Post by Rebecka » Thu Sep 29, 2011 11:45 pm

I'm sorry if I'm annoying (totally new to OpenCart so I'm insecure). My computer was set to open any text file with Free File Viewer, of course, I could edit in Notepad. I was a bit tired this morning...

Unfortuately the checkout doesn't work. Step 1 disappeared but I have no possibility to fill in step 2 and beyond. I guess I have to try in another way. Thanks anyway!

Rebecka went over to PrestaShop.


Active Member

Posts

Joined
Sun Sep 18, 2011 4:49 am
Location - Sweden

Post by simpl3 » Fri Sep 30, 2011 12:23 am

I really would recommend to learn basic understanding of html, css und javascript/jquery, i can prmise it's gonna be extremely frustrating to manage your shop if you want to go any further

good luck anyways

Newbie

Posts

Joined
Tue Sep 06, 2011 4:23 am

Post by Rebecka » Fri Sep 30, 2011 12:45 am

I find no problem to manage the store itself (currency, tax, shipping and so on) as there are good guides. But I'm not good at recode built-in features or themes. Although I do not know a lot about coding, I can change a lot of WordPress themes.

I might be using WordPress instead, WooThemes had brought WooCommerce. Will check it out.

Rebecka went over to PrestaShop.


Active Member

Posts

Joined
Sun Sep 18, 2011 4:49 am
Location - Sweden

Post by simpl3 » Fri Sep 30, 2011 1:19 am

also worth mentioning:

www.shopify.com (commerical)

Newbie

Posts

Joined
Tue Sep 06, 2011 4:23 am

Post by Rebecka » Sat Oct 08, 2011 1:09 am

I forgot to mention that Shopify is uninteresting because it costs. I only use freeware. I continue with OpenCart (shall only buy a design template). However, it remains to see if I manage to get away account feature on my own (and continue buttons on pages). Wish me luck! :)

Rebecka went over to PrestaShop.


Active Member

Posts

Joined
Sun Sep 18, 2011 4:49 am
Location - Sweden

Post by aliwister » Sat Oct 08, 2011 1:51 am

I've release this 1-page checkout that would help you with that. Look at the demo here:

http://www.aliwister.net/opc/upload/index.php

The login section could easily be removed.

Image

You may purchase from:

http://www.opencart.com/index.php?route ... order=DESC

New member

Posts

Joined
Wed Jan 26, 2011 3:00 pm

Post by markman-b » Tue Oct 11, 2011 1:59 am

Hi guys,

Does anyone know how to autoselect the continue button in "Step 3 - Address"?
This seems to be more complicated.

@gtamborero
Thanx fror the javascript!

Regards
Markman-B

OC version 1.5.4.1


Active Member

Posts

Joined
Wed Aug 24, 2011 7:13 pm

Post by paffley » Tue Oct 11, 2011 10:32 am

Hi, I'm also needing to know how to disable the step2- Billing details from the registered checkout...


Could somebody please point me in the right direction for which file(s) to be edited? once i know which file it is I should be able to disable.



Kind regards,
paffley

New member

Posts

Joined
Wed Aug 17, 2011 7:12 pm

Post by bo4man » Mon Oct 24, 2011 8:24 pm

I could not understand a few things ... I'm sorry.

I want to completely hide the option to register here index.php?route=account/login

In addition, the page "Chechout" here index.php?route=checkout/checkout

Have only one option and Guest Checkout be deleted box - Returning Customer and form for login

Can anyone help me?

Newbie

Posts

Joined
Sat Mar 19, 2011 10:41 pm

Post by horas » Mon Nov 07, 2011 5:15 pm

bo4man do you manage to hide the option to register new user, from your cart.
I want only to disable registration process, and to assign by myself the user name and passwords for users.

Newbie

Posts

Joined
Mon Nov 07, 2011 5:11 pm

Post by antics83 » Thu Nov 17, 2011 7:17 am

i deleted the address at registration. how would i skip 'Billing Details' and go straight to payment method?
thanks!

Newbie

Posts

Joined
Sun Aug 21, 2011 6:31 am

Post by seog » Sun Dec 11, 2011 10:59 am

Thank you very much for posting your custom code it worked perfectly. You all are great, I kept losing sales on account of this exact situation. thanks again everyone

Newbie

Posts

Joined
Sun Dec 11, 2011 10:54 am

Post by saintlade » Tue Jan 10, 2012 4:40 am

Hello,

I'm not sure if I'm being thick, but when I put this code;

<script language="Javascript" type="text/javascript">
$(document).ready(function(){
$('#button-payment').trigger('click');
});
</script>

into the payment.tpl at the top, it won't skip as I've set for checkout not to complete unless the terms and conditions are ticked. I've taken out the code;


<b><?php echo $text_comments; ?></b>
<textarea name="comment" rows="8" style="width: 98%;"><?php echo $comment; ?></textarea>
<br />
<br />
<?php if ($text_agree) { ?>
<div class="buttons">
<div class="right"><?php echo $text_agree; ?>
<?php if ($agree) { ?>
<input type="checkbox" name="agree" value="1" checked="checked" />
<?php } else { ?>
<input type="checkbox" name="agree" value="1" />
<?php } ?>
<a id="button-payment" class="button"><span><?php echo $button_continue; ?></span></a></div>
</div>
<?php } else { ?>
<div class="buttons">
<div class="right"><a id="button-payment" class="button"><span><?php echo $button_continue; ?

></span></a></div>
</div>
<?php } ?>

and want to put it under the confirm booking tab in the next step in checkout and just not have the payment method tab display at all. Any ideas how I can get the terms and conditions and comments into the confirm booking tab and get it to work from there without stalling the checkout process at payment option?

Cheers,

Stu

New member

Posts

Joined
Wed Oct 12, 2011 9:12 am

Post by wshawn » Thu Mar 15, 2012 7:22 pm

This only works to cosmetically change the check out process and does not keep accounts from being created. It does not protect the site from someone directly accessing the register form: http://domain.com/index.php?route=account/register and injecting an account there.

You should also completely replace the catalog/view/theme/YOURTHEME/template/account/register.tpl with

Code: Select all

<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <h1>You shouldn't be here</h1>
  <div class="warning">You've been a bad bunny.</div>
<?php echo $footer; ?>

Newbie

Posts

Joined
Thu Mar 15, 2012 7:08 pm

Post by tillieb » Fri Jun 22, 2012 4:19 pm

This thread has helped me SO MUCH!
I'm using 1.5.2.1, and following these steps this worked for me.
I was able to auto select "Guest"
hide the first step, and skip to the second one. Then I went into the Language files and edited the Steps text so that it made sense for me.

For my shopping cart, we only accept one form of payment option, so to have a separate section where they choose what payment option they want, and then click continue was too much. So skipped the payment method, and hid it using this in my stylesheet:

Code: Select all

#payment-method	{
	display: none;	
}
Thanks for everyone's hard work here!

Newbie

Posts

Joined
Mon Jun 18, 2012 9:40 am

Post by ak_am » Thu Jan 03, 2013 2:12 am

Anyone knows how to skip Step(2) Billing Details?

Newbie

Posts

Joined
Wed Apr 11, 2012 9:45 pm
Who is online

Users browsing this forum: No registered users and 76 guests