Skip Navigation

[Resolved] Problem with the name of the new "Package".

This support ticket is created 7 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Bochnacki 7 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#544223

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.

#544580

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.

#544581

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.

#544612

Thanks a lot. Works well 🙂

#548369