Undefined variable: avoucher when checking out gift voucher

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeUndefined variable: avoucher when checking out gift voucher

This topic has been marked as resolved.

Hi guys,

I was testing out gift voucher purchase and was going to checkout a gift voucher when the following error came out under “Unit Price” and “Total Price”

Notice: Undefined variable: avoucher in /catalog/view/theme/shoppica2/template/checkout/cart.tpl on line 108

Notice: Undefined variable: avoucher in /catalog/view/theme/shoppica2/template/checkout/cart.tpl on line 109

I have not modified anything other than changing footer text and logos.. have tried to replace the cart.tpl file again but to no avail…

Am on opencart 1.5.2.1 / shoppica 2

Thanks,
Jeremy

May 29, 2012 at 6:39 am #9471

Hi,

it seems you found a tiny bug in Shoppica. In order to resolve it, open /catalog/view/theme/shoppica2/template/checkout/cart.tpl and replace $avoucher with $voucher. You need to make three replacements.

We have fixed the issue in our code repository. The fix will be provided with the next Shoppica update coming this week.

Regards,
ThemeBurn team

May 31, 2012 at 12:35 pm #9584

Hi TB,

Thanks for your help, its working now.
However there are 2 more things i would like to point out (See screenshot below)

1. The Gift Certificate row is somehow not aligned properly with the rest of the shopping cart items, before checking out.

2. Was testing the reward points system, when a customer does the following steps, he gets an error:

1. Adds X number of reward points to product.
2. Changes his mind and decides to remove points
3. Keys in 0 in the “Reward Points to use” textbox.
4. Cart prompts “Warning: Please enter the amount of reward points to use!”

Somehow, the cart doesn’t like people to change their minds.. lol

Please help.
Regards,
Jeremy

June 1, 2012 at 5:24 am #9600

Hi Jeremy,

1) We’ve attached a fixed template for the improper alignment on the cart page. Just extract the appropriate file from the archive in catalog/view/theme/shoppica2/template/checkout/ folder.

2) The reward points behavior is the same on the default theme too. You can try to submit this issue in the opencart bug tracker (although this is not a bug) and hopefully Daniel will fix it in the next release :)

Best,
ThemeBurn team

June 4, 2012 at 3:26 pm #9745

Hi TB,

Brilliant! Its displaying nicely now…

Thanks for the fast response as always.. :)

June 5, 2012 at 4:20 am #9797

Glad we’ve helped, mate :)

Best,
ThemeBurn team

June 5, 2012 at 4:00 pm #9842
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.