Post by enarco » Thu Jun 14, 2018 1:30 am

Hi my friends
I trying the remove the "Returning Customer" section from "Checkout" section, And so I want remove the choose "Register Account" without asking for me so just get "Guest Checkout"
How can i do this
V. 3020
Thank you for all

Attachments

edit checkout page.jpg

edit checkout page.jpg (109.95 KiB) Viewed 8779 times


New member

Posts

Joined
Sun Dec 10, 2017 3:28 am

Post by IP_CAM » Thu Jun 14, 2018 10:21 am

Make a backup of your login.twig page, and use this code in the new One.
catalog/view/theme/default/template/checkout/login.twig
It's untested, but you might still try it out! :D I use no such Version, and
only replied, because nobody of the TWIG Freaks else seems to care about :choke:

Code: Select all

<div class="row">
  <div class="col-sm-12">
    <h2>{{ text_new_customer }}</h2>
      <div class="radio">
      <label>
	<div class="radio">
	</label>
      <label>
        <input type="radio" name="account" value="guest" checked="checked" />
        {{ text_guest }}</label>
    </div>
    <p>{{ text_register_account }}</p>
    <input type="button" value="{{ button_continue }}" id="button-account" data-loading-text="{{ text_loading }}" class="btn btn-primary" />
  </div>
</div>
Then, you have to change the 1-Liner- content of the 3 Lines, shown below,
in the corresponding checkout.php Language File, to 'text it' as planned:
catalog/language/en-gb/checkout/checkout.php

Code: Select all

$_['text_new_customer']              = 'New Customer';
$_['text_guest']                     = 'Guest Checkout'; 
$_['text_register_account']          = 'By creating an account you will be able to shop faster, be up to date on an order\'s status, and keep track of the orders you have previously made.';
---
And make sure, to CLEAN OUT your cached Server Content, before testing!
The other [/b] removal Function is VqMod Cache, in Case, you also
use VqMod, so, you also have to clean out the full vqmod/vqcache/... Section,
as well as the 2-3 vqmod/***.cache Files, to so make sure, to then get a clean Server
built Page again.

Now, the only Thing to clean out , is your Browser, so, you need to press Control+ F5 a
few Times, to also get the new Page Content from the Server loaded in full.
And then, you'll know for sure, if it's working, or not... :laugh:
Good Luck! ;)
Ernie
---

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by enarco » Sat Jun 16, 2018 9:18 pm

Thank you, worked

New member

Posts

Joined
Sun Dec 10, 2017 3:28 am
Who is online

Users browsing this forum: No registered users and 73 guests