Add custom user field to Order Number format

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
13 years 7 months ago #13567

Right. Loading all the data of the user everywhere it is needed is possible but that means changing all the queries...I let you have fun with that.
On our end we'll look at adding a new column in next version and store the number when the order is saved, it will be easier and avoid loading stuff everywhere for something no one else uses...

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

  • Posts: 202
  • Thank you received: 2
13 years 7 months ago #13568

Poop! Well, I am not going to try to mess with that. Much more than I want to tackle. I appreciate all of your help on this. Saving the order number makes sense to me, but that's only MY opinion!! :-)

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

  • Posts: 202
  • Thank you received: 2
13 years 7 months ago #13579

Just to pick your brain - can you think of any way I can get a field somewhere that can be used like this, that WOULD be available? Even if I have to populate it from the db when I add a new user?

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

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
13 years 7 months ago #13581

As I said, the modification I proposed allows you to use custom order fields in that way. So you can just create a custom order field which would be displayed on the checkout and that the user could fill or that you could prefill in the view.
Also if you wait for next release, you will be able to do that with custom user fields.

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

  • Posts: 202
  • Thank you received: 2
13 years 7 months ago #13582

Okay, I will wait for the next release!!

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

  • Posts: 202
  • Thank you received: 2
13 years 6 months ago #15784

nicolas,

Just checking in to see if you may have an idea when the change you mention might be implemented? Just curious!!

Rick

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

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
13 years 6 months ago #15806

We forgot about it. I just added it and it will be available in the 1.5.0

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

  • Posts: 202
  • Thank you received: 2
13 years 5 months ago #17785

nicolas,

I just downloaded and upgraded from 1.4.9 to 1.5.1

Is this feature in the newest release?

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

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
13 years 5 months ago #17789

Yes. You should be able to add tags like that:
{user custom_field_column_name}

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

  • Posts: 202
  • Thank you received: 2
13 years 5 months ago #17792

Thanks, nicolas!!! You guys are the best!

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

  • Posts: 7
  • Thank you received: 1
11 years 6 months ago #100078

Hi Nicolas,

Would one way to address this issue be to provide a function that translates order_number to order_id?

Anyway, I find I need such a function, or alternatively, get_by_number() as alternative to $orderClass->get(). Does it exist, or suggestions?

Cheers,
/george

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

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
11 years 6 months ago #100081

The hikashop_decode function can be used to revert order_numbers to order_ids.

The following user(s) said Thank You: geg

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

  • Posts: 7
  • Thank you received: 1
11 years 6 months ago #100193

Thanks Nicolas, As usual, very prompt response, right on the mark. Worked perfectly :).

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

Time to create page: 0.085 seconds
Powered by Kunena Forum