Switch from VM to eShop - A few issues


  • Default avatar
    Alison Effting    
     5 years ago
    0

    Hi Seyi


    I purchased the component about a year ago, and didn't get it quite configured for Virtuemart. I have been developing an eShop to replace VM, and was delighted to see your comment in the eShop forum about 10 days ago that the component is compatible. I just made a switch in the configuration to eShop and set up some gift certificates.


    On the creation side, all is working well; the voucher sends (although admin doesn't receive a bcc copy of it and I'm not sure if the purchaser does either) - but the customer does.

    Trying to redeem the gift voucher is a problem. 
    If entered in the eShop Voucher field, there is a 'Voucher does not exist' error message. 
    If entered in the eShop Coupon field an internal server error arises that seems to raise css / template issues - I can attach screenshots of this for you if it is necessary; I tried both fields because I wasn't sure which one eShop checkout chooses to use for the code from AWOCoupon.

    Also, trying to edit the coupon (Gift Voucher) templates leaves me with the spinning wheel. I thought it may need a new installation, I downloaded and reinstalled it over the old installation, also with the update yesterday. (I had previously tried to create 2 VM coupons - one a gift voucher template, so deleted those 2 but it still persists with the new ones I've added subsequent to reinstalling the latest update over the original installation.)

    I'm not sure if I haven't configured it correctly, or whether there are any VM plugins that ought to be disabled now that it is configured for eShop?  Should it be completely uninstalled and installed again?

    My subscription comes up for renewal later this month and I would very much like to get this working properly.

    Thanks very much, 

    Alison


  • Your avatar
    seyi    
     5 years ago
    0

    Ok, I tested your version of eshop, 3.1.0, and do not see any issues with using a coupon in the front end.

    One thing you should check, go to admin > awocoupon > installation check  and verify everything is installed
  • Default avatar
    Alison Effting    
     5 years ago
    0

    Yes, I had already done that, and everything was green - good to go.

    Something that occurred to me is that I had put a prefix into the code, and the code that was generated then became 13 characters long, which was beyond the max 12 in the AWOcoupon configuration. Just changed that to 13, and tested again, with the same results. (I have tried both with the invalid code response from Voucher as per attached screenshot; I copied and pasted the code from the AWOcoupon).

    So this test was for a gift voucher product, not sure if yours was too?

    Error message in checkout





  • Your avatar
    seyi    
     5 years ago
    0

    In a default install of eshop, I do not see a voucher field, only a coupon field:



    Not really sure what to think of that voucher field, is this an option you enable somewhere?

    When I use that field or the field in the shopping cart it works in adding the coupon.

    Is it possible to send me a private message with temp access to have a look directly?

  • Your avatar
    seyi    
     5 years ago
    0

    Also the max length of 12 in awocoupon configuration is for generating coupons.  You can set a min and max length for generating.  This has nothing to do with processing coupons in the front end.  You could technically have up to a 255 character coupon and it would work in the front end.
  • Default avatar
    Alison Effting    
     5 years ago
    0

    Hi - apologies I missed these replies of yours for a couple of hours.


    Not really sure what to think of that voucher field, is this an option you enable somewhere?
    Both the coupon and voucher fields are something you enable in the System/Configuration Option tab under the Checkout section.
    I tried disabling one at a time, but the errors were as described before. If you think it best to only have one default field, that's fine, but the coupon field is the one that gives the internal server error at the moment.

    When I use that field or the field in the shopping cart it works in adding the coupon.
    It seems to accept it under coupon in the View Cart page, but forgets it and the field is available again on the checkout.

    Is it possible to send me a private message with temp access to have a look directly?
    I'll do that now Seyi. Thanks.

    Perhaps you could check whether there are old VM plugins that are conflicting - I wasn't sure whether to disable any; there could even be old J1.5 VM plugins around. Also if you think it best to uninstall AWOCoupon and reinstall it afresh for the eShop requirements, I can do that, it's a bit of a repeat to recreate the Gift Certificates, but I'm sure it can be possible now. 

    I was unsure of the AWOCoupon balance config and whether anything needed to happen there. 

    Also please look at what happens if you want to view details of a coupon:
    Click on Details

    and on edit:
    Edit coupon (or template)
  • Your avatar
    seyi    
     5 years ago  last edited 5 years ago
    0

    Ok, to solve the hanging of the edit screen, in the file
    www/administrator/components/com_awocoupon/helper/estore/eshop/class-awocoupon-helper-estore-eshop-helper.php, around line 66, has the text
    B.title

    Please change it to
    b.title


    I think this is also causing the internal error you are seeing in the front end
  • Default avatar
    Alison Effting    
     5 years ago
    0

    Thank you Seyi - that seems to have worked on all those issues I was having. Will I need to re-create that change with each AwoCoupon update or are those files unaffected?

    I want to test a little more and hopefully will find no further complications to bother you with!

    Just a little feedback - the Voucher field in eShop still returns an invalid voucher warning, so it seems that all coupons/vouchers must use the eShop Coupon field. (I'm not too sure how the Voucher field works then, perhaps it is something specific to eShop, and I can probably disable it unless I can find a different use, and label the field something different so as not to confuse the customers.)

    Many thanks for your prompt attention to sorting my issues out. Much appreciated!

  • Default avatar
    Alison Effting    
     5 years ago
    0

    Ah Seyi, apologies that I am back sooner than I thought.

    I noticed on my Voucher Templates that if I check the 'Exclude Gift Certificate Products' it is not saving; open the form again and it is unchecked. Hope there is a quick fix for that.

    Thank you.

  • Your avatar
    seyi    
     5 years ago
    0

    Ok, to fix that, in the file:
    www/administrator/components/com_awocoupon/awocoupon/admin/class/class-awocoupon-admin-class-coupon.php, around line 912 is this:
    <?php
            
    } elseif ( 'giftcert' === $row->function_type ) {
    ?>

    Right after that add this:
    <?php
                
    if ( ! empty( $data['exclude_giftcert'] ) ) {
                    $params['exclude_giftcert'] = 1;
                }
    ?>

    It should save after that.

  • Your avatar
    seyi    
     5 years ago
    0

    All these fixes will be in the next version, you do not need to keep track.
  • Default avatar
    Alison Effting    
     5 years ago
    0

    Super thank you, Seyi - that did it.
    Regards
    Alison