Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: [2.8.0] Bugs in Free Coupon

[2.8.0] Bugs in Free Coupon 6 years 11 months ago #2414

  • hungtran
  • hungtran's Avatar
  • Offline
  • Moderator
  • Posts: 1636
  • Thank you received: 245
  • Karma: 27
We received reports the free coupon didn't work and showed database errors when we subscribed to a location in the 2.8.0 release, another issue was a fatal error.

Please follow the below instruction to fix these problems:

In modules/mod_cmgroupbuying_more_coupons/helper.php, change line 86 from
$locationString = ModCMGroupBuyingMoreDealsHelper::getCouponsInLocation($locationId);

to
$locationString = ModCMGroupBuyingMoreCouponsHelper::getCouponsInLocation($locationId);

In components/com_cmgroupbuying/models/freecoupon.php, change line 230 from
$query->where($db->quoteName('id') . ' IN (' . $dealIdString . ')');

to
$query->where($db->quoteName('id') . ' IN (' . $couponIdString . ')');

We updated cmgroupbuying_2.8.0_unzip_first.zip package in our download area, if you download this package after Thursday, 27 February 2014, 01:45:00 UTC (Thursday, 27 February 2014, 08:45:00 ICT UTC+7 hours - our timezone), you will not have this bug.

Our apology for any inconvenient caused and thank you very much for using CMGroupBuying and contributing to make it better!

Please feel free to contact us if you have any question.
The administrator has disabled public write access.

[2.8.0] Bugs in Free Coupon 6 years 10 months ago #2422

  • sandav
  • sandav's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
We report that also when we submit a new free coupon an error message is prompted showing "Failed to submit your coupon. Required field: Category".
Free Coupon template does'nt have the Category field in components/com_cmgroupbuying/models/freecouponsubmission.php.

Thanks in advance for your help
The administrator has disabled public write access.

[2.8.0] Bugs in Free Coupon 6 years 10 months ago #2423

  • hungtran
  • hungtran's Avatar
  • Offline
  • Moderator
  • Posts: 1636
  • Thank you received: 245
  • Karma: 27
sandav wrote:
We report that also when we submit a new free coupon an error message is prompted showing "Failed to submit your coupon. Required field: Category".
Free Coupon template does'nt have the Category field in components/com_cmgroupbuying/models/freecouponsubmission.php.

Thanks in advance for your help

Hi,

Thank you for your report.

We don't see this problem here in both front-end and back-end. In 2.8.0 free coupon can be assigned to category, so there is a new field in the form to select category, please make sure you already select a category. If you use your own customized layout and didn't update it to the new layout of 2.8.0, you need to manually add this new category field to your layout.

Regards,
Hung
The administrator has disabled public write access.

[2.8.0] Bugs in Free Coupon 6 years 10 months ago #2424

  • sandav
  • sandav's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
Hi Hung,
sorry but attached a screenshot with the fields showed. We did'nt changed the layout, only showed into a rockettheme template. In back-office that's correct that category is showed without any problem,butnot in the front-end.
In the freecouponsubmission php we don't see also the code referred to the category that is validated .... any clarification on that willbe appreciated.
Regards
The administrator has disabled public write access.

[2.8.0] Bugs in Free Coupon 6 years 10 months ago #2425

  • sandav
  • sandav's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
The attached screenshot..
Attachments:
The administrator has disabled public write access.

[2.8.0] Bugs in Free Coupon 6 years 10 months ago #2426

  • hungtran
  • hungtran's Avatar
  • Offline
  • Moderator
  • Posts: 1636
  • Thank you received: 245
  • Karma: 27
Hi,

Joomla validates the form automatically, we don't need to do it in freecouponsubmission.php.

In your screenshot, there is no field for category, that is why you get the error.

This is how the whole page looks:



Please note that in 2.8.0 you must submit coupon from Partner Management Area, the same place you submit new deal.

Regards,
Hung
The administrator has disabled public write access.
  • Page:
  • 1
  • 2