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

#   Custom Field in order aditional information

##

- **[vaughan](/forum/user/12479-vaughan "View vaughan's Profile")**
- [![vaughan's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar12479.jpg)](/forum/user/12479-vaughan "View vaughan's Profile") Topic Author
- [ Offline](/forum/user/12479-vaughan)

Less More

- Posts: 71
- Thank you received: 0
-
-

12 years 8 months ago -  12 years 8 months ago [\#146315](#146315) by [vaughan](/forum/user/12479-vaughan "View vaughan's Profile")  *[Custom Field in order aditional information](/forum/35-orders-management/866287-custom-field-in-order-aditional-information#146315 "-- url of the page with the problem -- :   www.wpb.es  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.4 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi I need add a custom field in order view (aditional information), I need manage payments, when the order is created i need to show 0, and when the order is confirmed show the subtotal price. It's possible?  Another possibility, is use/modify code in payment fee or shipping price (I don´t have extra charge in payment or shipping), when is created do nothing and when is confirmed show subtotal price and deduct the subtotal price, to show 0 in total price (if i see 0 in total price I know all price is paid), because there is no field that shows the amount that has been paid, no?  Colud you help me pls?  Thanks  Regards")* was created by *[vaughan](/forum/user/12479-vaughan "View vaughan's Profile")*

-- url of the page with the problem -- : [ www.wpb.es](http://www.wpb.es)
-- HikaShop version -- : 2.2.3
-- Joomla version -- : 3.2.1
-- PHP version -- : 5.4
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hi
I need add a custom field in order view (aditional information), I need manage payments, when the order is created i need to show 0, and when the order is confirmed show the subtotal price.
It's possible?

Another possibility, is use/modify code in payment fee or shipping price (I don´t have extra charge in payment or shipping), when is created do nothing and when is confirmed show subtotal price and deduct the subtotal price, to show 0 in total price (if i see 0 in total price I know all price is paid), because there is no field that shows the amount that has been paid, no?

Colud you help me pls?

Thanks

Regards
[ ![h51301a7.jpg](/forum/attachment/15691) ](/forum/attachment/15691 "h51301a7.jpg")

- [ ![h51301a7.jpg](/forum/attachment/15691) ](/forum/attachment/15691 "h51301a7.jpg") [ ](/forum/attachment/15691?download=1 "h51301a7.jpg")

Last edit: 12 years 8 months ago by [vaughan](/forum/user/12479-vaughan "View vaughan's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 8 months ago [\#146321](#146321) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Custom Field in order aditional information](/forum/35-orders-management/866287-custom-field-in-order-aditional-information#146321 "-- url of the page with the problem -- :   www.wpb.es  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.4 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi I need add a custom field in order view (aditional information), I need manage payments, when the order is created i need to show 0, and when the order is confirmed show the subtotal price. It's possible?  Another possibility, is use/modify code in payment fee or shipping price (I don´t have extra charge in payment or shipping), when is created do nothing and when is confirmed show subtotal price and deduct the subtotal price, to show 0 in total price (if i see 0 in total price I know all price is paid), because there is no field that shows the amount that has been paid, no?  Colud you help me pls?  Thanks  Regards")*

Hi,
To do that you'll have to :
- Create an order custom field with a default value set to 0
- Then create a plugin based on the **onAfterOrderConfirm(&amp;$order,&amp;$methods,$method\_id)** trigger to automatically set the value of your order custom field to the "subtotal price".

Reading the[ developer documentation](https://www.hikashop.com/index.php/support/documentation/62-hikashop-developer-documentation.html#onAfterOrderConfirm) will probably help you, also note that some development skills will be required to do that.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2NjI4Ny1jdXN0b20tZmllbGQtaW4tb3JkZXItYWRpdGlvbmFsLWluZm9ybWF0aW9uP3RtcGw9bWFya2Rvd24=) 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.049 seconds

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