Cant Purchase gift voucher alone

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeCant Purchase gift voucher alone

This topic has been marked as resolved.

Hi I have set up the latest version of shoppica with the latest version of opencart (as of yesterday). And I’m running into a bug that wont let me checkout with only a gift voucher in the basket. Is anyone else having this problem? My demo link is here:

http://www.shop.coffee-design.co.uk/

I’ve been using the link in the footer to get to the gift voucher page, entering all the info hitting continue until you get through to the basket, then hitting checkout just refreshes the page.

Futhermore it appears like you cannot remove this from the shopping cart, via the “x” that appears when you hover over the cart in the top right. If you try and remove the voucher from the cart page it does it, but you get this error:

Warning: Illegal offset type in /home/lee/public_html/shop/catalog/controller/module/shoppica.php on line 581Warning: Cannot modify header information - headers already sent by (output started at /home/lee/public_html/shop/index.php:100) in /home/lee/public_html/shop/system/engine/controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home/lee/public_html/shop/index.php:100) in /home/lee/public_html/shop/system/engine/controller.php on line 29

I hope i was clear enough, I tried replicating the problem on themeforest but i cant get the gift voucher into the basket.

Thanks, i look forward to your reply.

October 13, 2011 at 11:42 am #2409

Hi I found out the not being able to checkout bug was with opencart not your theme, people can find the fix here:

http://code.google.com/p/opencart/source/diff?spec=svn655&r=655&format=side&path=/trunk/upload/catalog/controller/checkout/checkout.php

how ever you still cant remove the item from the cart using the “x” on the top right hover cart, and i still get the error when trying to remove it by ticking the remove box and update on the cart page.

Thanks.

October 13, 2011 at 1:22 pm #2421

I’ve attached a fixed javascript file, which caused this problem in Shoppica. Unzip and upload it to catalog\view\theme\shoppica\js and replace the current one.

October 13, 2011 at 6:47 pm #2442

Thank you that has allowed me to remove the item when hovering over the cart. However you still get his error when in the cart page click the remove box and hit update:

Warning: Illegal offset type in /home/lee/public_html/shop/catalog/controller/module/shoppica.php on line 581Warning: Cannot modify header information – headers already sent by (output started at /home/lee/public_html/shop/index.php:100) in /home/lee/public_html/shop/system/engine/controller.php on line 28Warning: Cannot modify header information – headers already sent by (output started at /home/lee/public_html/shop/index.php:100) in /home/lee/public_html/shop/system/engine/controller.php on line 29

Thank you

October 14, 2011 at 12:24 pm #2478

We are preparing a small update to Shoppica wich will fix this error along with several others. We will make an announcement here and in our twitter account. This should happen within 2-3 days.

Regards, ThemeBurn team

October 17, 2011 at 11:35 am #2621

I do not know if the problem has been solved
but I put the solution I found.

we must replace the first line in checkout.php

(catalog->controller->checkout->checkout.php)

this one:

if ((!$this->cart->hasProducts() && !empty($this->session->data['vouchers'])) || (!$this->cart->hasStock() && !$this->config->get('config_stock_checkout'))) {
        $this->redirect($this->url->link('checkout/cart'));
      }

by this:

if ((!$this->cart->hasProducts() && (!isset($this->session->data['vouchers']) || !$this->session->data['vouchers'])) ||(!$this->cart->hasStock() && !$this->config->get('config_stock_checkout'))) {
        $this->redirect($this->url->link('checkout/cart'));
      }

For me it works now

  • This reply was modified 4512 days ago by  i500.
  • This reply was modified 4512 days ago by  i500.
 i500
December 20, 2011 at 9:31 am #4623

@i500

Thanks for the help, mate. This one has already been submitted in the latest 1.0.11 version of Shoppica.

Best,
ThemeBurn team

December 21, 2011 at 1:11 pm #4659
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.