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

#  Profile for UPL

##

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

**[ Offline](/forum/user/83461-upl)**

- **User Type:** User

- **Register Date:** 11 Jul 2025
- **Last login:** 2 weeks 15 hours ago
- **Time Zone:**  UTC +0:00
- **Local Time:** 09:46

- **Posts:** 6
- **Profile views:** 48
- **Thank you received:** 1

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

- Posts

#  UPL's recent posts  (6 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/3-bug-report/910630-send-notification-email-checkbox-forces-email-sending-even-when-unchecked#372396) | [Send Notification Email" checkbox forces email sending even when unchecked](/forum/3-bug-report/910630-send-notification-email-checkbox-forces-email-sending-even-when-unchecked#372396 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 6.1.1 -- PHP version -- : 8.4.19  Hello HikaShop team,  I'm currently using HikaShop Business v6.4.1 (on Joomla 6.1.1) and I have found a bug when using the Order Mass Actions (batch process from the Orders Listing).  When I select one or multiple orders, click the &quot;Actions&quot; button, choose &quot;Change status&quot; and explicitly uncheck the &quot;Send notification email&quot; checkbox, the email is still being sent to the customers.  Upon debugging, we found that the issue is located in the massaction&#95;order plugin (plugins/hikashop/massaction&#95;order/massaction&#95;order.php). In the onProcessOrderMassActionchangeStatus function, the code checks for the existence of the notify variable using isset():  // Around line 535  if(isset($action)){ if(!isset($element-&gt;history) \|\| !is&#95;object($element-&gt;history)) $element-&gt;history = new stdClass(); $element-&gt;history-&gt;history&#95;notified = 1; }  Because the DOM/form can submit an empty value or &quot;0&quot; when the checkbox is unchecked, isset() evaluates to true and blindly forces $element-&gt;history-&gt;history&#95;notified = 1, completely ignoring the unchecked state.  Possible Fix: : Changing the validation from isset to !empty and explicitly forcing 0 when false solves the problem completely:  if(!empty($action)){ if(!isset($element-&gt;history) \|\| !is&#95;object($element-&gt;history)) $element-&gt;history = new stdClass(); $element-&gt;history-&gt;history&#95;notified = 1; } else { if(!isset($element-&gt;history) \|\| !is&#95;object($element-&gt;history)) $element-&gt;history = new stdClass(); $element-&gt;history-&gt;history&#95;notified = 0; }  Could you please verify if my observation is correct? I would appreciate it if you could let me know if this proposed solution is the right approach to fix it.  Thank you for your time!")        Category: [Bug Report](/forum/3-bug-report "Please report any bugs or errors here.")     Topic started 4 months 1 week ago, by [UPL](/forum/user/83461-upl "View UPL's Profile")       [Last Post](/forum/3-bug-report/910630-send-notification-email-checkbox-forces-email-sending-even-when-unchecked#372396 "Thank you very much for the quick confirmation, Nicolas!  We are glad to hear that the report was helpful and that the fix will be included in the next official release. Keep up the great work with HikaShop!  Best regards.") 4 months 1 week ago     by [UPL](/forum/user/83461-upl "View UPL's Profile") | Replies:2  Views:349 | [Last Post](/forum/3-bug-report/910630-send-notification-email-checkbox-forces-email-sending-even-when-unchecked#372396 "Thank you very much for the quick confirmation, Nicolas!  We are glad to hear that the report was helpful and that the fix will be included in the next official release. Keep up the great work with HikaShop!  Best regards.") by [UPL](/forum/user/83461-upl "View UPL's Profile")      4 months 1 week ago |
| [](/forum/3-bug-report/910630-send-notification-email-checkbox-forces-email-sending-even-when-unchecked#372391) | [Send Notification Email" checkbox forces email sending even when unchecked](/forum/3-bug-report/910630-send-notification-email-checkbox-forces-email-sending-even-when-unchecked#372391 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 6.1.1 -- PHP version -- : 8.4.19  Hello HikaShop team,  I'm currently using HikaShop Business v6.4.1 (on Joomla 6.1.1) and I have found a bug when using the Order Mass Actions (batch process from the Orders Listing).  When I select one or multiple orders, click the &quot;Actions&quot; button, choose &quot;Change status&quot; and explicitly uncheck the &quot;Send notification email&quot; checkbox, the email is still being sent to the customers.  Upon debugging, we found that the issue is located in the massaction&#95;order plugin (plugins/hikashop/massaction&#95;order/massaction&#95;order.php). In the onProcessOrderMassActionchangeStatus function, the code checks for the existence of the notify variable using isset():  // Around line 535  if(isset($action)){ if(!isset($element-&gt;history) \|\| !is&#95;object($element-&gt;history)) $element-&gt;history = new stdClass(); $element-&gt;history-&gt;history&#95;notified = 1; }  Because the DOM/form can submit an empty value or &quot;0&quot; when the checkbox is unchecked, isset() evaluates to true and blindly forces $element-&gt;history-&gt;history&#95;notified = 1, completely ignoring the unchecked state.  Possible Fix: : Changing the validation from isset to !empty and explicitly forcing 0 when false solves the problem completely:  if(!empty($action)){ if(!isset($element-&gt;history) \|\| !is&#95;object($element-&gt;history)) $element-&gt;history = new stdClass(); $element-&gt;history-&gt;history&#95;notified = 1; } else { if(!isset($element-&gt;history) \|\| !is&#95;object($element-&gt;history)) $element-&gt;history = new stdClass(); $element-&gt;history-&gt;history&#95;notified = 0; }  Could you please verify if my observation is correct? I would appreciate it if you could let me know if this proposed solution is the right approach to fix it.  Thank you for your time!")        Category: [Bug Report](/forum/3-bug-report "Please report any bugs or errors here.")     Topic started 4 months 1 week ago, by [UPL](/forum/user/83461-upl "View UPL's Profile")       [Last Post](/forum/3-bug-report/910630-send-notification-email-checkbox-forces-email-sending-even-when-unchecked#372396 "Thank you very much for the quick confirmation, Nicolas!  We are glad to hear that the report was helpful and that the fix will be included in the next official release. Keep up the great work with HikaShop!  Best regards.") 4 months 1 week ago     by [UPL](/forum/user/83461-upl "View UPL's Profile") | Replies:2  Views:349 | [Last Post](/forum/3-bug-report/910630-send-notification-email-checkbox-forces-email-sending-even-when-unchecked#372396 "Thank you very much for the quick confirmation, Nicolas!  We are glad to hear that the report was helpful and that the fix will be included in the next official release. Keep up the great work with HikaShop!  Best regards.") by [UPL](/forum/user/83461-upl "View UPL's Profile")      4 months 1 week ago |
| [](/forum/27-checkout/909670-how-to-redirect-straight-to-cart-checkout-on-add-to-cart-single-item-cart-an#368286) | [How to redirect straight to Cart/Checkout on “Add to cart” (single-item cart) an](/forum/27-checkout/909670-how-to-redirect-straight-to-cart-checkout-on-add-to-cart-single-item-cart-an#368286 "-- HikaShop version -- : 6.0.0 -- Joomla version -- : 5.3.3 -- PHP version -- : 8.2.28  Hi HikaShop team,  Goal On my site each cart must contain only one product and one unit. When a user clicks “Add to cart” from a product listing or product page, I want to:  Immediately redirect to the Cart/Checkout page (skip the add-to-cart popup/notification), and  If there is already a product in the cart, replace it with the newly selected product (so the cart always keeps just that single item).  Ideally, I’d like to do this without the HikaShop Cart Notification plugin (no popup).  Environment  Joomla: 5.x  HikaShop: 6.0.x (Business)  PHP: 8.x  Template: Helix Ultimate (if relevant)  What I’ve tried  I found discussions about the Cart Notification plugin, but my goal is to redirect directly to the cart/checkout instead of showing a popup.  I can enforce a single product by clearing the cart before adding the new one via an override/custom code (e.g., customizing add&#95;to&#95;cart&#95;ajax.php), but I’d prefer an official setting/hook or a recommended approach that survives updates.  Looked for a config like “After add to cart → go to checkout/cart” but I’m not sure if there is a built-in option in HikaShop 6.0.x to force the redirect site-wide.  Questions  Is there a built-in setting to make “Add to cart” redirect directly to the cart/checkout (no popup/notice), both from product listings and product pages? If yes, where exactly is it in HikaShop 6.0.x?  What’s the recommended way to ensure the cart always contains only one item (qty=1) and to replace any existing item when adding a new one?  Is there a core event/plugin hook (e.g., onBeforeCartSave, onBeforeAddToCart, etc.) we should use to empty the cart before adding the new product?  Or a configuration that enforces single-item carts globally?  If there’s no built-in redirect, is there a supported pattern (override or system plugin) to:  Clear the cart, add the selected product, then redirect to the cart/checkout URL,  And keep this behavior working for both AJAX and non-AJAX add-to-cart?  Desired UX (summary)  User clicks “Add to cart” → existing cart (if any) is cleared → new product (qty=1) is added → user is redirected straight to the cart/checkout.  If you can share the proper settings path, the recommended event hooks, or a short example for HikaShop 6.0.x, that would be perfect. Thanks a lot!  Best, David")        Category: [Checkout](/forum/27-checkout "Everything about the checkout process in Hikashop")     Topic started 1 year 2 months ago, by [UPL](/forum/user/83461-upl "View UPL's Profile")       [Last Post](/forum/27-checkout/909670-how-to-redirect-straight-to-cart-checkout-on-add-to-cart-single-item-cart-an#368287 "Hi,  1. If you disable the HikaShop cart notification plugin, AND you don't have the HikaShop cart module displayed on the page, the system will automatically redirect to the checkout after an add to cart. Alternatively, you can also configure the settings of the HikaShop cart notification plugin to redirect to the checkout on success. This approach is recommended to better handle error messages when a problem happens during the add to cart process (for example, if the product can't be added because of a limit rule).  2. In the Products&gt;Limits menu, you can configure limits on purchases. So, for example, you can configure a limit rule to restrict the cart to a quantity of 1. When you do so, if a user tries to add a product to his cart and he already has a product in his cart, the add to cart will be refused and he will see an error message explaining that he can only have 1 product in his cart.  3. Now, what I said in point 2 is not exactly what you want. To get that, you'll have to develop a small plugin. I would recommend implementing the event onBeforeCartLoad(&amp;$cachedCart, &amp;$options) In it: - Check the URL of the current page. If it's not an add to cart request, skip. - Then, also use a static variable so that you only do your process once ( because after the product is add to the cart in the database, the cart in memory is cleared and reloaded, and you don't want to delete the product from it at that point ). - Then, get the cart id from HikaShop:  If the id returned is empty, skip. - Finally, you can run a MySQL query on the hikashop&#95;cart&#95;product table to delete the entries where the cart&#95;id is equal to what you have in $id. It is important to directly run a MySQL query with Joomla's functions, and not use the save process of class.cart to avoid a potential loop of the code.  That way, the add to cart process will go like that: - the cart controller get the request - the method addProduct of class.cart is called - the current cart starts loading. If no cart, it is created in the database in the hikashop&#95;cart table - onBeforeCartLoad is called - your plugin delete existing products already in the cart - the cart loading process continues the loading of the cart by loading the products of the current cart if any - the product being added, is actually added to the cart in the database  Your plugin should only have a dozen lines of code, so, if you're a developer, it should not be a problem. And in that case, you don't want to use the limits system in HikaShop.") 1 year 2 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:1235 | [Last Post](/forum/27-checkout/909670-how-to-redirect-straight-to-cart-checkout-on-add-to-cart-single-item-cart-an#368287 "Hi,  1. If you disable the HikaShop cart notification plugin, AND you don't have the HikaShop cart module displayed on the page, the system will automatically redirect to the checkout after an add to cart. Alternatively, you can also configure the settings of the HikaShop cart notification plugin to redirect to the checkout on success. This approach is recommended to better handle error messages when a problem happens during the add to cart process (for example, if the product can't be added because of a limit rule).  2. In the Products&gt;Limits menu, you can configure limits on purchases. So, for example, you can configure a limit rule to restrict the cart to a quantity of 1. When you do so, if a user tries to add a product to his cart and he already has a product in his cart, the add to cart will be refused and he will see an error message explaining that he can only have 1 product in his cart.  3. Now, what I said in point 2 is not exactly what you want. To get that, you'll have to develop a small plugin. I would recommend implementing the event onBeforeCartLoad(&amp;$cachedCart, &amp;$options) In it: - Check the URL of the current page. If it's not an add to cart request, skip. - Then, also use a static variable so that you only do your process once ( because after the product is add to the cart in the database, the cart in memory is cleared and reloaded, and you don't want to delete the product from it at that point ). - Then, get the cart id from HikaShop:  If the id returned is empty, skip. - Finally, you can run a MySQL query on the hikashop&#95;cart&#95;product table to delete the entries where the cart&#95;id is equal to what you have in $id. It is important to directly run a MySQL query with Joomla's functions, and not use the save process of class.cart to avoid a potential loop of the code.  That way, the add to cart process will go like that: - the cart controller get the request - the method addProduct of class.cart is called - the current cart starts loading. If no cart, it is created in the database in the hikashop&#95;cart table - onBeforeCartLoad is called - your plugin delete existing products already in the cart - the cart loading process continues the loading of the cart by loading the products of the current cart if any - the product being added, is actually added to the cart in the database  Your plugin should only have a dozen lines of code, so, if you're a developer, it should not be a problem. And in that case, you don't want to use the limits system in HikaShop.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      1 year 2 months ago |
| [](/forum/33-customers/909586-error-on-check-database-duplicate-entry-0-for-key-user-cms-id#367923) | [Error on "Check Database": Duplicate entry '0' for key 'user\_cms\_id'](/forum/33-customers/909586-error-on-check-database-duplicate-entry-0-for-key-user-cms-id#367923 "-- HikaShop version -- : 6.0.0 -- Joomla version -- : 5.3.2 -- PHP version -- : 8.2.28 -- Error-message(debug-mod must be tuned on) -- : Error Duplicate entry '0' for key 'user&#95;cms&#95;id  Hello,  When I run &quot;Check Database&quot; in the HikaShop dashboard, I get this error:  Error: Duplicate entry '0' for key 'user&#95;cms&#95;id'  Could you please help me understand what causes this and how to fix it?  Thank you very much for your support.")        Category: [Customers](/forum/33-customers "How to manage your customers and their access")     Topic started 1 year 3 months ago, by [UPL](/forum/user/83461-upl "View UPL's Profile")       [Last Post](/forum/33-customers/909586-error-on-check-database-duplicate-entry-0-for-key-user-cms-id#367924 "Hi,  This indicates that you or someone else on your end has added a unique key to the user&#95;cms&#95;id column of the hikashop&#95;user table when it should not be there. Go in your PHPMyAdmin, open the hikashop&#95;user table and remove the unique key on the user&#95;cms&#95;id column. Then, you should not have that error anymore.") 1 year 3 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:1205 | [Last Post](/forum/33-customers/909586-error-on-check-database-duplicate-entry-0-for-key-user-cms-id#367924 "Hi,  This indicates that you or someone else on your end has added a unique key to the user&#95;cms&#95;id column of the hikashop&#95;user table when it should not be there. Go in your PHPMyAdmin, open the hikashop&#95;user table and remove the unique key on the user&#95;cms&#95;id column. Then, you should not have that error anymore.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      1 year 3 months ago |
| [](/forum/25-install-update/909570-import-orders-via-csv-and-auto-fill-customer-address-from-user-id#367839) | [Import orders via CSV and auto-fill customer address from user\_id?](/forum/25-install-update/909570-import-orders-via-csv-and-auto-fill-customer-address-from-user-id#367839 "Hello,  When importing orders via CSV, I assign the user&#95;id correctly and the user is properly linked to the order in the backend. However, the customer’s address data is not automatically filled in on the order.  In the backend, when assigning a user manually to an order, a popup appears with a switch called &quot;Enter user address&quot; which allows loading the user's address data into the order.  Is there a way to trigger this same behavior automatically during CSV import? That is, to have the address fields filled in when the user&#95;id is assigned, just like when that switch is enabled manually.  Thank you.")        Category: [Install &amp; Update](/forum/25-install-update "Having an installation or update issue? You will probably find some help here.")     Topic started 1 year 3 months ago, by [UPL](/forum/user/83461-upl "View UPL's Profile")       [Last Post](/forum/25-install-update/909570-import-orders-via-csv-and-auto-fill-customer-address-from-user-id#367847 "Hi,  There is no CSV order import in HikaShop. So I don't know how you're importing your orders via CSV. The hikashop&#95;order table in the database has columns order&#95;billing&#95;address&#95;id and order&#95;shipping&#95;address&#95;id. If the tool you're using to import the orders supports all the columns of HikaShop, then you can fill these columns with the id of the address you want to be used. If you want this id to be filled automatically during the import, then that's something you need to ask to the developer of that tool. Supposing you're using the RO CSVI import tool, then you need to talk to Roland, the developer of RO CSVI:   extensions.joomla.org/extension/ro-csvi/") 1 year 3 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:976 | [Last Post](/forum/25-install-update/909570-import-orders-via-csv-and-auto-fill-customer-address-from-user-id#367847 "Hi,  There is no CSV order import in HikaShop. So I don't know how you're importing your orders via CSV. The hikashop&#95;order table in the database has columns order&#95;billing&#95;address&#95;id and order&#95;shipping&#95;address&#95;id. If the tool you're using to import the orders supports all the columns of HikaShop, then you can fill these columns with the id of the address you want to be used. If you want this id to be filled automatically during the import, then that's something you need to ask to the developer of that tool. Supposing you're using the RO CSVI import tool, then you need to talk to Roland, the developer of RO CSVI:   extensions.joomla.org/extension/ro-csvi/") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      1 year 3 months ago |
| [](/forum/37-import-export-csv-xls/909569-apply-enter-user-address-function-to-already-imported-orders#367838) | [Apply 'Enter user address' function to already imported orders?](/forum/37-import-export-csv-xls/909569-apply-enter-user-address-function-to-already-imported-orders#367838 "-- HikaShop version -- : 6.0.0 -- Joomla version -- : 5.3.2 -- PHP version -- : 8.2.28  Hello,  I have imported several orders via CSV, and each one is correctly assigned a user&#95;id. The user is properly linked in the backend, but the address data is not filled in.  When assigning a user manually to an order in the backend, a popup appears with the switch &quot;Enter user address&quot;, which fills in the user's address fields in the order.  Is there a way to apply this action in bulk or automatically to existing orders? That is, to have the user's address data applied to orders that already exist, as if the switch had been activated manually.  Thanks for your help.")        Category: [Import &amp; Export (CSV, XLS…)](/forum/37-import-export-csv-xls "Questions about import and export will find an answer here")     Topic started 1 year 3 months ago, by [UPL](/forum/user/83461-upl "View UPL's Profile")       [Last Post](/forum/37-import-export-csv-xls/909569-apply-enter-user-address-function-to-already-imported-orders#367846 "Hi,  There is no ready made tool for this. However, it should be fairly easy to configure a mass action (menu System&gt;Mass actions) to do that:   www.hikashop.com/support/documentation/167-massaction-form.html  You'll want to : - use the &quot;order&quot; data - use a filter on &quot;order&#95;billing&#95;address&#95;id&quot; being equal to 0 - use an action &quot;run MySQL query&quot; with the query:  When you run that mass action, it will process all the orders (the first 500 if you leave the &quot;limitation&quot; value to 500. You can potentially increase that value to a few thousands, but more than that and the PHP process will likely crash in the middle. However, you can just process the mass action several times until all the orders are processed) and set the billing address of these orders to be one of the billing addresses of the user. Then, rinse and repeat for &quot;shipping&quot; instead of &quot;billing&quot; if you also want to set the shipping address.") 1 year 3 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:1205 | [Last Post](/forum/37-import-export-csv-xls/909569-apply-enter-user-address-function-to-already-imported-orders#367846 "Hi,  There is no ready made tool for this. However, it should be fairly easy to configure a mass action (menu System&gt;Mass actions) to do that:   www.hikashop.com/support/documentation/167-massaction-form.html  You'll want to : - use the &quot;order&quot; data - use a filter on &quot;order&#95;billing&#95;address&#95;id&quot; being equal to 0 - use an action &quot;run MySQL query&quot; with the query:  When you run that mass action, it will process all the orders (the first 500 if you leave the &quot;limitation&quot; value to 500. You can potentially increase that value to a few thousands, but more than that and the PHP process will likely crash in the middle. However, you can just process the mass action several times until all the orders are processed) and set the billing address of these orders to be one of the billing addresses of the user. Then, rinse and repeat for &quot;shipping&quot; instead of &quot;billing&quot; if you also want to set the shipping address.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      1 year 3 months ago |

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

Time to create page: 0.094 seconds

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