Hi,
How do you redirect from the HikaShop checkout to your booking form ?
I think that's where you want to provide the id of the cart. You could just add it to the URL when performing the redirection.
Another simple way is to look in
$_COOKIES['hikashop_cart_id']
in your PHP code.
Another way is to load hikashop's main helper file, if it's not already loaded, and use the normal HikaShop PHP code to get the current cart id:
if(!@include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')){ return false; }
$cartClass = hikashop_get('class.cart');
$cart_id = $cartClass->getCurrentCartId();