Referring to the thread https://toolset.com/forums/topic/additional-packages/page/4/#post-544146
A new "Package 10" is created. After his purchase he has the wrong name. Instead of, for example "Package Order # 1995" is called "CRED Auto Draft 929b3c4ef3815d1593c4bb692310f4b5".
Each subsequent purchased "Package 10" has the same name - "CRED Auto Draft 929b3c4ef3815d1593c4bb692310f4b5".
Please help me.
Dear Bochnacki,
Please try below custom PHP code, put them into your theme/functions.php:
add_action('wp_loaded', 'setup_package_title_func');
function setup_package_title_func(){
if(class_exists('Toolset_Classifieds_PackageOrder')){
$Class_Toolset_Classifieds_PackageOrder = new Toolset_Classifieds_PackageOrder();
add_action('cred_save_data_1772', array($Class_Toolset_Classifieds_PackageOrder, 'classifieds_cred_save_data_add_new_package_order_function'), 10, 2);
// here you can add more form IDs in the parameter 'cred_save_data_xxx'
}
}
It will works for the CRED form "Add new Ad package 10", ID 1772.
Dear Bochnacki,
Please try below custom PHP code, put them into your theme/functions.php:
add_action('wp_loaded', 'setup_package_title_func');
function setup_package_title_func(){
if(class_exists('Toolset_Classifieds_PackageOrder')){
$Class_Toolset_Classifieds_PackageOrder = new Toolset_Classifieds_PackageOrder();
add_action('cred_save_data_1772', array($Class_Toolset_Classifieds_PackageOrder, 'classifieds_cred_save_data_add_new_package_order_function'), 10, 2);
// here you can add more form IDs in the parameter 'cred_save_data_xxx'
}
}
It will works for the CRED form "Add new Ad package 10", ID 1772.
Thanks a lot. Works well 🙂