Jump to content

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

Order_Create_Post Function? Rate Topic   - - - - -

 
  • maris.lazda
  • Newbie
  • Trial users
  • Join Date: 23-Mar 18
  • 2 posts

Posted 26 March 2018 - 08:54 PM #1

Hello!
As I'am new here and I can't write in "devs corner" I'll just ask here.

I have custom addon with additional table.

I collect some data from cookie and when new order is created I need to put those data my new table.

Look like fn_create_order would be the best choice BUT seems that hooks work before order is created and not after. 

Is there any workaround?





 
  • oleg.gorshkov
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 06-Dec 13
  • 2996 posts

Posted 27 March 2018 - 05:57 AM #2

 

Hello!
As I'am new here and I can't write in "devs corner" I'll just ask here.

I have custom addon with additional table.

I collect some data from cookie and when new order is created I need to put those data my new table.

Look like fn_create_order would be the best choice BUT seems that hooks work before order is created and not after. 

Is there any workaround?



 

 

Hello!

 

Try to use the 

fn_set_hook('place_order', $order_id, $action, $order_status, $cart, $auth);

hook from fn_place_order function in fn.cart.php file.


Simtech Development | sales@simtechdev.com | www.simtechdev.com
CERTIFIED CS-CART PARTNER | LICENSES | DEVELOPMENT | ADD-ONS | DESIGN | UPGRADE

Mega SEO Package - All you need for your SEO