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

#  Profile for solrac

##

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

**[ Offline](/forum/user/39087-solrac)**

- **User Type:** User

- **Register Date:** 07 Oct 2015
- **Last login:** 6 years 5 months ago
- **Time Zone:**  UTC +0:00
- **Local Time:** 17:35

- **Posts:** 6
- **Profile views:** 28

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

- Posts

#  solrac'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/35-orders-management/882747-add-a-net-price-to-products-and-show-in-orders#232174) | [Add a net price to products and show in orders](/forum/35-orders-management/882747-add-a-net-price-to-products-and-show-in-orders#232174 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.6.14 -- Browser(s) name and version -- : Chrome  Hi, After looking for a while over forum I decided to leave my question over here.  I am working over a website which uses your spectacular Hikashop component ;-) There is a request that I can't figure out by myself.  The client wants to have a net price value (not the retail price) in each product. After this products are sold (state confirmed), in the order should have the total value of each net price product (admin side).  For example: Product A : Price 100 ; Net 90 Product B : Price 120 ; Net 100 After sold, The total order is 220 and total net price is 190  I created a custom Text field &quot;netvalue&quot; for products table and another &quot;netvaluetotal&quot; for the order table. So far so good.  As a developer, I think I need to create a plugin over the Order API.  Using onAfterOrderCreate, onAfterOrderUpdate and perhaps onAfterOrderDelete.  Now from, here I am a little stuck!!! Can anyone give me so guidelines or another way to have this extra feature working.  Kind regards")        Category: [Orders management](/forum/35-orders-management "You can ask here your questions about orders management")     Topic started 10 years 7 months ago, by [solrac](/forum/user/39087-solrac "View solrac's Profile")       [Last Post](/forum/35-orders-management/882747-add-a-net-price-to-products-and-show-in-orders#232174 "I got it working :-D  In saveForm function in my override file I make this:  After $data = JRequest::getVar('data', array(), '', 'array'); I added this:  $doit = true; JPluginHelper::importPlugin('hikashop'); $dispatcher = JDispatcher::getInstance(); $dispatcher-&gt;trigger('onBeforeSaveForm', array(&amp;$order, $data, $task, &amp;$doit));  if(!$doit) { $app = JFactory::getApplication(); $app-&gt;close(); return; }  Then in my plugin added: function onBeforeSaveForm(&amp;$order, $data, $task, &amp;$doit) { if($task != 'products') return true;  $cOrder = clone($order); $cOrder-&gt;products = array(@$data); return $this-&gt;onBeforeOrderUpdate($cOrder, $doit, false);// This last argument is to know if should use the usual order as in the others trigger }  The ajax popup will stay on screen after save because of the close application and will report why it can be changed. Now I need to debug and try several actions to see if all becomes correctly without interfering anything else..  Thanks, Nicolas") 10 years 7 months ago     by [solrac](/forum/user/39087-solrac "View solrac's Profile") | Replies:6  Views:812 | [Last Post](/forum/35-orders-management/882747-add-a-net-price-to-products-and-show-in-orders#232174 "I got it working :-D  In saveForm function in my override file I make this:  After $data = JRequest::getVar('data', array(), '', 'array'); I added this:  $doit = true; JPluginHelper::importPlugin('hikashop'); $dispatcher = JDispatcher::getInstance(); $dispatcher-&gt;trigger('onBeforeSaveForm', array(&amp;$order, $data, $task, &amp;$doit));  if(!$doit) { $app = JFactory::getApplication(); $app-&gt;close(); return; }  Then in my plugin added: function onBeforeSaveForm(&amp;$order, $data, $task, &amp;$doit) { if($task != 'products') return true;  $cOrder = clone($order); $cOrder-&gt;products = array(@$data); return $this-&gt;onBeforeOrderUpdate($cOrder, $doit, false);// This last argument is to know if should use the usual order as in the others trigger }  The ajax popup will stay on screen after save because of the close application and will report why it can be changed. Now I need to debug and try several actions to see if all becomes correctly without interfering anything else..  Thanks, Nicolas") by [solrac](/forum/user/39087-solrac "View solrac's Profile")      10 years 7 months ago |
| [](/forum/35-orders-management/882747-add-a-net-price-to-products-and-show-in-orders#232166) | [Add a net price to products and show in orders](/forum/35-orders-management/882747-add-a-net-price-to-products-and-show-in-orders#232166 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.6.14 -- Browser(s) name and version -- : Chrome  Hi, After looking for a while over forum I decided to leave my question over here.  I am working over a website which uses your spectacular Hikashop component ;-) There is a request that I can't figure out by myself.  The client wants to have a net price value (not the retail price) in each product. After this products are sold (state confirmed), in the order should have the total value of each net price product (admin side).  For example: Product A : Price 100 ; Net 90 Product B : Price 120 ; Net 100 After sold, The total order is 220 and total net price is 190  I created a custom Text field &quot;netvalue&quot; for products table and another &quot;netvaluetotal&quot; for the order table. So far so good.  As a developer, I think I need to create a plugin over the Order API.  Using onAfterOrderCreate, onAfterOrderUpdate and perhaps onAfterOrderDelete.  Now from, here I am a little stuck!!! Can anyone give me so guidelines or another way to have this extra feature working.  Kind regards")        Category: [Orders management](/forum/35-orders-management "You can ask here your questions about orders management")     Topic started 10 years 7 months ago, by [solrac](/forum/user/39087-solrac "View solrac's Profile")       [Last Post](/forum/35-orders-management/882747-add-a-net-price-to-products-and-show-in-orders#232174 "I got it working :-D  In saveForm function in my override file I make this:  After $data = JRequest::getVar('data', array(), '', 'array'); I added this:  $doit = true; JPluginHelper::importPlugin('hikashop'); $dispatcher = JDispatcher::getInstance(); $dispatcher-&gt;trigger('onBeforeSaveForm', array(&amp;$order, $data, $task, &amp;$doit));  if(!$doit) { $app = JFactory::getApplication(); $app-&gt;close(); return; }  Then in my plugin added: function onBeforeSaveForm(&amp;$order, $data, $task, &amp;$doit) { if($task != 'products') return true;  $cOrder = clone($order); $cOrder-&gt;products = array(@$data); return $this-&gt;onBeforeOrderUpdate($cOrder, $doit, false);// This last argument is to know if should use the usual order as in the others trigger }  The ajax popup will stay on screen after save because of the close application and will report why it can be changed. Now I need to debug and try several actions to see if all becomes correctly without interfering anything else..  Thanks, Nicolas") 10 years 7 months ago     by [solrac](/forum/user/39087-solrac "View solrac's Profile") | Replies:6  Views:812 | [Last Post](/forum/35-orders-management/882747-add-a-net-price-to-products-and-show-in-orders#232174 "I got it working :-D  In saveForm function in my override file I make this:  After $data = JRequest::getVar('data', array(), '', 'array'); I added this:  $doit = true; JPluginHelper::importPlugin('hikashop'); $dispatcher = JDispatcher::getInstance(); $dispatcher-&gt;trigger('onBeforeSaveForm', array(&amp;$order, $data, $task, &amp;$doit));  if(!$doit) { $app = JFactory::getApplication(); $app-&gt;close(); return; }  Then in my plugin added: function onBeforeSaveForm(&amp;$order, $data, $task, &amp;$doit) { if($task != 'products') return true;  $cOrder = clone($order); $cOrder-&gt;products = array(@$data); return $this-&gt;onBeforeOrderUpdate($cOrder, $doit, false);// This last argument is to know if should use the usual order as in the others trigger }  The ajax popup will stay on screen after save because of the close application and will report why it can be changed. Now I need to debug and try several actions to see if all becomes correctly without interfering anything else..  Thanks, Nicolas") by [solrac](/forum/user/39087-solrac "View solrac's Profile")      10 years 7 months ago |
| [](/forum/35-orders-management/882747-add-a-net-price-to-products-and-show-in-orders#232038) | [Add a net price to products and show in orders](/forum/35-orders-management/882747-add-a-net-price-to-products-and-show-in-orders#232038 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.6.14 -- Browser(s) name and version -- : Chrome  Hi, After looking for a while over forum I decided to leave my question over here.  I am working over a website which uses your spectacular Hikashop component ;-) There is a request that I can't figure out by myself.  The client wants to have a net price value (not the retail price) in each product. After this products are sold (state confirmed), in the order should have the total value of each net price product (admin side).  For example: Product A : Price 100 ; Net 90 Product B : Price 120 ; Net 100 After sold, The total order is 220 and total net price is 190  I created a custom Text field &quot;netvalue&quot; for products table and another &quot;netvaluetotal&quot; for the order table. So far so good.  As a developer, I think I need to create a plugin over the Order API.  Using onAfterOrderCreate, onAfterOrderUpdate and perhaps onAfterOrderDelete.  Now from, here I am a little stuck!!! Can anyone give me so guidelines or another way to have this extra feature working.  Kind regards")        Category: [Orders management](/forum/35-orders-management "You can ask here your questions about orders management")     Topic started 10 years 7 months ago, by [solrac](/forum/user/39087-solrac "View solrac's Profile")       [Last Post](/forum/35-orders-management/882747-add-a-net-price-to-products-and-show-in-orders#232174 "I got it working :-D  In saveForm function in my override file I make this:  After $data = JRequest::getVar('data', array(), '', 'array'); I added this:  $doit = true; JPluginHelper::importPlugin('hikashop'); $dispatcher = JDispatcher::getInstance(); $dispatcher-&gt;trigger('onBeforeSaveForm', array(&amp;$order, $data, $task, &amp;$doit));  if(!$doit) { $app = JFactory::getApplication(); $app-&gt;close(); return; }  Then in my plugin added: function onBeforeSaveForm(&amp;$order, $data, $task, &amp;$doit) { if($task != 'products') return true;  $cOrder = clone($order); $cOrder-&gt;products = array(@$data); return $this-&gt;onBeforeOrderUpdate($cOrder, $doit, false);// This last argument is to know if should use the usual order as in the others trigger }  The ajax popup will stay on screen after save because of the close application and will report why it can be changed. Now I need to debug and try several actions to see if all becomes correctly without interfering anything else..  Thanks, Nicolas") 10 years 7 months ago     by [solrac](/forum/user/39087-solrac "View solrac's Profile") | Replies:6  Views:812 | [Last Post](/forum/35-orders-management/882747-add-a-net-price-to-products-and-show-in-orders#232174 "I got it working :-D  In saveForm function in my override file I make this:  After $data = JRequest::getVar('data', array(), '', 'array'); I added this:  $doit = true; JPluginHelper::importPlugin('hikashop'); $dispatcher = JDispatcher::getInstance(); $dispatcher-&gt;trigger('onBeforeSaveForm', array(&amp;$order, $data, $task, &amp;$doit));  if(!$doit) { $app = JFactory::getApplication(); $app-&gt;close(); return; }  Then in my plugin added: function onBeforeSaveForm(&amp;$order, $data, $task, &amp;$doit) { if($task != 'products') return true;  $cOrder = clone($order); $cOrder-&gt;products = array(@$data); return $this-&gt;onBeforeOrderUpdate($cOrder, $doit, false);// This last argument is to know if should use the usual order as in the others trigger }  The ajax popup will stay on screen after save because of the close application and will report why it can be changed. Now I need to debug and try several actions to see if all becomes correctly without interfering anything else..  Thanks, Nicolas") by [solrac](/forum/user/39087-solrac "View solrac's Profile")      10 years 7 months ago |
| [](/forum/35-orders-management/882747-add-a-net-price-to-products-and-show-in-orders#232025) | [Add a net price to products and show in orders](/forum/35-orders-management/882747-add-a-net-price-to-products-and-show-in-orders#232025 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.6.14 -- Browser(s) name and version -- : Chrome  Hi, After looking for a while over forum I decided to leave my question over here.  I am working over a website which uses your spectacular Hikashop component ;-) There is a request that I can't figure out by myself.  The client wants to have a net price value (not the retail price) in each product. After this products are sold (state confirmed), in the order should have the total value of each net price product (admin side).  For example: Product A : Price 100 ; Net 90 Product B : Price 120 ; Net 100 After sold, The total order is 220 and total net price is 190  I created a custom Text field &quot;netvalue&quot; for products table and another &quot;netvaluetotal&quot; for the order table. So far so good.  As a developer, I think I need to create a plugin over the Order API.  Using onAfterOrderCreate, onAfterOrderUpdate and perhaps onAfterOrderDelete.  Now from, here I am a little stuck!!! Can anyone give me so guidelines or another way to have this extra feature working.  Kind regards")        Category: [Orders management](/forum/35-orders-management "You can ask here your questions about orders management")     Topic started 10 years 7 months ago, by [solrac](/forum/user/39087-solrac "View solrac's Profile")       [Last Post](/forum/35-orders-management/882747-add-a-net-price-to-products-and-show-in-orders#232174 "I got it working :-D  In saveForm function in my override file I make this:  After $data = JRequest::getVar('data', array(), '', 'array'); I added this:  $doit = true; JPluginHelper::importPlugin('hikashop'); $dispatcher = JDispatcher::getInstance(); $dispatcher-&gt;trigger('onBeforeSaveForm', array(&amp;$order, $data, $task, &amp;$doit));  if(!$doit) { $app = JFactory::getApplication(); $app-&gt;close(); return; }  Then in my plugin added: function onBeforeSaveForm(&amp;$order, $data, $task, &amp;$doit) { if($task != 'products') return true;  $cOrder = clone($order); $cOrder-&gt;products = array(@$data); return $this-&gt;onBeforeOrderUpdate($cOrder, $doit, false);// This last argument is to know if should use the usual order as in the others trigger }  The ajax popup will stay on screen after save because of the close application and will report why it can be changed. Now I need to debug and try several actions to see if all becomes correctly without interfering anything else..  Thanks, Nicolas") 10 years 7 months ago     by [solrac](/forum/user/39087-solrac "View solrac's Profile") | Replies:6  Views:812 | [Last Post](/forum/35-orders-management/882747-add-a-net-price-to-products-and-show-in-orders#232174 "I got it working :-D  In saveForm function in my override file I make this:  After $data = JRequest::getVar('data', array(), '', 'array'); I added this:  $doit = true; JPluginHelper::importPlugin('hikashop'); $dispatcher = JDispatcher::getInstance(); $dispatcher-&gt;trigger('onBeforeSaveForm', array(&amp;$order, $data, $task, &amp;$doit));  if(!$doit) { $app = JFactory::getApplication(); $app-&gt;close(); return; }  Then in my plugin added: function onBeforeSaveForm(&amp;$order, $data, $task, &amp;$doit) { if($task != 'products') return true;  $cOrder = clone($order); $cOrder-&gt;products = array(@$data); return $this-&gt;onBeforeOrderUpdate($cOrder, $doit, false);// This last argument is to know if should use the usual order as in the others trigger }  The ajax popup will stay on screen after save because of the close application and will report why it can be changed. Now I need to debug and try several actions to see if all becomes correctly without interfering anything else..  Thanks, Nicolas") by [solrac](/forum/user/39087-solrac "View solrac's Profile")      10 years 7 months ago |
| [](/forum/35-orders-management/882747-add-a-net-price-to-products-and-show-in-orders#231911) | [Add a net price to products and show in orders](/forum/35-orders-management/882747-add-a-net-price-to-products-and-show-in-orders#231911 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.6.14 -- Browser(s) name and version -- : Chrome  Hi, After looking for a while over forum I decided to leave my question over here.  I am working over a website which uses your spectacular Hikashop component ;-) There is a request that I can't figure out by myself.  The client wants to have a net price value (not the retail price) in each product. After this products are sold (state confirmed), in the order should have the total value of each net price product (admin side).  For example: Product A : Price 100 ; Net 90 Product B : Price 120 ; Net 100 After sold, The total order is 220 and total net price is 190  I created a custom Text field &quot;netvalue&quot; for products table and another &quot;netvaluetotal&quot; for the order table. So far so good.  As a developer, I think I need to create a plugin over the Order API.  Using onAfterOrderCreate, onAfterOrderUpdate and perhaps onAfterOrderDelete.  Now from, here I am a little stuck!!! Can anyone give me so guidelines or another way to have this extra feature working.  Kind regards")        Category: [Orders management](/forum/35-orders-management "You can ask here your questions about orders management")     Topic started 10 years 7 months ago, by [solrac](/forum/user/39087-solrac "View solrac's Profile")       [Last Post](/forum/35-orders-management/882747-add-a-net-price-to-products-and-show-in-orders#232174 "I got it working :-D  In saveForm function in my override file I make this:  After $data = JRequest::getVar('data', array(), '', 'array'); I added this:  $doit = true; JPluginHelper::importPlugin('hikashop'); $dispatcher = JDispatcher::getInstance(); $dispatcher-&gt;trigger('onBeforeSaveForm', array(&amp;$order, $data, $task, &amp;$doit));  if(!$doit) { $app = JFactory::getApplication(); $app-&gt;close(); return; }  Then in my plugin added: function onBeforeSaveForm(&amp;$order, $data, $task, &amp;$doit) { if($task != 'products') return true;  $cOrder = clone($order); $cOrder-&gt;products = array(@$data); return $this-&gt;onBeforeOrderUpdate($cOrder, $doit, false);// This last argument is to know if should use the usual order as in the others trigger }  The ajax popup will stay on screen after save because of the close application and will report why it can be changed. Now I need to debug and try several actions to see if all becomes correctly without interfering anything else..  Thanks, Nicolas") 10 years 7 months ago     by [solrac](/forum/user/39087-solrac "View solrac's Profile") | Replies:6  Views:812 | [Last Post](/forum/35-orders-management/882747-add-a-net-price-to-products-and-show-in-orders#232174 "I got it working :-D  In saveForm function in my override file I make this:  After $data = JRequest::getVar('data', array(), '', 'array'); I added this:  $doit = true; JPluginHelper::importPlugin('hikashop'); $dispatcher = JDispatcher::getInstance(); $dispatcher-&gt;trigger('onBeforeSaveForm', array(&amp;$order, $data, $task, &amp;$doit));  if(!$doit) { $app = JFactory::getApplication(); $app-&gt;close(); return; }  Then in my plugin added: function onBeforeSaveForm(&amp;$order, $data, $task, &amp;$doit) { if($task != 'products') return true;  $cOrder = clone($order); $cOrder-&gt;products = array(@$data); return $this-&gt;onBeforeOrderUpdate($cOrder, $doit, false);// This last argument is to know if should use the usual order as in the others trigger }  The ajax popup will stay on screen after save because of the close application and will report why it can be changed. Now I need to debug and try several actions to see if all becomes correctly without interfering anything else..  Thanks, Nicolas") by [solrac](/forum/user/39087-solrac "View solrac's Profile")      10 years 7 months ago |
| [](/forum/25-install-update/879726-link-function-for-product-item#216623) | [Link function for product item](/forum/25-install-update/879726-link-function-for-product-item#216623 "-- HikaShop version -- : 2.6.0  Hello, I am a developer and I am creating a module to use a gallery images of products. The images are ok for the module but I can't find the function to associate the correct link I see several $this-&gt;getlink( on files but I can't find where is this function and I can't call it as it is inside the module. Can anyone help me out how to create the correct link for products? What files I need to include, the query I need and the function to use. Thanks and regards")        Category: [Install &amp; Update](/forum/25-install-update "Having an installation or update issue? You will probably find some help here.")     Topic started 11 years 2 weeks ago, by [solrac](/forum/user/39087-solrac "View solrac's Profile")       [Last Post](/forum/25-install-update/879726-link-function-for-product-item#216637 "Hi,  So, suppose that your product data is an object in the variable $product. You can use such code:") 11 years 2 weeks ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:346 | [Last Post](/forum/25-install-update/879726-link-function-for-product-item#216637 "Hi,  So, suppose that your product data is an object in the variable $product. You can use such code:") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      11 years 2 weeks ago |

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

Time to create page: 0.217 seconds

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

[](#top)
