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

#   \[solved\] Add packaging costs to final price

##

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

Less More

- Posts: 10
- Thank you received: 0
-
-

14 years 6 months ago -  14 years 6 months ago [\#46644](#46644) by [bigboytbh](/forum/user/7048-bigboytbh "View bigboytbh's Profile")  *[\[solved\] Add packaging costs to final price](/forum/4-how-to/46644-solved-add-packaging-costs-to-final-price#46644 "Hello,  I didn't find a solution on the documentation, neither on the forums (sorry if it's there but I haven't seen it).  &#91;SOLVED&#93; I need to add packaging cost to my final price that will always be fixed, no matter the products ordered. It has to show itself on the checkout page under the list of ordered products and it has to be included in the final price. Is there a simple way to do this or do I have to develop a php plug-in using the APIs?  Thanks in advance!  EDIT: Another question: &#91;SOLVED&#93; How do I get the total number of ordered items at the &quot;end&quot; phase of checkout? Which PHP variable should I call? Is it something like $product-&gt;$quantity ?")* was created by *[bigboytbh](/forum/user/7048-bigboytbh "View bigboytbh's Profile")*

Hello,

I didn't find a solution on the documentation, neither on the forums (sorry if it's there but I haven't seen it).

[SOLVED] I need to add packaging cost to my final price that will always be fixed, no matter the products ordered.
It has to show itself on the checkout page under the list of ordered products
and it has to be included in the final price.
Is there a simple way to do this or do I have to develop a php plug-in using the APIs?

Thanks in advance!

EDIT: Another question:
[SOLVED] How do I get the total number of ordered items at the "end" phase of checkout?
Which PHP variable should I call?
Is it something like $product-&gt;$quantity ?

Last edit: 14 years 6 months ago by [bigboytbh](/forum/user/7048-bigboytbh "View bigboytbh's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ2NjQ0LXNvbHZlZC1hZGQtcGFja2FnaW5nLWNvc3RzLXRvLWZpbmFsLXByaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

14 years 6 months ago [\#46794](#46794) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add packaging costs to final price](/forum/4-how-to/46644-solved-add-packaging-costs-to-final-price#46794 "Hello,  I didn't find a solution on the documentation, neither on the forums (sorry if it's there but I haven't seen it).  &#91;SOLVED&#93; I need to add packaging cost to my final price that will always be fixed, no matter the products ordered. It has to show itself on the checkout page under the list of ordered products and it has to be included in the final price. Is there a simple way to do this or do I have to develop a php plug-in using the APIs?  Thanks in advance!  EDIT: Another question: &#91;SOLVED&#93; How do I get the total number of ordered items at the &quot;end&quot; phase of checkout? Which PHP variable should I call? Is it something like $product-&gt;$quantity ?")*

That's easy, just create one manual shipping method with your price.
Don't forget to either set a weight in your products or turn on the option "force shipping regardless of weight" in the configuration.

You can do like that: Code:

$order_id = JRequest::getInt('order_id'); $order =null; if(!empty($order_id)){ $orderClass = hikashop_get('class.order'); $order = $orderClass-&gt;loadFullOrder($order_id); foreach($order-&gt;products as $product){ echo $product-&gt;order_product_quantity; } }

The following user(s) said Thank You: [bigboytbh](/forum/user/7048-bigboytbh "View bigboytbh's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ2NjQ0LXNvbHZlZC1hZGQtcGFja2FnaW5nLWNvc3RzLXRvLWZpbmFsLXByaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 10
- Thank you received: 0
-
-

14 years 6 months ago [\#46821](#46821) by [bigboytbh](/forum/user/7048-bigboytbh "View bigboytbh's Profile")  Replied by *[bigboytbh](/forum/user/7048-bigboytbh "View bigboytbh's Profile")* on topic *[Re: Add packaging costs to final price](/forum/4-how-to/46644-solved-add-packaging-costs-to-final-price#46821 "Hello,  I didn't find a solution on the documentation, neither on the forums (sorry if it's there but I haven't seen it).  &#91;SOLVED&#93; I need to add packaging cost to my final price that will always be fixed, no matter the products ordered. It has to show itself on the checkout page under the list of ordered products and it has to be included in the final price. Is there a simple way to do this or do I have to develop a php plug-in using the APIs?  Thanks in advance!  EDIT: Another question: &#91;SOLVED&#93; How do I get the total number of ordered items at the &quot;end&quot; phase of checkout? Which PHP variable should I call? Is it something like $product-&gt;$quantity ?")*

Thank you, I'll try this later today and will post results!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ2NjQ0LXNvbHZlZC1hZGQtcGFja2FnaW5nLWNvc3RzLXRvLWZpbmFsLXByaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 10
- Thank you received: 0
-
-

14 years 6 months ago [\#46833](#46833) by [kamastudio](/forum/user/6970-kamastudio "View kamastudio's Profile")  Replied by *[kamastudio](/forum/user/6970-kamastudio "View kamastudio's Profile")* on topic *[Re: Add packaging costs to final price](/forum/4-how-to/46644-solved-add-packaging-costs-to-final-price#46833 "Hello,  I didn't find a solution on the documentation, neither on the forums (sorry if it's there but I haven't seen it).  &#91;SOLVED&#93; I need to add packaging cost to my final price that will always be fixed, no matter the products ordered. It has to show itself on the checkout page under the list of ordered products and it has to be included in the final price. Is there a simple way to do this or do I have to develop a php plug-in using the APIs?  Thanks in advance!  EDIT: Another question: &#91;SOLVED&#93; How do I get the total number of ordered items at the &quot;end&quot; phase of checkout? Which PHP variable should I call? Is it something like $product-&gt;$quantity ?")*

Thanks for the advice!

I don't know what the code is for, but all I did was go to System-Shipping Methods and enable the "HikaShop manual shipping plugin". Then clicked on "HikaShop manual shipping plugin" and created a new shipping method, named it "shipping" and published it. Then I went to System-Configuration and turned on the option "force shipping regardless of weight" and BAM! It worked perfectly. I am charging a flat rate of $10 for shipping so this worked perfectly for me. Thank you very much

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ2NjQ0LXNvbHZlZC1hZGQtcGFja2FnaW5nLWNvc3RzLXRvLWZpbmFsLXByaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 10
- Thank you received: 0
-
-

14 years 6 months ago -  14 years 6 months ago [\#46837](#46837) by [bigboytbh](/forum/user/7048-bigboytbh "View bigboytbh's Profile")  Replied by *[bigboytbh](/forum/user/7048-bigboytbh "View bigboytbh's Profile")* on topic *[Re: Add packaging costs to final price](/forum/4-how-to/46644-solved-add-packaging-costs-to-final-price#46837 "Hello,  I didn't find a solution on the documentation, neither on the forums (sorry if it's there but I haven't seen it).  &#91;SOLVED&#93; I need to add packaging cost to my final price that will always be fixed, no matter the products ordered. It has to show itself on the checkout page under the list of ordered products and it has to be included in the final price. Is there a simple way to do this or do I have to develop a php plug-in using the APIs?  Thanks in advance!  EDIT: Another question: &#91;SOLVED&#93; How do I get the total number of ordered items at the &quot;end&quot; phase of checkout? Which PHP variable should I call? Is it something like $product-&gt;$quantity ?")*

Nice, I turned on the "force shipping regardless of weight" option and it worked like charm, thanks nicolas!

For the product quantity, I needed it after confirmation (along with the "Thanks for purchase" text).
It didn't echo anything with this code when put into 'checkout / end.php' nor into 'checkout / confirm.php',
so I wrote a javascript to take all values from the quantity fields at checkout,
it takes their sum, stores it as a cookie and shows it after confirmation (then deletes the cookie). Seems to work just fine.

Yet more questions :­)
1) [ in a new thread](http://www.hikashop.com/en/forum/2-general-talk-about-hikashop/46845-change-default-length-of-lists-of-products.html#46845)
2) [SOLVED] How can I request a client to accept conditions (with link to pdf) at checkout, before confirmation? (solved by adding it to workflow)

Last edit: 14 years 6 months ago by [bigboytbh](/forum/user/7048-bigboytbh "View bigboytbh's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ2NjQ0LXNvbHZlZC1hZGQtcGFja2FnaW5nLWNvc3RzLXRvLWZpbmFsLXByaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.065 seconds

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