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

#  Profile for tommytom

##

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

**[ Offline](/forum/user/11095-tommytom)**

- **User Type:** User

- **Register Date:** 06 Nov 2012
- **Last login:** 12 years 8 months ago
- **Time Zone:**  UTC +0:00
- **Local Time:** 17:35

- **Posts:** 8
- **Profile views:** 68

- **Gender:** Unknown
- **Birthdate:** Unknown

- Posts

#  tommytom's recent posts  (8 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/31-development/866225-additionals-not-shown-in-order-view#146564) | [Additionals not shown in order view](/forum/31-development/866225-additionals-not-shown-in-order-view#146564 "-- url of the page with the problem -- : /index.php/my-acount/order/show -- HikaShop version -- : 2.2.2 -- Joomla version -- : 2.5.17 -- PHP version -- : 5.5.3 -- Browser(s) name and version -- : Chrome 33 -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$name in /var/www/explorationgeochemsite/components/com&#95;hikashop/views/order/tmpl/show.php on line 389  Notice: Undefined variable: config in /var/www/explorationgeochemsite/components/com&#95;hikashop/views/order/tmpl/show.php on line 404  Hi, I am using additional cost via a plugin using the onAfterCartProductsLoad callback. Here is a sample of the code:  The handling fees are taken into account and processed in the total order amount. BUT they are not shown in the order. If I look at the file components/com&#95;hikashop/views/order/tmpl/show.php I see 2 issues:  line 389 is currently  But, shouldn't $additional-&gt;name be $additional-&gt;order&#95;product&#95;name instead ?  Also, line 404 is  but $config has not been defined here thus causing a problem.  Can you please let me know what to do ?  Thanks for your help -Tom")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 12 years 8 months ago, by [tommytom](/forum/user/11095-tommytom "View tommytom's Profile")       [Last Post](/forum/31-development/866225-additionals-not-shown-in-order-view#146810 "Hi there,  You could indeed do so. Another option would be to load the main take of Hikashop in your plugin and directly calculate the additional price including the taxes. The result displayed might not be perfect (depending on where you display these costs) but it's a possibility.") 12 years 8 months ago     by [Eliot](/forum/user/1824-eliot "View Eliot's Profile") | Replies:7  Views:763 | [Last Post](/forum/31-development/866225-additionals-not-shown-in-order-view#146810 "Hi there,  You could indeed do so. Another option would be to load the main take of Hikashop in your plugin and directly calculate the additional price including the taxes. The result displayed might not be perfect (depending on where you display these costs) but it's a possibility.") by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")      12 years 8 months ago |
| [](/forum/31-development/866225-additionals-not-shown-in-order-view#146355) | [Additionals not shown in order view](/forum/31-development/866225-additionals-not-shown-in-order-view#146355 "-- url of the page with the problem -- : /index.php/my-acount/order/show -- HikaShop version -- : 2.2.2 -- Joomla version -- : 2.5.17 -- PHP version -- : 5.5.3 -- Browser(s) name and version -- : Chrome 33 -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$name in /var/www/explorationgeochemsite/components/com&#95;hikashop/views/order/tmpl/show.php on line 389  Notice: Undefined variable: config in /var/www/explorationgeochemsite/components/com&#95;hikashop/views/order/tmpl/show.php on line 404  Hi, I am using additional cost via a plugin using the onAfterCartProductsLoad callback. Here is a sample of the code:  The handling fees are taken into account and processed in the total order amount. BUT they are not shown in the order. If I look at the file components/com&#95;hikashop/views/order/tmpl/show.php I see 2 issues:  line 389 is currently  But, shouldn't $additional-&gt;name be $additional-&gt;order&#95;product&#95;name instead ?  Also, line 404 is  but $config has not been defined here thus causing a problem.  Can you please let me know what to do ?  Thanks for your help -Tom")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 12 years 8 months ago, by [tommytom](/forum/user/11095-tommytom "View tommytom's Profile")       [Last Post](/forum/31-development/866225-additionals-not-shown-in-order-view#146810 "Hi there,  You could indeed do so. Another option would be to load the main take of Hikashop in your plugin and directly calculate the additional price including the taxes. The result displayed might not be perfect (depending on where you display these costs) but it's a possibility.") 12 years 8 months ago     by [Eliot](/forum/user/1824-eliot "View Eliot's Profile") | Replies:7  Views:763 | [Last Post](/forum/31-development/866225-additionals-not-shown-in-order-view#146810 "Hi there,  You could indeed do so. Another option would be to load the main take of Hikashop in your plugin and directly calculate the additional price including the taxes. The result displayed might not be perfect (depending on where you display these costs) but it's a possibility.") by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")      12 years 8 months ago |
| [](/forum/31-development/866225-additionals-not-shown-in-order-view#146221) | [Additionals not shown in order view](/forum/31-development/866225-additionals-not-shown-in-order-view#146221 "-- url of the page with the problem -- : /index.php/my-acount/order/show -- HikaShop version -- : 2.2.2 -- Joomla version -- : 2.5.17 -- PHP version -- : 5.5.3 -- Browser(s) name and version -- : Chrome 33 -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$name in /var/www/explorationgeochemsite/components/com&#95;hikashop/views/order/tmpl/show.php on line 389  Notice: Undefined variable: config in /var/www/explorationgeochemsite/components/com&#95;hikashop/views/order/tmpl/show.php on line 404  Hi, I am using additional cost via a plugin using the onAfterCartProductsLoad callback. Here is a sample of the code:  The handling fees are taken into account and processed in the total order amount. BUT they are not shown in the order. If I look at the file components/com&#95;hikashop/views/order/tmpl/show.php I see 2 issues:  line 389 is currently  But, shouldn't $additional-&gt;name be $additional-&gt;order&#95;product&#95;name instead ?  Also, line 404 is  but $config has not been defined here thus causing a problem.  Can you please let me know what to do ?  Thanks for your help -Tom")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 12 years 8 months ago, by [tommytom](/forum/user/11095-tommytom "View tommytom's Profile")       [Last Post](/forum/31-development/866225-additionals-not-shown-in-order-view#146810 "Hi there,  You could indeed do so. Another option would be to load the main take of Hikashop in your plugin and directly calculate the additional price including the taxes. The result displayed might not be perfect (depending on where you display these costs) but it's a possibility.") 12 years 8 months ago     by [Eliot](/forum/user/1824-eliot "View Eliot's Profile") | Replies:7  Views:763 | [Last Post](/forum/31-development/866225-additionals-not-shown-in-order-view#146810 "Hi there,  You could indeed do so. Another option would be to load the main take of Hikashop in your plugin and directly calculate the additional price including the taxes. The result displayed might not be perfect (depending on where you display these costs) but it's a possibility.") by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")      12 years 8 months ago |
| [](/forum/31-development/866225-additionals-not-shown-in-order-view#145936) | [Additionals not shown in order view](/forum/31-development/866225-additionals-not-shown-in-order-view#145936 "-- url of the page with the problem -- : /index.php/my-acount/order/show -- HikaShop version -- : 2.2.2 -- Joomla version -- : 2.5.17 -- PHP version -- : 5.5.3 -- Browser(s) name and version -- : Chrome 33 -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$name in /var/www/explorationgeochemsite/components/com&#95;hikashop/views/order/tmpl/show.php on line 389  Notice: Undefined variable: config in /var/www/explorationgeochemsite/components/com&#95;hikashop/views/order/tmpl/show.php on line 404  Hi, I am using additional cost via a plugin using the onAfterCartProductsLoad callback. Here is a sample of the code:  The handling fees are taken into account and processed in the total order amount. BUT they are not shown in the order. If I look at the file components/com&#95;hikashop/views/order/tmpl/show.php I see 2 issues:  line 389 is currently  But, shouldn't $additional-&gt;name be $additional-&gt;order&#95;product&#95;name instead ?  Also, line 404 is  but $config has not been defined here thus causing a problem.  Can you please let me know what to do ?  Thanks for your help -Tom")        Category: [Development](/forum/31-development "If you are developping a plugin for Hikashop or customizing our component, this is the board to be.")     Topic started 12 years 8 months ago, by [tommytom](/forum/user/11095-tommytom "View tommytom's Profile")       [Last Post](/forum/31-development/866225-additionals-not-shown-in-order-view#146810 "Hi there,  You could indeed do so. Another option would be to load the main take of Hikashop in your plugin and directly calculate the additional price including the taxes. The result displayed might not be perfect (depending on where you display these costs) but it's a possibility.") 12 years 8 months ago     by [Eliot](/forum/user/1824-eliot "View Eliot's Profile") | Replies:7  Views:763 | [Last Post](/forum/31-development/866225-additionals-not-shown-in-order-view#146810 "Hi there,  You could indeed do so. Another option would be to load the main take of Hikashop in your plugin and directly calculate the additional price including the taxes. The result displayed might not be perfect (depending on where you display these costs) but it's a possibility.") by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")      12 years 8 months ago |
| [](/forum/3-bug-report/74839-element-is-modified-after-onbeforeorderdelete#74874) | [$element is modified after onBeforeOrderDelete](/forum/3-bug-report/74839-element-is-modified-after-onbeforeorderdelete#74874 "Hello,  I am using the latest Hikashop (2.0) and I just stumbled on a problem with the onBeforeOrderDelete and onAfterOrderDelete plugin callbacks.  The $element array containing the keys of the deleted order is modified by the helper class between the before and the after callback. This array is passed by reference in the subfunctions and is modified by it causing changes of content in the before and after callback. Check the following lines:  com&#95;hikashop/classes/order.php (hikashopOrderClass-&gt;delete) line 682: $result=parent::delete($elements); com&#95;hikashop/helper/helper.php (hikashopClass-&gt;delete) line 1281: $elements&#91;$key&#93; = $this-&gt;database-&gt;Quote($val);  In this last line, the $element which is passed by reference is modified by the database-&gt;quote() function, which is adding single quotes around the order key in the array. So after returning from the helper-&gt;delete(function) the $element array is passed to the onAfterOrderDelete callback, but this time, the order keys have quotes around it.  -Tom.")        Category: [Bug Report](/forum/3-bug-report "Please report any bugs or errors here.")     Topic started 13 years 11 months ago, by [tommytom](/forum/user/11095-tommytom "View tommytom's Profile")       [Last Post](/forum/3-bug-report/74839-element-is-modified-after-onbeforeorderdelete#74875 "It has already been fixed on our end. Please redownload HikaShop on our website and update it on yours and it will work.") 13 years 11 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:1986 | [Last Post](/forum/3-bug-report/74839-element-is-modified-after-onbeforeorderdelete#74875 "It has already been fixed on our end. Please redownload HikaShop on our website and update it on yours and it will work.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      13 years 11 months ago |
| [](/forum/3-bug-report/74839-element-is-modified-after-onbeforeorderdelete#74839) | [$element is modified after onBeforeOrderDelete](/forum/3-bug-report/74839-element-is-modified-after-onbeforeorderdelete#74839 "Hello,  I am using the latest Hikashop (2.0) and I just stumbled on a problem with the onBeforeOrderDelete and onAfterOrderDelete plugin callbacks.  The $element array containing the keys of the deleted order is modified by the helper class between the before and the after callback. This array is passed by reference in the subfunctions and is modified by it causing changes of content in the before and after callback. Check the following lines:  com&#95;hikashop/classes/order.php (hikashopOrderClass-&gt;delete) line 682: $result=parent::delete($elements); com&#95;hikashop/helper/helper.php (hikashopClass-&gt;delete) line 1281: $elements&#91;$key&#93; = $this-&gt;database-&gt;Quote($val);  In this last line, the $element which is passed by reference is modified by the database-&gt;quote() function, which is adding single quotes around the order key in the array. So after returning from the helper-&gt;delete(function) the $element array is passed to the onAfterOrderDelete callback, but this time, the order keys have quotes around it.  -Tom.")        Category: [Bug Report](/forum/3-bug-report "Please report any bugs or errors here.")     Topic started 13 years 11 months ago, by [tommytom](/forum/user/11095-tommytom "View tommytom's Profile")       [Last Post](/forum/3-bug-report/74839-element-is-modified-after-onbeforeorderdelete#74875 "It has already been fixed on our end. Please redownload HikaShop on our website and update it on yours and it will work.") 13 years 11 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:1986 | [Last Post](/forum/3-bug-report/74839-element-is-modified-after-onbeforeorderdelete#74875 "It has already been fixed on our end. Please redownload HikaShop on our website and update it on yours and it will work.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      13 years 11 months ago |
| [](/forum/3-bug-report/74551-invalid-argument-for-foreach-cart-php-line-1491#74570) | [Invalid argument for foreach() cart.php line 1491](/forum/3-bug-report/74551-invalid-argument-for-foreach-cart-php-line-1491#74570 "Hello, I have this message when displaying the payment method page  Warning: Invalid argument supplied for foreach() in /home/&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;/administrator/components/com&#95;hikashop/classes/cart.php on line 1491  Apparently, the variable $subs has not been initialized or is not an array.  Can you please check it ?  Thanks for your help. -Tom")        Category: [Bug Report](/forum/3-bug-report "Please report any bugs or errors here.")     Topic started 13 years 11 months ago, by [tommytom](/forum/user/11095-tommytom "View tommytom's Profile")       [Last Post](/forum/3-bug-report/74551-invalid-argument-for-foreach-cart-php-line-1491#74570 "Thanks Xavier for answering fast, That worked well. I no longer have the message now. -Tom") 13 years 11 months ago     by [tommytom](/forum/user/11095-tommytom "View tommytom's Profile") | Replies:2  Views:1136 | [Last Post](/forum/3-bug-report/74551-invalid-argument-for-foreach-cart-php-line-1491#74570 "Thanks Xavier for answering fast, That worked well. I no longer have the message now. -Tom") by [tommytom](/forum/user/11095-tommytom "View tommytom's Profile")      13 years 11 months ago |
| [](/forum/3-bug-report/74551-invalid-argument-for-foreach-cart-php-line-1491#74551) | [Invalid argument for foreach() cart.php line 1491](/forum/3-bug-report/74551-invalid-argument-for-foreach-cart-php-line-1491#74551 "Hello, I have this message when displaying the payment method page  Warning: Invalid argument supplied for foreach() in /home/&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;/administrator/components/com&#95;hikashop/classes/cart.php on line 1491  Apparently, the variable $subs has not been initialized or is not an array.  Can you please check it ?  Thanks for your help. -Tom")        Category: [Bug Report](/forum/3-bug-report "Please report any bugs or errors here.")     Topic started 13 years 11 months ago, by [tommytom](/forum/user/11095-tommytom "View tommytom's Profile")       [Last Post](/forum/3-bug-report/74551-invalid-argument-for-foreach-cart-php-line-1491#74570 "Thanks Xavier for answering fast, That worked well. I no longer have the message now. -Tom") 13 years 11 months ago     by [tommytom](/forum/user/11095-tommytom "View tommytom's Profile") | Replies:2  Views:1136 | [Last Post](/forum/3-bug-report/74551-invalid-argument-for-foreach-cart-php-line-1491#74570 "Thanks Xavier for answering fast, That worked well. I no longer have the message now. -Tom") by [tommytom](/forum/user/11095-tommytom "View tommytom's Profile")      13 years 11 months ago |

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

Time to create page: 0.073 seconds

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