- Posts: 71
- Thank you received: 0
Custom Field in order aditional information
12 years 7 months ago - 12 years 7 months ago #146315
by vaughan
Custom Field in order aditional information was created by vaughan
-- 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_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
-- 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
Last edit: 12 years 7 months ago by vaughan.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 7 months ago #146321
by Mohamed Thelji
Replied by Mohamed Thelji on topic Custom Field in order aditional information
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(&$order,&$methods,$method_id) trigger to automatically set the value of your order custom field to the "subtotal price".
Reading the developer documentation will probably help you, also note that some development skills will be required to do that.
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(&$order,&$methods,$method_id) trigger to automatically set the value of your order custom field to the "subtotal price".
Reading the developer documentation will probably help you, also note that some development skills will be required to do that.
Please Log in or Create an account to join the conversation.
Time to create page: 0.180 seconds