[Skip to main content](#vessel-content)

#  Profile for matmosis

##

[![matmosis's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/61552-matmosis "View matmosis's Profile")

**[ Offline](/forum/user/61552-matmosis)**

- **User Type:** User

- **Register Date:** 01 Jun 2021
- **Last login:** 1 week 4 days ago
- **Time Zone:**  UTC +0:00
- **Local Time:** 17:34

- **Posts:** 53
- **Profile views:** 138
- **Thank you received:** 1

- **Gender:** Unknown
- **Birthdate:** Unknown
- **Medals:**  Hikamarket Multivendor Hikashop Business

- Posts

#  matmosis recent posts  (53 messages )

All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year     All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year

| <a id="forumtop"> </a> [  ](#forumbottom) | Subject | Replies / Views | Last Post | <a id="forumbottom"> </a> [   ](#forumtop) |
|---|---|---|---|---|
| [](/forum/4-how-to/909823-customize-zone-list#369077) | [Customize Zone list](/forum/4-how-to/909823-customize-zone-list#369077 "-- HikaShop version -- : 6.1.0 -- Joomla version -- : 3.10.20 -- PHP version -- : 7.4.13 -- Browser(s) name and version -- : Chrome 138.0.7204.183  Hello, How can I customize the zone list in address&#95;state?  Thank you Matteo")         Category: [How to?](/forum/4-how-to "If you didn't find the answer on our documentation neither on existing posts, please ask your question here.")     Topic started 1 year 1 month ago, by [matmosis](/forum/user/61552-matmosis "View matmosis's Profile")       [Last Post](/forum/4-how-to/909823-customize-zone-list#369082 "Hi,  The zones are defined in the System&gt;Zones menu. So you can add new zones, modify existing ones, unpublish the ones you don't want, etc in there.") 1 year 1 month ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:657 | [Last Post](/forum/4-how-to/909823-customize-zone-list#369082 "Hi,  The zones are defined in the System&gt;Zones menu. So you can add new zones, modify existing ones, unpublish the ones you don't want, etc in there.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      1 year 1 month ago |
| [](/forum/4-how-to/909742-order-link-in-order-page-after-order-created#368709) | [order link in order page after order created](/forum/4-how-to/909742-order-link-in-order-page-after-order-created#368709 "-- HikaShop version -- : 6.1.0 -- Joomla version -- : 3.10.20 -- PHP version -- : 7.4.13 -- Browser(s) name and version -- : Chrome 138.0.7204.183  In order page after an order is created a link &quot;Now you can access your order here&quot; appears. How can I remove/disable it?  Thanks.  Best regards, Matteo")         Category: [How to?](/forum/4-how-to "If you didn't find the answer on our documentation neither on existing posts, please ask your question here.")     Topic started 1 year 2 months ago, by [matmosis](/forum/user/61552-matmosis "View matmosis's Profile")       [Last Post](/forum/4-how-to/909742-order-link-in-order-page-after-order-created#368712 "Hi,  You can use a translation override of that text to not have the text:   www.hikashop.com/download/languages.html#modify") 1 year 2 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:879 | [Last Post](/forum/4-how-to/909742-order-link-in-order-page-after-order-created#368712 "Hi,  You can use a translation override of that text to not have the text:   www.hikashop.com/download/languages.html#modify") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      1 year 2 months ago |
| [](/forum/35-orders-management/909284-contact-button-on-ordrer-page#366379) | [contact button on ordrer page](/forum/35-orders-management/909284-contact-button-on-ordrer-page#366379 "-- HikaShop version -- : 5.1.5 -- Joomla version -- : 3.10.20 -- PHP version -- : 7.4.13  In order page a button &quot;Contact us about your order&quot; appears. How can I remove/disable it?  Thanks.  Best regards, Matteo")         Category: [Orders management](/forum/35-orders-management "You can ask here your questions about orders management")     Topic started 1 year 8 months ago, by [matmosis](/forum/user/61552-matmosis "View matmosis's Profile")       [Last Post](/forum/35-orders-management/909284-contact-button-on-ordrer-page#366381 "Hi,  Go in the menu System&gt;Order statuses of HikaShop. There, under the &quot;contact button&quot; column, you can select the order statuses for which you want this button to be visible. If you disable all the statuses under that column, the button will never be visible.") 1 year 8 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:646 | [Last Post](/forum/35-orders-management/909284-contact-button-on-ordrer-page#366381 "Hi,  Go in the menu System&gt;Order statuses of HikaShop. There, under the &quot;contact button&quot; column, you can select the order statuses for which you want this button to be visible. If you disable all the statuses under that column, the button will never be visible.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      1 year 8 months ago |
| [](/forum/4-how-to/906536-onaftercartproductsload-trigger#352394) | [onAfterCartProductsLoad trigger](/forum/4-how-to/906536-onaftercartproductsload-trigger#352394 "-- HikaShop version -- : 4.7.3 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4.3 -- Browser(s) name and version -- : Chrome 90.0.4430.212  Hello, does the calling $cartClass = hikashop&#95;get('class.cart'); $cartClass-&gt;save($cart); trigger the event onAfterCartProductsLoad() ?  thank you")        Category: [How to?](/forum/4-how-to "If you didn't find the answer on our documentation neither on existing posts, please ask your question here.")     Topic started 3 years 5 months ago, by [matmosis](/forum/user/61552-matmosis "View matmosis's Profile")       [Last Post](/forum/4-how-to/906536-onaftercartproductsload-trigger#352395 "Hi,  No, it doesn't.") 3 years 5 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:943 | [Last Post](/forum/4-how-to/906536-onaftercartproductsload-trigger#352395 "Hi,  No, it doesn't.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      3 years 5 months ago |
| [](/forum/4-how-to/906348-custom-backend-coupon#352390) | [Custom backend coupon](/forum/4-how-to/906348-custom-backend-coupon#352390 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4.3 -- Browser(s) name and version -- : Chrome 90.0.4430.212  Hi, I wish I could add custom backend coupons to the checkout page.  In this case the customer text a code in the hikashop coupon field of the checkout page, we intercept the event, call our custom backend (java app) which decides if the customer deserves one or more discounts, these discounts are generated only at the software level ( no hikashop&#95;discount table or other), and added to the cart &quot;on the fly&quot;, also taking advantage of the use of the multicoupon plugin with the possibility of adding an array of coupons.  Is there a way to achieve this?  For example, if we can intercept the coupon field event with the coupon code entered by the customer as parameter, check if there are available coupons on our custom backend and eventually add those coupons directly to the $cart-&gt;additional (as multicoupon plugn do), could it work?  Thanks")        Category: [How to?](/forum/4-how-to "If you didn't find the answer on our documentation neither on existing posts, please ask your question here.")     Topic started 3 years 6 months ago, by [matmosis](/forum/user/61552-matmosis "View matmosis's Profile")       [Last Post](/forum/4-how-to/906348-custom-backend-coupon#352400 "Hi,  You missunderstood me. When you set $do to false in onBeforeCouponLoad HikaShop will use the return of your function as the coupon object. So the object you return needs to have the same attributes (same name of attribute). The values can all be empty though. You get these notices / warnings because the object you provide doesn't contain the normal attributes HikaShop is expecting.  The fact that onAfterCouponCheck is called is normal and not a problem in your case. Just provide empty attributes in your coupon object and the checks done on the coupon will go through unimpeeded. The checks on the coupon are based on what you provide, not what is in the database. So for example, if in $coupon you have: $coupon-&gt;discount&#95;access = 'xxx'; The checks will check that the current user is in the group xxx But if you have instead: $coupon-&gt;discount&#95;access = 'all'; the checks will skip the user group verification. And if you don't provide discount&#95;access in $coupon, then HikaShop will output a warning because this should normally never happen.") 3 years 5 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:11  Views:1218 | [Last Post](/forum/4-how-to/906348-custom-backend-coupon#352400 "Hi,  You missunderstood me. When you set $do to false in onBeforeCouponLoad HikaShop will use the return of your function as the coupon object. So the object you return needs to have the same attributes (same name of attribute). The values can all be empty though. You get these notices / warnings because the object you provide doesn't contain the normal attributes HikaShop is expecting.  The fact that onAfterCouponCheck is called is normal and not a problem in your case. Just provide empty attributes in your coupon object and the checks done on the coupon will go through unimpeeded. The checks on the coupon are based on what you provide, not what is in the database. So for example, if in $coupon you have: $coupon-&gt;discount&#95;access = 'xxx'; The checks will check that the current user is in the group xxx But if you have instead: $coupon-&gt;discount&#95;access = 'all'; the checks will skip the user group verification. And if you don't provide discount&#95;access in $coupon, then HikaShop will output a warning because this should normally never happen.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      3 years 5 months ago |
| [](/forum/4-how-to/906348-custom-backend-coupon#351774) | [Custom backend coupon](/forum/4-how-to/906348-custom-backend-coupon#351774 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4.3 -- Browser(s) name and version -- : Chrome 90.0.4430.212  Hi, I wish I could add custom backend coupons to the checkout page.  In this case the customer text a code in the hikashop coupon field of the checkout page, we intercept the event, call our custom backend (java app) which decides if the customer deserves one or more discounts, these discounts are generated only at the software level ( no hikashop&#95;discount table or other), and added to the cart &quot;on the fly&quot;, also taking advantage of the use of the multicoupon plugin with the possibility of adding an array of coupons.  Is there a way to achieve this?  For example, if we can intercept the coupon field event with the coupon code entered by the customer as parameter, check if there are available coupons on our custom backend and eventually add those coupons directly to the $cart-&gt;additional (as multicoupon plugn do), could it work?  Thanks")        Category: [How to?](/forum/4-how-to "If you didn't find the answer on our documentation neither on existing posts, please ask your question here.")     Topic started 3 years 6 months ago, by [matmosis](/forum/user/61552-matmosis "View matmosis's Profile")       [Last Post](/forum/4-how-to/906348-custom-backend-coupon#352400 "Hi,  You missunderstood me. When you set $do to false in onBeforeCouponLoad HikaShop will use the return of your function as the coupon object. So the object you return needs to have the same attributes (same name of attribute). The values can all be empty though. You get these notices / warnings because the object you provide doesn't contain the normal attributes HikaShop is expecting.  The fact that onAfterCouponCheck is called is normal and not a problem in your case. Just provide empty attributes in your coupon object and the checks done on the coupon will go through unimpeeded. The checks on the coupon are based on what you provide, not what is in the database. So for example, if in $coupon you have: $coupon-&gt;discount&#95;access = 'xxx'; The checks will check that the current user is in the group xxx But if you have instead: $coupon-&gt;discount&#95;access = 'all'; the checks will skip the user group verification. And if you don't provide discount&#95;access in $coupon, then HikaShop will output a warning because this should normally never happen.") 3 years 5 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:11  Views:1218 | [Last Post](/forum/4-how-to/906348-custom-backend-coupon#352400 "Hi,  You missunderstood me. When you set $do to false in onBeforeCouponLoad HikaShop will use the return of your function as the coupon object. So the object you return needs to have the same attributes (same name of attribute). The values can all be empty though. You get these notices / warnings because the object you provide doesn't contain the normal attributes HikaShop is expecting.  The fact that onAfterCouponCheck is called is normal and not a problem in your case. Just provide empty attributes in your coupon object and the checks done on the coupon will go through unimpeeded. The checks on the coupon are based on what you provide, not what is in the database. So for example, if in $coupon you have: $coupon-&gt;discount&#95;access = 'xxx'; The checks will check that the current user is in the group xxx But if you have instead: $coupon-&gt;discount&#95;access = 'all'; the checks will skip the user group verification. And if you don't provide discount&#95;access in $coupon, then HikaShop will output a warning because this should normally never happen.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      3 years 5 months ago |
| [](/forum/4-how-to/906348-custom-backend-coupon#351772) | [Custom backend coupon](/forum/4-how-to/906348-custom-backend-coupon#351772 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4.3 -- Browser(s) name and version -- : Chrome 90.0.4430.212  Hi, I wish I could add custom backend coupons to the checkout page.  In this case the customer text a code in the hikashop coupon field of the checkout page, we intercept the event, call our custom backend (java app) which decides if the customer deserves one or more discounts, these discounts are generated only at the software level ( no hikashop&#95;discount table or other), and added to the cart &quot;on the fly&quot;, also taking advantage of the use of the multicoupon plugin with the possibility of adding an array of coupons.  Is there a way to achieve this?  For example, if we can intercept the coupon field event with the coupon code entered by the customer as parameter, check if there are available coupons on our custom backend and eventually add those coupons directly to the $cart-&gt;additional (as multicoupon plugn do), could it work?  Thanks")        Category: [How to?](/forum/4-how-to "If you didn't find the answer on our documentation neither on existing posts, please ask your question here.")     Topic started 3 years 6 months ago, by [matmosis](/forum/user/61552-matmosis "View matmosis's Profile")       [Last Post](/forum/4-how-to/906348-custom-backend-coupon#352400 "Hi,  You missunderstood me. When you set $do to false in onBeforeCouponLoad HikaShop will use the return of your function as the coupon object. So the object you return needs to have the same attributes (same name of attribute). The values can all be empty though. You get these notices / warnings because the object you provide doesn't contain the normal attributes HikaShop is expecting.  The fact that onAfterCouponCheck is called is normal and not a problem in your case. Just provide empty attributes in your coupon object and the checks done on the coupon will go through unimpeeded. The checks on the coupon are based on what you provide, not what is in the database. So for example, if in $coupon you have: $coupon-&gt;discount&#95;access = 'xxx'; The checks will check that the current user is in the group xxx But if you have instead: $coupon-&gt;discount&#95;access = 'all'; the checks will skip the user group verification. And if you don't provide discount&#95;access in $coupon, then HikaShop will output a warning because this should normally never happen.") 3 years 5 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:11  Views:1218 | [Last Post](/forum/4-how-to/906348-custom-backend-coupon#352400 "Hi,  You missunderstood me. When you set $do to false in onBeforeCouponLoad HikaShop will use the return of your function as the coupon object. So the object you return needs to have the same attributes (same name of attribute). The values can all be empty though. You get these notices / warnings because the object you provide doesn't contain the normal attributes HikaShop is expecting.  The fact that onAfterCouponCheck is called is normal and not a problem in your case. Just provide empty attributes in your coupon object and the checks done on the coupon will go through unimpeeded. The checks on the coupon are based on what you provide, not what is in the database. So for example, if in $coupon you have: $coupon-&gt;discount&#95;access = 'xxx'; The checks will check that the current user is in the group xxx But if you have instead: $coupon-&gt;discount&#95;access = 'all'; the checks will skip the user group verification. And if you don't provide discount&#95;access in $coupon, then HikaShop will output a warning because this should normally never happen.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      3 years 5 months ago |
| [](/forum/4-how-to/906305-how-to-use-multi-coupon-checkout#351656) | [how to use Multi Coupon Checkout](/forum/4-how-to/906305-how-to-use-multi-coupon-checkout#351656 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4.3 -- Browser(s) name and version -- : Chrome 90.0.4430.212  Hi, i'm trying to use the Multi Coupon Checkout plugin. I enabled all, i can see input box on my checkout page, i add a coupon from Orders-&gt;Coupon and than i write down coupon code on the input on the checkout page, it start to process but nothing comes out  How can i use this plugin?  Thank you.")        Category: [How to?](/forum/4-how-to "If you didn't find the answer on our documentation neither on existing posts, please ask your question here.")     Topic started 3 years 7 months ago, by [matmosis](/forum/user/61552-matmosis "View matmosis's Profile")       [Last Post](/forum/4-how-to/906305-how-to-use-multi-coupon-checkout#351660 "Hi,  Well, I'm not sure about the code. I suppose it should be something like that:  Note that this will probably not work as I haven't tested it. The first thing I would do is to have only hikashop&#95;writeToLog($cart); in the function, run my test and check the &quot;payment log file&quot; of the HikaShop configuration. At the end I should have a cart object with the data of the cart, including $cart-&gt;cart&#95;params and $cart-&gt;old-&gt;cart&#95;params That way, I could make sure that the data in these indeed reflect the coupon being removed, and that they are in the correct format as you actually might need to json&#95;decode the params before running the foreach on them.  $cart-&gt;additional is where the additionals are added to the $cart object when a cart is loaded. There is no &quot;additional&quot; column in the hikashop&#95;cart table in the database. cart&#95;params is the name of the column of hikahsop&#95;cart where all extra data regarding a cart is stored in the database, including the additionals.") 3 years 6 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:17  Views:1576 | [Last Post](/forum/4-how-to/906305-how-to-use-multi-coupon-checkout#351660 "Hi,  Well, I'm not sure about the code. I suppose it should be something like that:  Note that this will probably not work as I haven't tested it. The first thing I would do is to have only hikashop&#95;writeToLog($cart); in the function, run my test and check the &quot;payment log file&quot; of the HikaShop configuration. At the end I should have a cart object with the data of the cart, including $cart-&gt;cart&#95;params and $cart-&gt;old-&gt;cart&#95;params That way, I could make sure that the data in these indeed reflect the coupon being removed, and that they are in the correct format as you actually might need to json&#95;decode the params before running the foreach on them.  $cart-&gt;additional is where the additionals are added to the $cart object when a cart is loaded. There is no &quot;additional&quot; column in the hikashop&#95;cart table in the database. cart&#95;params is the name of the column of hikahsop&#95;cart where all extra data regarding a cart is stored in the database, including the additionals.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      3 years 6 months ago |
| [](/forum/4-how-to/906305-how-to-use-multi-coupon-checkout#351638) | [how to use Multi Coupon Checkout](/forum/4-how-to/906305-how-to-use-multi-coupon-checkout#351638 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4.3 -- Browser(s) name and version -- : Chrome 90.0.4430.212  Hi, i'm trying to use the Multi Coupon Checkout plugin. I enabled all, i can see input box on my checkout page, i add a coupon from Orders-&gt;Coupon and than i write down coupon code on the input on the checkout page, it start to process but nothing comes out  How can i use this plugin?  Thank you.")        Category: [How to?](/forum/4-how-to "If you didn't find the answer on our documentation neither on existing posts, please ask your question here.")     Topic started 3 years 7 months ago, by [matmosis](/forum/user/61552-matmosis "View matmosis's Profile")       [Last Post](/forum/4-how-to/906305-how-to-use-multi-coupon-checkout#351660 "Hi,  Well, I'm not sure about the code. I suppose it should be something like that:  Note that this will probably not work as I haven't tested it. The first thing I would do is to have only hikashop&#95;writeToLog($cart); in the function, run my test and check the &quot;payment log file&quot; of the HikaShop configuration. At the end I should have a cart object with the data of the cart, including $cart-&gt;cart&#95;params and $cart-&gt;old-&gt;cart&#95;params That way, I could make sure that the data in these indeed reflect the coupon being removed, and that they are in the correct format as you actually might need to json&#95;decode the params before running the foreach on them.  $cart-&gt;additional is where the additionals are added to the $cart object when a cart is loaded. There is no &quot;additional&quot; column in the hikashop&#95;cart table in the database. cart&#95;params is the name of the column of hikahsop&#95;cart where all extra data regarding a cart is stored in the database, including the additionals.") 3 years 6 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:17  Views:1576 | [Last Post](/forum/4-how-to/906305-how-to-use-multi-coupon-checkout#351660 "Hi,  Well, I'm not sure about the code. I suppose it should be something like that:  Note that this will probably not work as I haven't tested it. The first thing I would do is to have only hikashop&#95;writeToLog($cart); in the function, run my test and check the &quot;payment log file&quot; of the HikaShop configuration. At the end I should have a cart object with the data of the cart, including $cart-&gt;cart&#95;params and $cart-&gt;old-&gt;cart&#95;params That way, I could make sure that the data in these indeed reflect the coupon being removed, and that they are in the correct format as you actually might need to json&#95;decode the params before running the foreach on them.  $cart-&gt;additional is where the additionals are added to the $cart object when a cart is loaded. There is no &quot;additional&quot; column in the hikashop&#95;cart table in the database. cart&#95;params is the name of the column of hikahsop&#95;cart where all extra data regarding a cart is stored in the database, including the additionals.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      3 years 6 months ago |
| [](/forum/4-how-to/906348-custom-backend-coupon#351597) | [Custom backend coupon](/forum/4-how-to/906348-custom-backend-coupon#351597 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4.3 -- Browser(s) name and version -- : Chrome 90.0.4430.212  Hi, I wish I could add custom backend coupons to the checkout page.  In this case the customer text a code in the hikashop coupon field of the checkout page, we intercept the event, call our custom backend (java app) which decides if the customer deserves one or more discounts, these discounts are generated only at the software level ( no hikashop&#95;discount table or other), and added to the cart &quot;on the fly&quot;, also taking advantage of the use of the multicoupon plugin with the possibility of adding an array of coupons.  Is there a way to achieve this?  For example, if we can intercept the coupon field event with the coupon code entered by the customer as parameter, check if there are available coupons on our custom backend and eventually add those coupons directly to the $cart-&gt;additional (as multicoupon plugn do), could it work?  Thanks")        Category: [How to?](/forum/4-how-to "If you didn't find the answer on our documentation neither on existing posts, please ask your question here.")     Topic started 3 years 6 months ago, by [matmosis](/forum/user/61552-matmosis "View matmosis's Profile")       [Last Post](/forum/4-how-to/906348-custom-backend-coupon#352400 "Hi,  You missunderstood me. When you set $do to false in onBeforeCouponLoad HikaShop will use the return of your function as the coupon object. So the object you return needs to have the same attributes (same name of attribute). The values can all be empty though. You get these notices / warnings because the object you provide doesn't contain the normal attributes HikaShop is expecting.  The fact that onAfterCouponCheck is called is normal and not a problem in your case. Just provide empty attributes in your coupon object and the checks done on the coupon will go through unimpeeded. The checks on the coupon are based on what you provide, not what is in the database. So for example, if in $coupon you have: $coupon-&gt;discount&#95;access = 'xxx'; The checks will check that the current user is in the group xxx But if you have instead: $coupon-&gt;discount&#95;access = 'all'; the checks will skip the user group verification. And if you don't provide discount&#95;access in $coupon, then HikaShop will output a warning because this should normally never happen.") 3 years 5 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:11  Views:1218 | [Last Post](/forum/4-how-to/906348-custom-backend-coupon#352400 "Hi,  You missunderstood me. When you set $do to false in onBeforeCouponLoad HikaShop will use the return of your function as the coupon object. So the object you return needs to have the same attributes (same name of attribute). The values can all be empty though. You get these notices / warnings because the object you provide doesn't contain the normal attributes HikaShop is expecting.  The fact that onAfterCouponCheck is called is normal and not a problem in your case. Just provide empty attributes in your coupon object and the checks done on the coupon will go through unimpeeded. The checks on the coupon are based on what you provide, not what is in the database. So for example, if in $coupon you have: $coupon-&gt;discount&#95;access = 'xxx'; The checks will check that the current user is in the group xxx But if you have instead: $coupon-&gt;discount&#95;access = 'all'; the checks will skip the user group verification. And if you don't provide discount&#95;access in $coupon, then HikaShop will output a warning because this should normally never happen.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      3 years 5 months ago |

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.071 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
