Move "billing information" to "subscriptions"

  • Posts: 220
  • Thank you received: 12
2 years 10 months ago #333663

-- HikaShop version -- : 4.4.2
-- HikaSerial version -- : 3.1.2
-- Joomla version -- : 3.9.22
-- PHP version -- : 5.6.40

Hi,

Is it possible to display the "Billing address" - please attached image



in

"Subscriptions" - please see attached image

This is because I need the custom fields and address with the subscription, so the site owner can see all the subscriber's information on a single page.

Thanks,
Josh.

Attachments:

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

  • Posts: 26008
  • Thank you received: 4004
  • MODERATOR
2 years 10 months ago #333664

Hello,

You can customize the HikaSerial views if you want to display information coming from the orders.
But it won't be something integrated directly in HikaSerial since there is no "one" billing address for a subscription and you can have subscription with no orders at all or you can have subscription where orders have different billing addresses.
You can see to pick up the latest order and display the billing address, it should fill your requirement.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: joshualdouglas

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

  • Posts: 220
  • Thank you received: 12
2 years 10 months ago #333677

H Jerome,

I'm not exactly sure what you mean. Can't I just paste something from :

order / show_address.php
to
subscription / form.php or subscription / form_orders.php

Thanks,
Josh.

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

  • Posts: 220
  • Thank you received: 12
2 years 10 months ago #333679

Or is there some other way the user can fill my custom fields so they appear in the subscription?

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

  • Posts: 26008
  • Thank you received: 4004
  • MODERATOR
2 years 10 months ago #333722

Hello,

You can't paste code from HikaShop front-end view to HikaSerial backend view ; these are two different components and it cannot work.
If you want to fill your "custom fields" ; it requires a custom plugin which will perform the copy of some order details into the subscription object.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: joshualdouglas

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

  • Posts: 220
  • Thank you received: 12
2 years 10 months ago #333755

ok thank you

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

  • Posts: 26008
  • Thank you received: 4004
  • MODERATOR
2 years 10 months ago #333771

Hello,

Just to complete ; the customization of the backend view with the loading of the lastest order would be easier for you.
The creation of a custom plugin to copy the data from the order into the subscription might be complicated.
But if you want to see the billing address, the latest order should tell you the latest customer address (which might be for your case the best one).

The subscription detail view already give you the list of related orders. You need to pick up the latest and perform a full load (using the HikaShop API) and then access the billing information from that object.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: joshualdouglas

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

  • Posts: 220
  • Thank you received: 12
2 years 10 months ago #333891

Hi Jerome,

I just had another thought, would it be possible to move my custom fields - see attached A



to

Here - see attached B

or is it the same situation?

Thanks

Attachments:

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

  • Posts: 26008
  • Thank you received: 4004
  • MODERATOR
2 years 9 months ago #333892

Hello,

I might be possible.
But you would have to ask the HIkaShop support team since these two parts are HikaShop pages.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: joshualdouglas

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

  • Posts: 220
  • Thank you received: 12
2 years 9 months ago #333925

Ok perfect. Thank you!

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

Moderators: Obsidev
Time to create page: 0.092 seconds
Powered by Kunena Forum