passage awo coupon virtuemart to hikashop


  • Default avatar
    pascaline    
     4 years ago
    0

    Hello
    Can you tell me step by step how to switch the setting of awocoupon virtuemart to awocoupon hisakhop?
    Regards
  • Your avatar
    seyi    
     4 years ago  last edited 4 years ago
    0

    Hello,

    Do you mean convert all coupons/history in the database from virtuemart to hikashop?

    If so in the database, run the queries

    UPDATE #__awocoupon SET estore="hikashop";
    UPDATE #__awocoupon_history SET estore="hikashop";
    UPDATE #__awocoupon_giftcert_product SET estore="hikashop";
    UPDATE #__awocoupon_giftcert_code SET estore="hikashop";
    UPDATE #__awocoupon_voucher_customer SET estore="hikashop";

    Where #__ is your database prefix.

    The above will convert your data to be used by hikashop.  It assumes all ids remain the same from virtuemart to hikashop.  And lastly, please backup  your database before running the above code, so you can always go back just in case it is not what you want.

  • Default avatar
    pascaline    
     4 years ago
    0

    Hello
    I installed awocoupon with virtuemart.
    We had created the coupons.
    In the main menu, I linked to coupons for the member to purchase a coupon as a product.

    Now we have installed hikasop. I will want to transfer the coupons and that the awocoupon setting is correct for hikashop
    I tried to apply the requests I got the error message
    Static analysis:

    7 errors found during analysis.

    An expression was expected. (near "UPDATE" at position 44)
    This type of clause has been analyzed previously. (near "UPDATE" at position 44)
    An expression was expected. (near "UPDATE" at position 96)
    This type of clause has been analyzed previously. (near "UPDATE" at position 96)
    An expression was expected. (near "UPDATE" at position 154)
    This type of clause has been analyzed previously. (near "UPDATE" at position 154)
    An expression was expected. (near "" at position 0)
    Regards
  • Your avatar
    seyi    
     4 years ago
    0

    Are you running this on the database, in phpmyadmin?  Did you update #__ to your actual database prefix?  If you want just the coupons, then you should only run this
    UPDATE #__awocoupon SET estore="hikashop"; 

  • Default avatar
    pascaline    
     4 years ago
    0

    Hello
    It was over this time :-)

    For my part, by pointing to the list of coupons on the site, I have an error message when clicking on the coupon
    https://sweetalpaga.com/fr/cheques-cadeaux

    I forgot to say that I migrated virtuemart -> hikashop but also monolanguage to multi-langue
    Can you see if everything is set up correctly?
    Regards
  • Default avatar
    pascaline    
     4 years ago
    0

    re
    very embarrassing !!
    If awocoupon is activated, it is no longer possible to add a product to the basket. I had to deactivate it.
    The error message often appears:

    TOO FEW ARGUMENTS TO FUNCTION AWOCOUPON_HELPER_ESTORE_VIRTUEMART_DISCOUNT::CART_CALCULATE_TOTALS(), 1 PASSED IN /HOMEPAGES/xxxxx/HTDOCS/WWW/PLUGINS/HIKASHOP/AWOCOUPON/AWOCOUPON.PHP ON LINE 133 AND EXACTLY 2 EXPECTED
    Regards

  • Your avatar
    seyi    
     4 years ago
    0

    Looks like your store is still pointing to Virtuemart.  In awocoupon > configuration > general tab, do you have to dropdown 'Shop'?  If so, is it set to Hikashop?

    If it is not there, then you do not still have Virtuemart installed, so you would need to update this in the database directly:

    UPDATE #__awocoupon_config SET value="hikashop" WHERE  name="estore";