AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
Cancelling an order doesn't refund gift certificate sometimes
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
We're having an issue on a site so that when orders are cancelled, the gift certificate is not refunded. The payments tab says No gift certificate found with given serial number. 1 I searched for the gift certificate that had been used on the order the day before and found it. It is marked inactive, though. Also, there is no button to re-activate it. The status shows Inactive, but a Deactivate button shows. Will AC not refund an inactive gift certificate? Is there any way I can troubleshoot what is happening? Thanks
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
I think the gift certificate is expired and thus showing status as inactive. Please confirm if there is an expiry date set to the GC. Change the expiry date to future or remove the date to mark the GC as active. Quote: Also, there is no button to re-activate it. The status shows Inactive, but a Deactivate button shows. Once the deactivate button is pressed, you will be seeing Generate button in the Serial Number column. It will generate the serial number.
|
|
|
|
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
These gift certificates don't have expiration date. One of them was created one day and used on an order, then order cancelled the next day. But I just tested on another site using the same procedure and it was refunded OK, so I don't know why it works part of the time and doesn't part of the time. Anyway, if a gift certificate is showing Inactive, shouldn't the button show Activate instead of Deactivate? Thanks
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Quote:Anyway, if a gift certificate is showing Inactive, shouldn't the button show Activate instead of Deactivate? Hi Judy, I am registering this issue for further inspection. There is certainly some difference with the previous versions. Thanks for your support!
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Quote:Anyway, if a gift certificate is showing Inactive, shouldn't the button show Activate instead of Deactivate? To Fix, 1- Open file \Website\Areas\Admin\Views\Payments\_ListGiftCertificates.cshtml 2- Search for Code:@if (certificate.ShowDeactivate)
{
<a data-name="@certificate.Name" class="btn-white btn btn-sm btn-deactivate" data-action="@Url.Action("GiftCertificateRowAction", new { Command = "Deactivate", GiftCertificateId = certificate.Id })">Deactivate</a>
}
3- Replace with Code:@if (certificate.IsActive)
{
<a data-name="@certificate.Name" class="btn-white btn btn-sm btn-deactivate" data-action="@Url.Action("GiftCertificateRowAction", new { Command = "Deactivate", GiftCertificateId = certificate.Id })">Deactivate</a>
}
|
|
|
|
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
Thank you. If a gift certificate serial number is a custom alpha-numeric string, would that effect refunding it? It was the same string in AC Gold and there wasn't an issue there. If I search for the gift certificate using the serial number, I can find it, but cancelling an order sometimes gives the message that it can't find the gift certificate. I think, but don't remember for sure, that both actions use the same method to find the gift certificate in the source code.
|
|
|
|
AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
Cancelling an order doesn't refund gift certificate sometimes
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close