Admin re-Orders for Users

  • Posts: 108
  • Thank you received: 2
13 years 2 months ago #24957

Hello again.

I have made a custom payment system that uses an iframe to get the card info (country rules).
I used a special token to when first order is executed with this payment method, a token is created and is possible to be charged without using the card again.
I need an option to bill [Create new order + OnAfterOrderConfirm() effect] with the use of my super admin.
NOTE: OnAfterOrderConfirm() of this payment type is handeling the request to the company, validating and charging credit card or token.

The final result needed:
A manu in the back-end display all orders in a choosen date with the users info.
I make a cart with the needed products (still back-end), and on a checkbox checking all the users i want to bill (lets say in order to simplify they have a token) with that payment method. Running a new order for each user selected, and activating OnAfterOrderConfirm() to bill the token.


This is highly importent for me, i cannot use this store without it and i cannot buy the second store unless i can have this option.
My question is, what is needed for it to be done? and can i do it without changing the front-end?

Thank you very much for you help.

Last edit: 13 years 2 months ago by bars92.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 2 months ago #24964

Hi,

You don't need to change the front end.

First, in next release of HikaShop, you will be able to create new orders on the back end and add products to it. So you can just wait and it will be all good on that end.
Second, you need to add a button on the order edition page to display a popup to select a list of users and trigger the OnAfterOrderConfirm function of the payment plugin of the order with the list.

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

  • Posts: 108
  • Thank you received: 2
13 years 2 months ago #24966

Well, the next release will be greatly helpful, when will it be released?

I need the popup to create a new order and trigger the function for all the selected users.. I think i cannot do it in the order edit page, since i need a new order per user selected..
Thank you!

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 2 months ago #24968

What you need is to use that new order creation feature to create a new order with all the product and payment/shipping you want. Then, you need to create a function to duplicate that order "template" for each of the users you would select and then trigger the plugin for each one of them.

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

  • Posts: 108
  • Thank you received: 2
13 years 2 months ago #24978

I will look into it in the next version.
When will it be avaliable, im in a bit rush?
Thank you.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 2 months ago #24981

We are planning to release it in one or two weeks.
You can contact us by our contact form if you want a pre release. Please tell us the edition you're using in your message.

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

  • Posts: 108
  • Thank you received: 2
13 years 2 months ago #24984

Will do.

thank you again :)

Last edit: 13 years 2 months ago by bars92.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum