Automatically add custom field data based on order

  • Posts: 72
  • Thank you received: 0
11 years 8 months ago #92859

hi,

we're selling magazines on our website. we offer subscriptions such as 3 month, 6 month and 12 month.

i've added an extra field to the registration form on the front end that asks users to select which issue of the magazine they wish to start their subscription from.

i've also added a field to the back end of the site which allows us to enter an end date for their subscription.

is it possible to automate the process of selecting an end date? is it possible to add some code somewhere that checks the product type and the value of the start date and then automatically works out the end date for the subscription and adds this information to the database?

thanks

Last edit: 11 years 8 months ago by daveturner101.

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 8 months ago #93131

Hi,

You can, thanks to a little custom plugin, modify some user information (some user custom field) depending the products in the order.
The plugin could trigger the event "onAfterOrderConfirm" and update the attached user.

After that, I am not sure that it could fill your needs but we have an integration with Akeeba Subscription.
www.hikashop.com/en/support/documentatio...a-subscriptions.html

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.

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

Time to create page: 0.053 seconds
Powered by Kunena Forum