Anshul Tharani
Forum Replies Created
-
Forum: Plugins
In reply to: [Testimonial Carousel For Elementor] Stop autoplay after manual playany update??
Forum: Plugins
In reply to: [VikBooking Hotel Booking Engine & PMS] customize new room functionHello
It is not my question that I have already done this by creating a mu plugin that is code
// The filter callback function for vik_get_db_prefix function bookinter_table_prefix() { global $wpdb; return $wpdb->base_prefix; } add_filter( 'vik_get_db_prefix', 'bookinter_table_prefix' );
my question is how to use pro version in full multisite??
I have to buy three different licenses for that?
I have activated pro verioson by license key in main domain how to activate in subdomain?Forum: Plugins
In reply to: [VikBooking Hotel Booking Engine & PMS] customize new room functionHello i have installed wordpress multisite in server in which i have used two subdomain app and list. I have vikbooking booking uploaded and network is active. I have bought vikbooking pro version and added the key, it just upgrade vikbooking plugin pro to main domain only. my question is how to use pro version in full multisite??
Main concept is room added by app sub domain and booking done by list sub domain and main domain for marketing purpose i already used “vik_get_db_prefix” to share same data in whole siteForum: Plugins
In reply to: [VikBooking Hotel Booking Engine & PMS] customize new room functionokay
Thank you so much for the supportForum: Plugins
In reply to: [VikBooking Hotel Booking Engine & PMS] customize new room functionany help really appreciated
Forum: Plugins
In reply to: [VikBooking Hotel Booking Engine & PMS] customize new room functionhello
First of all thanks for the support
I have used hook as per your suggestion and this is the code
add_action( ‘vikbooking_before_dispatch’, ‘room_add_custom_function’, 10, 3 );
function room_add_custom_function( ) {
$task = JFactory::getApplication()->input->get(‘task’);
$app = JFactory::getApplication();
$user = Jfactory::getUser();
if ($app->isAdmin())
{
if($task == ‘createroom’ ||($task == ‘createroomstay’ )
{
$host_user = VikRequest::getVar(‘host_user’, ” , ‘request’);
die($host_user);
}
}
}I also getting the value of user as well. Now the problem is that the hook is run before the room data is inserted in the DB, so how do I get the room insert id to save the user data with the same room id?