News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

checkout - continue shopping

Started by ygalbrami, April 18, 2013, 04:30:44 PM

Previous topic - Next topic

ygalbrami

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

andrew.mikhailyk

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:

$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: <?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:
$('#cart_continue_shopping').click( function(){
location = '<?php echo $continue?>';
});


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

ygalbrami

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?

ygalbrami

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

ygalbrami

ok it's work
i insert the code before this:
$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.

Forum Rules Code of conduct
AbanteCart.com 2010 -