Post by abdulwahabhabib » Mon Apr 04, 2016 5:09 pm

I have enabled the Gift Vouchers in my store: http://nextvitamins.com/index.php?route=account/voucher

But when I try to buy a Gift Voucher, its giving a strange error.

Please see the attachment.

Attachments

Untitled.png

Undefined Index. - Untitled.png (161.65 KiB) Viewed 1405 times



Posts

Joined
Mon Apr 04, 2016 5:04 pm

Post by oc-extensions » Wed Apr 06, 2016 5:57 am

Hi,

Version 2.2.0.0 has an error on this file; (it happen when you have to do major changes)

Anyway .... open catalog/controller/account/voucher.php find line 16 and chnage to

Code: Select all

'description'      => sprintf($this->language->get('text_for'), $this->currency->format($this->currency->convert($this->request->post['amount'], $this->session->data['currency'], $this->config->get('config_currency'))), $this->request->post['to_name']),
;)

Image | Extensions and Custom Development


User avatar
Active Member

Posts

Joined
Fri Jan 06, 2012 11:31 pm

Post by Ienacinema » Wed May 25, 2016 9:02 pm

hi!

i have the same problem!!

sorry for my english.... now my value is euro..

i changed the line 16 but but remains the same problem...

could you help me please?

New member

Posts

Joined
Sun Apr 17, 2016 10:56 pm

Post by leesales » Mon Aug 29, 2016 8:11 am

I too get the same warning. I looked at line 16 on voucher.php and the code matches the fix you suggested.

Any other suggestions on how to fix this problem?

Thanks.

Newbie

Posts

Joined
Mon Aug 29, 2016 8:08 am
Who is online

Users browsing this forum: No registered users and 2 guests