Author Topic: checkout - continue shopping  (Read 5727 times)

Offline ygalbrami

  • Full Member
  • ***
  • Posts: 128
  • Karma: +9/-2
    • View Profile
checkout - continue shopping
« on: April 18, 2013, 04:30:44 PM »
please help me to fix this:
when i press checkout and i want to buy other items, i don't have a button to continue shopping,
how can i make this button?

thanks

Offline andrew.mikhailyk

  • Newbie
  • *
  • Posts: 25
  • Karma: +5/-0
    • View Profile
Re: checkout - continue shopping
« Reply #1 on: April 19, 2013, 10:51:33 AM »
Hello.

We have already add this button in our new version 1.1.5 that will be released soon.
But if you need it now you have to edit source files by yourself.

It's easy. Here are instructions:
- Go to directory ...\storefront\controller\pages\checkout\ and open file cart.php.
- Go to line 264 and insert this code:

Code: [Select]
$this->data['form'][ 'continue_shopping' ] = $form->getFieldHtml(
array(
'type' => 'button',
'name' => 'continue_shopping',
'text' => $this->language->get('button_shopping'),
'style' => 'button'
)
);

- Than go to ...\storefront\view\default\template\pages\checkout\ and open file cart.tpl
- At line 67 you'll find <div class="buttons">. Inside this <div> there will be <table>.
- Put this code:
Code: [Select]
<?php echo $form['continue_shopping']; ?> inside any <td> tag. We prefer to put it into the last one <td align="right">.
- Last thing - go to the bottom of file, there will be <script type="text/javascript">. Inside this tag you need to put code:
Code: [Select]
$('#cart_continue_shopping').click( function(){
location = '<?php echo $continue?>';
});

That's all. Please let me know if you have any troubles.
Good luck.

Offline ygalbrami

  • Full Member
  • ***
  • Posts: 128
  • Karma: +9/-2
    • View Profile
Re: checkout - continue shopping
« Reply #2 on: April 19, 2013, 11:09:04 AM »
thank you so so much for this.

if i will edit the page, when i will install the new update it will replace the file that i edit?

Offline ygalbrami

  • Full Member
  • ***
  • Posts: 128
  • Karma: +9/-2
    • View Profile
Re: checkout - continue shopping
« Reply #3 on: April 20, 2013, 07:35:57 AM »
i get this error on the file cart.php

 Fatal error: Call to a member function getFieldHtml() on a non-object in /home/ismyvodc/public_html/ismystore.com/storefront/controller/pages/checkout/cart.php on line 252

Offline ygalbrami

  • Full Member
  • ***
  • Posts: 128
  • Karma: +9/-2
    • View Profile
Re: checkout - continue shopping
« Reply #4 on: April 20, 2013, 08:14:45 AM »
ok it's work
i insert the code before this:
Code: [Select]
$this->view->batchAssign( $this->data);
but i recommand the first button will be: update button
the second button: continue shopping
and the third button will be: checkout button.

now i see the update button, checkout and continue shopping.

 

Powered by SMFPacks Social Login Mod