AbanteCart Community

Shopping Cart Operations => Support => Extension Support => Topic started by: ygalbrami on April 18, 2013, 04:30:44 PM

Title: checkout - continue shopping
Post by: ygalbrami 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
Title: Re: checkout - continue shopping
Post by: andrew.mikhailyk 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.
Title: Re: checkout - continue shopping
Post by: ygalbrami 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?
Title: Re: checkout - continue shopping
Post by: ygalbrami 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
Title: Re: checkout - continue shopping
Post by: ygalbrami 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.