Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7051279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:14:40+00:00 2026-05-28T03:14:40+00:00

In the shop I’m developing, users can only see prices and add products to

  • 0

In the shop I’m developing, users can only see prices and add products to cart only if they create an account. After that, they can add products to cart. The options Billing Details & Delivery Details are automatically filled in with the user’s address. The delivery method is free and the payment method is “cash on delivery”.

How can I automatically select these options and hide them so the only step left would be to Confirm the order?

I assume the template file I need to change is catalog/view/theme/default/template/checkout/checkout.tpl but it’s almost a 1k lines long and uses ajax which I don’t know…

I’ve been trying to do this for a few hours so any help would be greatly appreciated!

Thank you very much!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:14:41+00:00Added an answer on May 28, 2026 at 3:14 am

    In case someone stumbles upon this question, I found the answer here. It works for account option, shipping option, payment option but it doesn’t work for step2-billing option (if you try to click the continue button in step2 with jquery it just sends it into an infinite loop).

    The solution: You basically click the Continue button with Jquery and then hide the respective step/steps with CSS (/catalog/view/theme/default/stylesheet/stylesheet.css):

    #checkout, #payment-method {
        display:none;
    }
    

    The following is from the opencart community forum:

    To skip the account option just copy paste this code on the top of the catalog/view/theme/default/template/checkout/login.tpl:

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

    Remember to have a look to some older post I have done to autoselect login options.

    To skip the shipping option just copy paste this code on the top of the catalog/view/theme/default/template/checkout/shipping.tpl:

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

    To skip the payment option just copy paste this code on the top of the catalog/view/theme/default/template/checkout/payment.tpl:

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

    In these case, in opencart 1.5 you also will have to change this code (line 36):

    <input type="checkbox" name="agree" value="1"/>
    

    to this one:

    <input type="checkbox" name="agree" value="1" checked="checked"/>
    

    Remember that these tricks will only work if the default option is the one you want (or if you force opencart to autoselect one concrete option).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an online shop where users can have little shops with their own
i Have a Script for my shop for a game where after they buy
I'm developing an e-cart/shop with PHP/MySQL. I had decided from the beginning to have
shop.category: Reverse query name for field 'parent_category' clashes with related field 'Category.category'. Add a
Our shop designs and create custom software applications for a vareity of vertical industies.
For an e-shop I have Products table (id, name, price, description) Attributes table (attribute
I am building a simple shop cart and I am getting the following array
Merchant has_many Shops Shop belongs_to Merchant i.e. One merchant (Starbucks) can have many shops
Our shop currently uses Quartz for our existing projects. The only draw back is
I have a E-Shop Site and I need some customization for my users like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.