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

#   One time cost

##

- **[jannick](/forum/user/33157-jannick "View jannick's Profile")**
- [![jannick's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33157-jannick "View jannick's Profile") Topic Author
- [ Offline](/forum/user/33157-jannick)

Less More

- Posts: 26
- Thank you received: 1
-
-

9 years 11 months ago [\#256753](#256753) by [jannick](/forum/user/33157-jannick "View jannick's Profile")  *[One time cost](/forum/26-product-category-display/887766-one-time-cost#256753 "-- url of the page with the problem -- :   www.slimbedacht.nu/bloomingnotes/index.p...roduct/eigen-ontwerp  -- Joomla version -- : 2.6.4  Hi,  We have a product page to order a rose with a custom print on it. This custom print requires a custom made stamp wich costs 15 euro's. When someone orders 10 of these roses, there is only one stamp of 15 euro's that has to be made. But when i order 2 roses with different custom prints. there are 2 stamps that have to be made wich costs 30 euros.  What could be the best way of adding one time costs to a product. I'm not looking for one time costs over the whole cart, not looking for including the costs in the price. But looking for one time costs over this product.  I think this is quite a basic requirement.  Thanks!")* was created by *[jannick](/forum/user/33157-jannick "View jannick's Profile")*

-- url of the page with the problem -- : [ www.slimbedacht.nu/bloomingnotes/index.p...roduct/eigen-ontwerp](http://www.slimbedacht.nu/bloomingnotes/index.php/webshop/product/eigen-ontwerp)
-- Joomla version -- : 2.6.4

Hi,

We have a product page to order a rose with a custom print on it. This custom print requires a custom made stamp wich costs 15 euro's. When someone orders 10 of these roses, there is only one stamp of 15 euro's that has to be made. But when i order 2 roses with different custom prints. there are 2 stamps that have to be made wich costs 30 euros.

What could be the best way of adding one time costs to a product. I'm not looking for one time costs over the whole cart, not looking for including the costs in the price. But looking for one time costs over this product.

I think this is quite a basic requirement.

Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc3NjYtb25lLXRpbWUtY29zdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

9 years 11 months ago [\#256754](#256754) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[One time cost](/forum/26-product-category-display/887766-one-time-cost#256754 "-- url of the page with the problem -- :   www.slimbedacht.nu/bloomingnotes/index.p...roduct/eigen-ontwerp  -- Joomla version -- : 2.6.4  Hi,  We have a product page to order a rose with a custom print on it. This custom print requires a custom made stamp wich costs 15 euro's. When someone orders 10 of these roses, there is only one stamp of 15 euro's that has to be made. But when i order 2 roses with different custom prints. there are 2 stamps that have to be made wich costs 30 euros.  What could be the best way of adding one time costs to a product. I'm not looking for one time costs over the whole cart, not looking for including the costs in the price. But looking for one time costs over this product.  I think this is quite a basic requirement.  Thanks!")*

Hi,

The easiest method I can see to do that without any code is to turn on the "use shipping price per product" in your shipping methods.
Then, in the products, you can set that cost in the shipping price of each shipping method.
That way, the cost can be fixed regardless of the quantity of the product in the cart and would be added to the shipping fees you already have.

When you say that you want the one time cost per custom print, I suppose that the custom print is done with a custom item field.
In that case, there is no system to be able to configure one cost per different value of the product item field.
That's clearly not basic.
In that case, I can only recommend the development of a custom plugin. Thanks to that, you'll be able to make any kind of calculation any way you want and add it to any price you want in the cart as long as the plugin is done properly.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc3NjYtb25lLXRpbWUtY29zdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jannick](/forum/user/33157-jannick "View jannick's Profile")**
- [![jannick's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33157-jannick "View jannick's Profile") Topic Author
- [ Offline](/forum/user/33157-jannick)

Less More

- Posts: 26
- Thank you received: 1
-
-

9 years 11 months ago [\#256914](#256914) by [jannick](/forum/user/33157-jannick "View jannick's Profile")  Replied by *[jannick](/forum/user/33157-jannick "View jannick's Profile")* on topic *[One time cost](/forum/26-product-category-display/887766-one-time-cost#256914 "-- url of the page with the problem -- :   www.slimbedacht.nu/bloomingnotes/index.p...roduct/eigen-ontwerp  -- Joomla version -- : 2.6.4  Hi,  We have a product page to order a rose with a custom print on it. This custom print requires a custom made stamp wich costs 15 euro's. When someone orders 10 of these roses, there is only one stamp of 15 euro's that has to be made. But when i order 2 roses with different custom prints. there are 2 stamps that have to be made wich costs 30 euros.  What could be the best way of adding one time costs to a product. I'm not looking for one time costs over the whole cart, not looking for including the costs in the price. But looking for one time costs over this product.  I think this is quite a basic requirement.  Thanks!")*

Hi,

I know this method, but this method has a problem. It will add shipping fee for each variant. But when the variant is the samen but only the custom field is different, the system is not taking the shipping fee in account.

I have a screenshot. As you can see i have 3 products in the cart, each with a different text. The shipping fee should be 3 x 15. But its only 2 x 15 because there are only two variants.
[ ![cart.JPG](/forum/attachment/35019) ](/forum/attachment/35019 "cart.JPG")

For developing a plugin i can only find a way to modify the price per product (because the system is calculating the price each time dynamically). But that's not what i'm looking for. I need to add a fee on top of the total product price.

A perfect situation would be if i could force a option, wich wil only added **once** to the cart per product.

Could you tell me the best way to approach this plugin? (just a description of the best approach)

thanks!

- [ ![cart.JPG](/forum/attachment/35019) ](/forum/attachment/35019 "cart.JPG") [ ](/forum/attachment/35019?download=1 "cart.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc3NjYtb25lLXRpbWUtY29zdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jannick](/forum/user/33157-jannick "View jannick's Profile")**
- [![jannick's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33157-jannick "View jannick's Profile") Topic Author
- [ Offline](/forum/user/33157-jannick)

Less More

- Posts: 26
- Thank you received: 1
-
-

9 years 11 months ago -  9 years 11 months ago [\#256946](#256946) by [jannick](/forum/user/33157-jannick "View jannick's Profile")  Replied by *[jannick](/forum/user/33157-jannick "View jannick's Profile")* on topic *[One time cost](/forum/26-product-category-display/887766-one-time-cost#256946 "-- url of the page with the problem -- :   www.slimbedacht.nu/bloomingnotes/index.p...roduct/eigen-ontwerp  -- Joomla version -- : 2.6.4  Hi,  We have a product page to order a rose with a custom print on it. This custom print requires a custom made stamp wich costs 15 euro's. When someone orders 10 of these roses, there is only one stamp of 15 euro's that has to be made. But when i order 2 roses with different custom prints. there are 2 stamps that have to be made wich costs 30 euros.  What could be the best way of adding one time costs to a product. I'm not looking for one time costs over the whole cart, not looking for including the costs in the price. But looking for one time costs over this product.  I think this is quite a basic requirement.  Thanks!")*

I have started a approach myself in the onAfterCartUpdate function: Code:

$stampId = 3447; $cartContent = $cartClass-&gt;loadFullCart(); $products = $cartContent-&gt;products; // count the amount of different texts $texts = array(); foreach ($products as $product){ if($product-&gt;eigenontwerptypen){ // ook nog upload erbij betrekken $texts[] = $product-&gt;eigenontwerptypen; } } $cartClass-&gt;updateEntry(count($texts), $cartClass-&gt;get($cart-&gt;cart_id), $stampId,0);

It counts the products in the cart with a specific custom field and adds products to the cart(quantity: the count of the products) of the id 3447. It works but i want to delete the products with id 3447 each time the cart updates so the amount is always right. Now the each time the cart updates it adds products of the id 3447 to the cart.

How could this be done?

Could you please answer my previouws question aswell about the shipping method solution. This would be the most simple solution but it's just not working the way i need.

Thanks in advance

Last edit: 9 years 11 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: [code] is nice

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc3NjYtb25lLXRpbWUtY29zdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

9 years 11 months ago [\#256919](#256919) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[One time cost](/forum/26-product-category-display/887766-one-time-cost#256919 "-- url of the page with the problem -- :   www.slimbedacht.nu/bloomingnotes/index.p...roduct/eigen-ontwerp  -- Joomla version -- : 2.6.4  Hi,  We have a product page to order a rose with a custom print on it. This custom print requires a custom made stamp wich costs 15 euro's. When someone orders 10 of these roses, there is only one stamp of 15 euro's that has to be made. But when i order 2 roses with different custom prints. there are 2 stamps that have to be made wich costs 30 euros.  What could be the best way of adding one time costs to a product. I'm not looking for one time costs over the whole cart, not looking for including the costs in the price. But looking for one time costs over this product.  I think this is quite a basic requirement.  Thanks!")*

Hi,

A plugin is the way to go.
There are many ways to go about it.
You could have a shipping plugin, and by implementing the onShippingDisplay trigger, you could calculate the shipping fee you want :
[ www.hikashop.com/support/documentation/6...ml#onShippingDisplay](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#onShippingDisplay)
You could also develop a plugin based on that plugin:
[ www.hikashop.com/forum/taxes/873285-fix-tax-import.html#190511](https://www.hikashop.com/forum/taxes/873285-fix-tax-import.html#190511)
With that, you can add additional fees to a cart between the subtotal and the total.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc3NjYtb25lLXRpbWUtY29zdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

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

Time to create page: 0.078 seconds

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