Developer Center

Shopping Cart

CartListItemOverwrite

Used to change the item listed in the cart.

Return

Hook::add("CartListItemOverwrite",1,function($params){
    if($params['options']['type'] == 'server' && $params['options']['id'] == 5){
        $params['options']['period'] = 'none';
        $params['options']['period_time'] = 0;
        $params['options']['amount'] = 5;
        $params['options']['cid'] = 'USD';
        return $params;
    }
});

CartSummaryItemOverwrite

Used to change the item in the cart summary.

Return

Hook::add("CartSummaryItemOverwrite",1,function($params){
    if($params['options']['type'] == 'server' && $params['options']['id'] == 5){
        $params['options']['period'] = 'none';
        $params['options']['period_time'] = 0;
        $params['options']['amount'] = 5;
        $params['options']['cid'] = 'USD';
        return $params;
    }
});
 
Ticket Client Area

Do you have any questions?

Feel free to contact us
Contact Us
Copyright © 2024. All Rights Reserved.
Join Our Discord Channel
Top