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

#  Profile for den Otter

##

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

**[ Offline](/forum/user/57928-den-otter)**

- **User Type:** User

- **Register Date:** 09 Jan 2019
- **Last login:** 4 months 1 week ago
- **Time Zone:**  UTC +0:00
- **Local Time:** 06:38

- **Posts:** 2
- **Profile views:** 34

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

- Posts

#  den Otter's recent posts  (2 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/896678-hikashop-cart-subtotal-total-adaptation#302669) | [Hikashop cart subtotal/total adaptation](/forum/31-development/896678-hikashop-cart-subtotal-total-adaptation#302669 "-- url of the page with the problem -- :   benwijn-d-o-t-nl.alvast-online.nl  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.1 -- PHP version -- : 7.2.10 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : None  Hi there,  I'm trying to make a hikashop plugin for 11the bottle for free in my shop.  I've succeeded in adapting the price with a plugin, but the subtotal and the total in the cart are not changing on 12th product. I think i need function onBeforeCartSave(&amp;$element,&amp;$do) to do this. Do you have a documentation about the $element? I don't know how to adress the product price in this element.  Or do i have to make a change in the subtotal/total calculation? I so, what file do i have to adapt?  Thx  My plugin for now:  Krgds, Matthieu")        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 7 years 9 months ago, by [den Otter](/forum/user/57928-den-otter "View den Otter's Profile")       [Last Post](/forum/31-development/896678-hikashop-cart-subtotal-total-adaptation#302669 "I just added this code to the plugin. Works great. Thanks!  $tot = 0; foreach ($lst as $item) { $tot += $item-&gt;prices&#91;0&#93;-&gt;price&#95;value&#95;with&#95;tax; } $cart-&gt;full&#95;total-&gt;prices&#91;0&#93;-&gt;price&#95;value&#95;with&#95;tax = $tot;") 7 years 9 months ago     by [den Otter](/forum/user/57928-den-otter "View den Otter's Profile") | Replies:2  Views:2380 | [Last Post](/forum/31-development/896678-hikashop-cart-subtotal-total-adaptation#302669 "I just added this code to the plugin. Works great. Thanks!  $tot = 0; foreach ($lst as $item) { $tot += $item-&gt;prices&#91;0&#93;-&gt;price&#95;value&#95;with&#95;tax; } $cart-&gt;full&#95;total-&gt;prices&#91;0&#93;-&gt;price&#95;value&#95;with&#95;tax = $tot;") by [den Otter](/forum/user/57928-den-otter "View den Otter's Profile")      7 years 9 months ago |
| [](/forum/31-development/896678-hikashop-cart-subtotal-total-adaptation#302645) | [Hikashop cart subtotal/total adaptation](/forum/31-development/896678-hikashop-cart-subtotal-total-adaptation#302645 "-- url of the page with the problem -- :   benwijn-d-o-t-nl.alvast-online.nl  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.1 -- PHP version -- : 7.2.10 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : None  Hi there,  I'm trying to make a hikashop plugin for 11the bottle for free in my shop.  I've succeeded in adapting the price with a plugin, but the subtotal and the total in the cart are not changing on 12th product. I think i need function onBeforeCartSave(&amp;$element,&amp;$do) to do this. Do you have a documentation about the $element? I don't know how to adress the product price in this element.  Or do i have to make a change in the subtotal/total calculation? I so, what file do i have to adapt?  Thx  My plugin for now:  Krgds, Matthieu")        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 7 years 9 months ago, by [den Otter](/forum/user/57928-den-otter "View den Otter's Profile")       [Last Post](/forum/31-development/896678-hikashop-cart-subtotal-total-adaptation#302669 "I just added this code to the plugin. Works great. Thanks!  $tot = 0; foreach ($lst as $item) { $tot += $item-&gt;prices&#91;0&#93;-&gt;price&#95;value&#95;with&#95;tax; } $cart-&gt;full&#95;total-&gt;prices&#91;0&#93;-&gt;price&#95;value&#95;with&#95;tax = $tot;") 7 years 9 months ago     by [den Otter](/forum/user/57928-den-otter "View den Otter's Profile") | Replies:2  Views:2380 | [Last Post](/forum/31-development/896678-hikashop-cart-subtotal-total-adaptation#302669 "I just added this code to the plugin. Works great. Thanks!  $tot = 0; foreach ($lst as $item) { $tot += $item-&gt;prices&#91;0&#93;-&gt;price&#95;value&#95;with&#95;tax; } $cart-&gt;full&#95;total-&gt;prices&#91;0&#93;-&gt;price&#95;value&#95;with&#95;tax = $tot;") by [den Otter](/forum/user/57928-den-otter "View den Otter's Profile")      7 years 9 months ago |

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

Time to create page: 0.055 seconds

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