Author Topic: VirtueMart 3.2.14: "class 'CouponHelper' not found"  (Read 465 times)

aka.deton

  • Beginner
  • *
  • Posts: 9
VirtueMart 3.2.14: "class 'CouponHelper' not found"
« on: April 13, 2018, 10:40:27 am »
Joomla! 3.8.6
VirtueMart 3.2.14

Code: [Select]
[message] => Class 'CouponHelper' not found
[file] => components/com_virtuemart/helpers/cart.php
[line] => 1300
Do not forget to add:
Code: [Select]
if (!class_exists('CouponHelper')) {
require(VMPATH_SITE . DS . 'helpers' . DS . 'coupon.php');
}
in function emptyCartValues?

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9642
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: VirtueMart 3.2.14: "class 'CouponHelper' not found"
« Reply #1 on: April 13, 2018, 15:47:08 pm »
Hmmm, I wonder why it is not already loaded in your case, whatever. I added it.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Gingerweb

  • Beginner
  • *
  • Posts: 33
  • A beginner
Re: VirtueMart 3.2.14: "class 'CouponHelper' not found"
« Reply #2 on: August 06, 2018, 17:51:16 pm »
I have this error on a new store when using the coupon in the cart.
the above code is present in the file but like this

Code: [Select]
}

if (!class_exists('CouponHelper')) {
require(VMPATH_SITE . DS . 'helpers' . DS . 'coupon.php');
}

$this->prepareCartData();

How can i stop this from happening please?

hazael

  • Beginner
  • *
  • Posts: 33
    • Biżuteria etniczna i orientalna
  • VirtueMart Version: 3.2.14
Re: VirtueMart 3.2.14: "class 'CouponHelper' not found"
« Reply #3 on: August 22, 2018, 20:21:34 pm »
I have same problem

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1669
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: VirtueMart 3.2.14: "class 'CouponHelper' not found"
« Reply #4 on: August 23, 2018, 00:13:24 am »
No VM version, no Joomla version etc

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)