Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Update_User_Profile_Pre Hook Problem Rate Topic   - - - - -

 
  • teosu
  • Senior Member
  • Members
  • Join Date: 09-Oct 14
  • 275 posts

Posted 18 December 2017 - 02:18 PM #1

hi i am try change custom profile field with hook update_user_profile_pre

 

its update when i edit profile fields from my profile details. but checkour step doesnt update custom profile filed

 $user_data['fields']['57'] = '';

i check fn_store_profile_fields everythink looking perfect but why doesnt work on checkout step ?



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 10562 posts

Posted 18 December 2017 - 09:41 PM #2

If your custom field is set to be seen on checkout page, then that data will be updated upon change to user_data.

 

You shouldn't have to use a hook to alter a custom field unless you want to use the value of that field to do something else.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17267 posts

Posted 19 December 2017 - 05:46 AM #3

You should check also fn_checkout_update_steps function (app/functions/fn.cart.php) and check how the profile data is updated


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • teosu
  • Senior Member
  • Members
  • Join Date: 09-Oct 14
  • 275 posts

Posted 19 December 2017 - 05:58 AM #4

Yes i solve problem with adding custom hook