Custom Field in order aditional information

  • Posts: 71
  • Thank you received: 0
10 years 8 months ago #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_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

Attachments:
Last edit: 10 years 8 months ago by vaughan.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 8 months ago #146321

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.

Please Log in or Create an account to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum