Reputation: 11
How to append content after order submit with my custom database table information via addon. Can you please add detailed explanation about hooks for both php and tpl hook for order submit in cs cart.
I find out order.post.tpl via addon hooks in docs example.
Upvotes: 0
Views: 468
Reputation: 625
#PHP
file
app/addons/my_changes/controllers/frontend/checkout.post.php
content:
<?php
if ( !defined('BOOTSTRAP') ) { die('Access denied'); }
if($mode == 'complete' && !empty($_REQUEST['order_id'])){
/* add your code here */
}
#TPL
design/themes/[THEME_NAME]/templates/addons/my_changes/hooks/checkout/order_confirmation.post.tpl
PS: The implementation is done base on My Changes add-on
Upvotes: 0