Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Show Billing And Shipping Address First In The Checkout [+5 Usd Reward] Rate Topic   - - - - -

 
  • pwpw
  • Member
  • Members
  • Join Date: 11-Sep 16
  • 19 posts

Posted 11 October 2016 - 10:42 AM #1

Hello again, friends
 
is there any way that the buyer in the checkout ALWAYS see first the BILLING AND SHIPPING ADDRESS window (for reviewing their info) instead of going straight for SHIPPING OPTIONS? 
 
If its possible, 5 usd (paypal) for the first to teach me exactly how to do this. hehe  :mrgreen:
 
Sorry about my english and thanks!
 
illustrative images:

**currently, when I go to the checkout it goes straight to:
Attached File  checkout1.png   27.21KB   1 downloads
 
**and I want the customer first see the tab over:

Attached File  checkout2.png   32.83KB   1 downloads

 


 
  • Darius
  • Douchebag
  • Members
  • Join Date: 20-Apr 08
  • 3360 posts

Posted 11 October 2016 - 12:08 PM #2

Yea I wish to know this too. It causes some problems..



 
  • Cart-Power
  • Senior Member
  • Authorized Reseller
  • Join Date: 12-May 14
  • 1646 posts

Posted 11 October 2016 - 01:09 PM #3

Hello! 

 

Try to apply the following modifications with My changes add-on: 

 

1. Create the  app/addons/my_changes/controllers/frontend/checkout.post.php file with the following content: 

<?php
use Tygh\Registry;
if (!defined('BOOTSTRAP')) { die('Access denied'); }
if ($mode == 'checkout') {
    if (!defined('AJAX_REQUEST')) {
        Registry::get('view')->assign('show_step_2', 'show');
    }
}

2. Override the checkout_steps.tpl template: 

2.1. Copy the design/themes/responsive/templates/views/checkout/components/checkout_steps.tpl file to design/themes/responsive/templates/addons/my_changes/overrides/views/checkout/components

2.2. In the newly created file (design/themes/responsive/templates/addons/my_changes/overrides/views/checkout/components/checkout_steps.tpl) add this code into the beginning:

{if $show_step_2 && $show_step_2 == "show"}
    {$cart.edit_step = "step_two"}
{/if}

3. Clear the cache of your installation and browser if necessary. 

 

Enable the My changes add-on to check the functionality. The modification will work in case any other add-ons do not override the checkout template. 

 

Tested in the Responsive theme (CS-Cart 4.3.9)


Cart-Power.com / Cart-Power.ru (sales@cart-power.com) offers you:
CS-Cart add-ons :: CS-Cart themes :: CS-Cart development :: CS-Cart license
Работаем с англоязычными и русскоязычными клиентами (work with English-speaking and Russian-speaking customers)

 
  • pwpw
  • Member
  • Members
  • Join Date: 11-Sep 16
  • 19 posts

Posted 11 October 2016 - 05:04 PM #4

Hello! 

 

Try to apply the following modifications with My changes add-on: 

 

1. Create the  app/addons/my_changes/controllers/frontend/checkout.post.php file with the following content: 

<?php
use Tygh\Registry;
if (!defined('BOOTSTRAP')) { die('Access denied'); }
if ($mode == 'checkout') {
    if (!defined('AJAX_REQUEST')) {
        Registry::get('view')->assign('show_step_2', 'show');
    }
}

2. Override the checkout_steps.tpl template: 

2.1. Copy the design/themes/responsive/templates/views/checkout/components/checkout_steps.tpl file to design/themes/responsive/templates/addons/my_changes/overrides/views/checkout/components

2.2. In the newly created file (design/themes/responsive/templates/addons/my_changes/overrides/views/checkout/components/checkout_steps.tpl) add this code into the beginning:

{if $show_step_2 && $show_step_2 == "show"}
    {$cart.edit_step = "step_two"}
{/if}

3. Clear the cache of your installation and browser if necessary. 

 

Enable the My changes add-on to check the functionality. The modification will work in case any other add-ons do not override the checkout template. 

 

Tested in the Responsive theme (CS-Cart 4.3.9)

 

I'm not at home right now, but it seems it'll work!
send me your paypal e-mail id (here or send me a message), so I let send your reward in gratitude. 

Thank you!



 
  • pwpw
  • Member
  • Members
  • Join Date: 11-Sep 16
  • 19 posts

Posted 12 October 2016 - 05:23 AM #5

Hello; I'm back just to say that I followed your steps and worked perfectly. You are the man! Thank you very much! I sent your paypal email by private message :P



 
  • Cart-Power
  • Senior Member
  • Authorized Reseller
  • Join Date: 12-May 14
  • 1646 posts

Posted 12 October 2016 - 11:36 AM #6

Glad to help!


Cart-Power.com / Cart-Power.ru (sales@cart-power.com) offers you:
CS-Cart add-ons :: CS-Cart themes :: CS-Cart development :: CS-Cart license
Работаем с англоязычными и русскоязычными клиентами (work with English-speaking and Russian-speaking customers)

 
  • Cart-Power
  • Senior Member
  • Authorized Reseller
  • Join Date: 12-May 14
  • 1646 posts

Posted 12 October 2016 - 11:52 AM #7

Feel free to contact us if you have any other questions


Cart-Power.com / Cart-Power.ru (sales@cart-power.com) offers you:
CS-Cart add-ons :: CS-Cart themes :: CS-Cart development :: CS-Cart license
Работаем с англоязычными и русскоязычными клиентами (work with English-speaking and Russian-speaking customers)

 
  • muthu.amr
  • Member
  • Members
  • Join Date: 05-Jul 20
  • 16 posts

Posted 10 July 2020 - 11:42 AM #8

Hello! 

 

Try to apply the following modifications with My changes add-on: 

 

1. Create the  app/addons/my_changes/controllers/frontend/checkout.post.php file with the following content: 

<?php
use Tygh\Registry;
if (!defined('BOOTSTRAP')) { die('Access denied'); }
if ($mode == 'checkout') {
    if (!defined('AJAX_REQUEST')) {
        Registry::get('view')->assign('show_step_2', 'show');
    }
}

2. Override the checkout_steps.tpl template: 

2.1. Copy the design/themes/responsive/templates/views/checkout/components/checkout_steps.tpl file to design/themes/responsive/templates/addons/my_changes/overrides/views/checkout/components

2.2. In the newly created file (design/themes/responsive/templates/addons/my_changes/overrides/views/checkout/components/checkout_steps.tpl) add this code into the beginning:

{if $show_step_2 && $show_step_2 == "show"}
    {$cart.edit_step = "step_two"}
{/if}

3. Clear the cache of your installation and browser if necessary. 

 

Enable the My changes add-on to check the functionality. The modification will work in case any other add-ons do not override the checkout template. 

 

Tested in the Responsive theme (CS-Cart 4.3.9)

 

 

Hi,

 

How to override the checkout template file on my_changes addon since the same template file is overridden by another addon. I have already confirmed that my_changes addon is having the highest priority in cscart_addons table, but still the tpl file reflects from other addon only instead of my_changes.

 

Could you pls advise.

 

Thanks.