Undefined variable: button_checkout

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeUndefined variable: button_checkout

This topic has been marked as resolved.

Hi !

Sorry for my English :-) (I’m french)

I use the template 1.0.12 and OPenCart 1.5.2.1.
At this time, on a localhost.
All it’s ok except one error about the shopping cart.

In the error.log I have :

Undefined variable: button_checkout in /Applications/MAMP/htdocs/mydemowebsite/catalog/view/theme/shoppica/template/module/cart.tpl on line 59

Only when I have one or more products in my Shopping cart. (off course)

If you have any suggestion :-)

Thank’s in advance.

Regards

Thibaut

  • This reply was modified 4426 days ago by  thibaut974. Reason: (add my country)
March 17, 2012 at 12:26 pm #7211

hi, i am also getting this error as well with the same version of shoppica and opencart 1.5.2.1,
did you manage a fix for it?

 ash72
March 18, 2012 at 7:25 pm #7272

Hello,

we fixed this bug.

To fix it manually you need to:

1. Open catalog/view/theme/shoppica/template/module/cart.tpl, GoTo line 59 and change <?php echo $button_checkout; ?> to

<?php echo $text_checkout; ?>

2. Open catalog/controller/module/shoppica.php, GoTo row 477 and change $this->language->load('checkout/cart'); to

$this->language->load('module/cart');

GoTo row 591 and change $this->data['button_checkout']   = $this->language->get('button_checkout'); to

        $this->data['text_checkout']   = $this->language->get('text_checkout');

Alternatively you can just replace these two files with the ones attached to this post.

We have also re-uploaded the fixes to themeforest.

March 20, 2012 at 11:35 am #7347

Hi.

Thank’s a lot for these two files.
I confirm it works.

Thank’s for your support.

Nice theme ! :-)

Have a good day.

Regards

Thibaut

March 20, 2012 at 11:48 am #7349

Glad we’ve helped, mate :)

The update is already available for download as well.

Best,
ThemeBurn team

March 21, 2012 at 11:29 am #7372
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.