Hi,
To have a 10% discount apply automatically on all the other products after a specific product is bought, you can do it without any coding.
In the product, you can use the "user group after purchase" option in order to assign a specific user group to the user after the purchase.
Then, you can create a 10% discount (menu Orders>Discounts) with the "access level" option set to that user group, and the category option set to a specific unpublished category that you had created previously.
Finally, just add that unpublished category to all the products which should benefit of the 10% discount so that the discount will apply to them if the current user is in the user group of the discount.
Regarding adding a CBsub plan to the user after the purchase of the product, you'll have to develop a hikashop plugin in order to achieve that.
It will have rouhgly the same structure as the integration plugin with Akeeba Subscriptions:
www.hikashop.com/support/support/documen...a-subscriptions.html
So I invite you to check the code of that plugin and change the code which adds the subscription in AS to code which will add the subscription in CBsub plan.
Also, I'm sure other people would be happy to be able to use such integration so if you want to share it, we would be more than happy to promote it on our website.