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

#  Profile for diesel1984

##

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

**[ Offline](/forum/user/30999-diesel1984)**

- **User Type:** User

- **Register Date:** 04 Feb 2014
- **Last login:** 8 years 10 months ago
- **Time Zone:**  UTC +0:00
- **Local Time:** 12:43

- **Posts:** 32
- **Profile views:** 126

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

- Posts

#  diesel1984's recent posts  (32 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/26-product-category-display/893136-obtain-discount-price-information-for-a-product-in-an-external-php-file#284191) | [obtain discount/price information for a product in an external PHP file](/forum/26-product-category-display/893136-obtain-discount-price-information-for-a-product-in-an-external-php-file#284191 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5.18 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Firefox -- Error-message(debug-mod must be tuned on) -- : I only obtain the product information - not the price/discount information  Hi,  How can i programmatically obtain all of the data for a product (including the discount and prices for that product) in an external php file. When i use the following code, i can obtain the product information but unfortunately i cannot obtain the price/discount information (which i really need). All i can obtain is general information about the product...  Thanks in advance")         Category: [Product &amp; Category Display](/forum/26-product-category-display "Questions about product and category display. You can't find how to make Hikashop looks incredible? The answer is here!")     Topic started 8 years 10 months ago, by [diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")       [Last Post](/forum/26-product-category-display/893136-obtain-discount-price-information-for-a-product-in-an-external-php-file#326130 "Hi,  That would indicate that the product&#95;tax&#95;id of the main product is not taken into account for the calculations of the taxes for the variant I suppose. However, I'm not able to reproduce the problem on my end. I just tried that code:  where 64 is the id of a variant of the &quot;star stilleto&quot; product of the sample data you get when you install HikaShop. And I do get the taxes applied on the price of the variant:") 5 years 11 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:5  Views:1580 | [Last Post](/forum/26-product-category-display/893136-obtain-discount-price-information-for-a-product-in-an-external-php-file#326130 "Hi,  That would indicate that the product&#95;tax&#95;id of the main product is not taken into account for the calculations of the taxes for the variant I suppose. However, I'm not able to reproduce the problem on my end. I just tried that code:  where 64 is the id of a variant of the &quot;star stilleto&quot; product of the sample data you get when you install HikaShop. And I do get the taxes applied on the price of the variant:") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      5 years 11 months ago |
| [](/forum/46-discount-coupon/878312-25-off-coupon#209866) | [25% off coupon](/forum/46-discount-coupon/878312-25-off-coupon#209866 "-- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5 -- PHP version -- : 5  Hi,  First of all i must use the coupon system rather than the discount system as i have been provided with coupon codes so please bear that in mind for my question (see below)...  If i create a coupon that applies 25% off then will it just apply to the total cost of the products in the basket or will it also apply 25% off the cost of the shipping too?  Thanks in advance")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 11 years 3 months ago, by [diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")       [Last Post](/forum/46-discount-coupon/878312-25-off-coupon#209868 "Hi,  The plugin use the HikaShop setting in order to know the order statuses for &quot;default order status&quot; and &quot;cancelled order statuses&quot; (it use the first one).   www.hikashop.com/support/support/documen...nfig.html#main&#95;order  The plugin list the 20 first orders which are older than the period time and change their order status.  So you have to be sure that your HikaShop configuration is correct and you have to call the plugin several time if you have more than 20 orders to cancel.  Regards,") 11 years 3 months ago     by [Jerome](/forum/user/80-jerome "View Jerome's Profile") | Replies:5  Views:1228 | [Last Post](/forum/46-discount-coupon/878312-25-off-coupon#209868 "Hi,  The plugin use the HikaShop setting in order to know the order statuses for &quot;default order status&quot; and &quot;cancelled order statuses&quot; (it use the first one).   www.hikashop.com/support/support/documen...nfig.html#main&#95;order  The plugin list the 20 first orders which are older than the period time and change their order status.  So you have to be sure that your HikaShop configuration is correct and you have to call the plugin several time if you have more than 20 orders to cancel.  Regards,") by [Jerome](/forum/user/80-jerome "View Jerome's Profile")      11 years 3 months ago |
| [](/forum/46-discount-coupon/878312-25-off-coupon#209196) | [25% off coupon](/forum/46-discount-coupon/878312-25-off-coupon#209196 "-- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5 -- PHP version -- : 5  Hi,  First of all i must use the coupon system rather than the discount system as i have been provided with coupon codes so please bear that in mind for my question (see below)...  If i create a coupon that applies 25% off then will it just apply to the total cost of the products in the basket or will it also apply 25% off the cost of the shipping too?  Thanks in advance")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 11 years 3 months ago, by [diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")       [Last Post](/forum/46-discount-coupon/878312-25-off-coupon#209868 "Hi,  The plugin use the HikaShop setting in order to know the order statuses for &quot;default order status&quot; and &quot;cancelled order statuses&quot; (it use the first one).   www.hikashop.com/support/support/documen...nfig.html#main&#95;order  The plugin list the 20 first orders which are older than the period time and change their order status.  So you have to be sure that your HikaShop configuration is correct and you have to call the plugin several time if you have more than 20 orders to cancel.  Regards,") 11 years 3 months ago     by [Jerome](/forum/user/80-jerome "View Jerome's Profile") | Replies:5  Views:1228 | [Last Post](/forum/46-discount-coupon/878312-25-off-coupon#209868 "Hi,  The plugin use the HikaShop setting in order to know the order statuses for &quot;default order status&quot; and &quot;cancelled order statuses&quot; (it use the first one).   www.hikashop.com/support/support/documen...nfig.html#main&#95;order  The plugin list the 20 first orders which are older than the period time and change their order status.  So you have to be sure that your HikaShop configuration is correct and you have to call the plugin several time if you have more than 20 orders to cancel.  Regards,") by [Jerome](/forum/user/80-jerome "View Jerome's Profile")      11 years 3 months ago |
| [](/forum/46-discount-coupon/878312-25-off-coupon#209121) | [25% off coupon](/forum/46-discount-coupon/878312-25-off-coupon#209121 "-- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5 -- PHP version -- : 5  Hi,  First of all i must use the coupon system rather than the discount system as i have been provided with coupon codes so please bear that in mind for my question (see below)...  If i create a coupon that applies 25% off then will it just apply to the total cost of the products in the basket or will it also apply 25% off the cost of the shipping too?  Thanks in advance")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 11 years 3 months ago, by [diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")       [Last Post](/forum/46-discount-coupon/878312-25-off-coupon#209868 "Hi,  The plugin use the HikaShop setting in order to know the order statuses for &quot;default order status&quot; and &quot;cancelled order statuses&quot; (it use the first one).   www.hikashop.com/support/support/documen...nfig.html#main&#95;order  The plugin list the 20 first orders which are older than the period time and change their order status.  So you have to be sure that your HikaShop configuration is correct and you have to call the plugin several time if you have more than 20 orders to cancel.  Regards,") 11 years 3 months ago     by [Jerome](/forum/user/80-jerome "View Jerome's Profile") | Replies:5  Views:1228 | [Last Post](/forum/46-discount-coupon/878312-25-off-coupon#209868 "Hi,  The plugin use the HikaShop setting in order to know the order statuses for &quot;default order status&quot; and &quot;cancelled order statuses&quot; (it use the first one).   www.hikashop.com/support/support/documen...nfig.html#main&#95;order  The plugin list the 20 first orders which are older than the period time and change their order status.  So you have to be sure that your HikaShop configuration is correct and you have to call the plugin several time if you have more than 20 orders to cancel.  Regards,") by [Jerome](/forum/user/80-jerome "View Jerome's Profile")      11 years 3 months ago |
| [](/forum/46-discount-coupon/876864-quota-per-user-for-a-coupon#201903) | [quota per user for a coupon](/forum/46-discount-coupon/876864-quota-per-user-for-a-coupon#201903 "-- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5 -- PHP version -- : 5  Hi,  Two questions:-  (1) If i set up a coupon in hikashop and configure it so that it can only be used once by a user, then when during the checkout process does hikashop specify that the user has used that coupon? As far as i can tell, it seems to be at the stage when the order is created and just as you go off to the payment gateway.  (2) Which plugin function (event) could i write and call upon to replicate this event (described in question (1)) as i need to write a custom set of rules for my coupon which ultimately means that i cannot use the quota per user feature provided by hikashop?  Thanks in advance")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 11 years 6 months ago, by [diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")       [Last Post](/forum/46-discount-coupon/876864-quota-per-user-for-a-coupon#201911 "Hi,  Yes it does.") 11 years 5 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:6  Views:1436 | [Last Post](/forum/46-discount-coupon/876864-quota-per-user-for-a-coupon#201911 "Hi,  Yes it does.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      11 years 5 months ago |
| [](/forum/46-discount-coupon/876864-quota-per-user-for-a-coupon#201239) | [quota per user for a coupon](/forum/46-discount-coupon/876864-quota-per-user-for-a-coupon#201239 "-- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5 -- PHP version -- : 5  Hi,  Two questions:-  (1) If i set up a coupon in hikashop and configure it so that it can only be used once by a user, then when during the checkout process does hikashop specify that the user has used that coupon? As far as i can tell, it seems to be at the stage when the order is created and just as you go off to the payment gateway.  (2) Which plugin function (event) could i write and call upon to replicate this event (described in question (1)) as i need to write a custom set of rules for my coupon which ultimately means that i cannot use the quota per user feature provided by hikashop?  Thanks in advance")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 11 years 6 months ago, by [diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")       [Last Post](/forum/46-discount-coupon/876864-quota-per-user-for-a-coupon#201911 "Hi,  Yes it does.") 11 years 5 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:6  Views:1436 | [Last Post](/forum/46-discount-coupon/876864-quota-per-user-for-a-coupon#201911 "Hi,  Yes it does.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      11 years 5 months ago |
| [](/forum/27-checkout/876865-plugin-that-gets-activated-when-a-order-is-created#201167) | [plugin that gets activated when a order is created](/forum/27-checkout/876865-plugin-that-gets-activated-when-a-order-is-created#201167 "-- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5 -- PHP version -- : 5  Hi,  I am trying to write a custom plugin that gets activated whenever an order is created. However, the plugin function is simply not executing during the checkout process. So basically right before i get redirected to the payment gateway, the order is created in the system (i can see it in the backend of hikashop). However, the onAfterOrderCreate() function is not executing at this point - if this is how hikashop is setup, then what plugin event (function) can i call upon that will execute at this point? I am then taken off to the payment gateway - but i stop at this point because i dont want to put a payment through the system. Can anyone see the reason why this is happening? The plugin is installed and its been enabled...  &#92;plugins&#92;hikashoppayment&#92;order&#92;order.php &#92;plugins&#92;hikashoppayment&#92;order&#92;order.xml &#92;plugins&#92;hikashoppayment&#92;order&#92;index.php  code for &#92;plugins&#92;hikashoppayment&#92;order&#92;order.php Code: ?php  class plgHikashopOrder extends hikashopPaymentPlugin {  public function onAfterOrderCreate(&amp;$order,&amp;$send&#95;email) {   print('ok'); exit();   //i did initially try some database statements here but they didnt work either   //so i can only assume that this plugin event is not executing   }  }  Thanks in advance")        Category: [Checkout](/forum/27-checkout "Everything about the checkout process in Hikashop")     Topic started 11 years 6 months ago, by [diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")       [Last Post](/forum/27-checkout/876865-plugin-that-gets-activated-when-a-order-is-created#201168 "Hi,  If you are creating a hikashop payment plugin, the class name should be : plgHikashoppaymentOrder The current name is for a &quot;hikashop&quot; plugin, not for a &quot;hikashoppayment&quot; one.  Regards,") 11 years 6 months ago     by [Jerome](/forum/user/80-jerome "View Jerome's Profile") | Replies:1  Views:498 | [Last Post](/forum/27-checkout/876865-plugin-that-gets-activated-when-a-order-is-created#201168 "Hi,  If you are creating a hikashop payment plugin, the class name should be : plgHikashoppaymentOrder The current name is for a &quot;hikashop&quot; plugin, not for a &quot;hikashoppayment&quot; one.  Regards,") by [Jerome](/forum/user/80-jerome "View Jerome's Profile")      11 years 6 months ago |
| [](/forum/46-discount-coupon/876864-quota-per-user-for-a-coupon#201166) | [quota per user for a coupon](/forum/46-discount-coupon/876864-quota-per-user-for-a-coupon#201166 "-- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5 -- PHP version -- : 5  Hi,  Two questions:-  (1) If i set up a coupon in hikashop and configure it so that it can only be used once by a user, then when during the checkout process does hikashop specify that the user has used that coupon? As far as i can tell, it seems to be at the stage when the order is created and just as you go off to the payment gateway.  (2) Which plugin function (event) could i write and call upon to replicate this event (described in question (1)) as i need to write a custom set of rules for my coupon which ultimately means that i cannot use the quota per user feature provided by hikashop?  Thanks in advance")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 11 years 6 months ago, by [diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")       [Last Post](/forum/46-discount-coupon/876864-quota-per-user-for-a-coupon#201911 "Hi,  Yes it does.") 11 years 5 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:6  Views:1436 | [Last Post](/forum/46-discount-coupon/876864-quota-per-user-for-a-coupon#201911 "Hi,  Yes it does.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      11 years 5 months ago |
| [](/forum/25-install-update/876573-custom-plugin-that-activates-when-coupon-deleted#199653) | [custom plugin that activates when coupon deleted](/forum/25-install-update/876573-custom-plugin-that-activates-when-coupon-deleted#199653 "-- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5.2 -- PHP version -- : 5  Hi,  I am trying to write a plugin that executes when a coupon is deleted from the frontend of the website by a customer. What i need it to do, is remove a particular item from the basket when a certain coupon is deleted. I have added what i have coded so far below. I cannot even get an exit() statement alone to execute in the onAfterDiscountDelete(&amp;$elements) function. The onAfterDiscountDelete(&amp;$elements) function doesn't appear to execute even when a coupon is deleted from the frontend of the website. I have written numerous plugins for hikashop now and they have all worked so far (except for this one)...  So i need to know:  Why my plugin is not executing; What code i need to delete an item from the basket;  My plugin is installed and it is published so that is not the issue here. I have stored my plugin in:-  /plugins/hikashop/discount/  and that folder contains the following files:- discount.php discount.xml index.html  The code below is contained within:-  /plugins/hikashop/discount/discount.php  Code: loadFullCart();   $numberOfProductsInCart = sizeof($cart-&gt;products);   for($i=0; $iproducts&#91;$i&#93; == 120) {   //I need some code to remove this item from the basket - but what code will achieve that?   }   }   }  }  ?&gt;  Thanks in advance guys!")        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 6 months ago, by [diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")       [Last Post](/forum/25-install-update/876573-custom-plugin-that-activates-when-coupon-deleted#199663 "Hi,    www.hikashop.com/support/support/documen...tation.html#discount  I'm sorry but the trigger you're using is not when a customer remove a coupon code in his checkout ; it's when a discount is delete from the database.  You should take a look at the trigger &quot;onBeforeCouponLoad(&amp;$coupon,&amp;$do)&quot; instead.  Regards,") 11 years 6 months ago     by [Jerome](/forum/user/80-jerome "View Jerome's Profile") | Replies:1  Views:470 | [Last Post](/forum/25-install-update/876573-custom-plugin-that-activates-when-coupon-deleted#199663 "Hi,    www.hikashop.com/support/support/documen...tation.html#discount  I'm sorry but the trigger you're using is not when a customer remove a coupon code in his checkout ; it's when a discount is delete from the database.  You should take a look at the trigger &quot;onBeforeCouponLoad(&amp;$coupon,&amp;$do)&quot; instead.  Regards,") by [Jerome](/forum/user/80-jerome "View Jerome's Profile")      11 years 6 months ago |
| [](/forum/46-discount-coupon/876486-custom-plugin-for-coupon#199205) | [custom plugin for coupon](/forum/46-discount-coupon/876486-custom-plugin-for-coupon#199205 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5.18 -- PHP version -- : 5  Hi,  I need to write a custom plugin for coupons. I have seen the &quot;developer documentation&quot; describing how to create a custom plugin and indeed i have written a custom plugin for hikashop before (albeit a long time ago). Ok so what i want to do is write a custom plugin for coupons - so im thinking of adding that custom plugin as follows:-  /plugins/hikashop/coupon/coupon.php  (for the above: is this the correct folder/file path for adding a coupon plugin?)  and then im thinking of adding code like so (to the coupon.php plugin file):-  Code: class plgHikashopCoupon extends JPlugin {   function plgHikashopCoupon(&amp;$subject, $config) {   parent::&#95;&#95;construct($subject, $config);   }  function onBeforeCouponLoad(&amp;$coupon,&amp;$do) {  }  }  (for the above: am i extending the right class? or should i be extending a more specific coupon class? Also is my constructor function correct?)  Thanks for the help in advance!")        Category: [Discount &amp; Coupon](/forum/46-discount-coupon "Increase your sales with our coupon/discount feature")     Topic started 11 years 6 months ago, by [diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")       [Last Post](/forum/46-discount-coupon/876486-custom-plugin-for-coupon#199216 "Hi,  That's correct so far. Make sure that you also add the xml for your plugin and then zip both files and install the zip via the Joomla installer so that you can activate the plugin via the Joomla plugins manager.") 11 years 6 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:1099 | [Last Post](/forum/46-discount-coupon/876486-custom-plugin-for-coupon#199216 "Hi,  That's correct so far. Make sure that you also add the xml for your plugin and then zip both files and install the zip via the Joomla installer so that you can activate the plugin via the Joomla plugins manager.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      11 years 6 months ago |

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

Time to create page: 0.067 seconds

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