Hi,
Actually for the affiliate the system is to have a specific url, then we get the id of this partner and keep it in session.
When the customer buy something, if there is a partner id in session, we add it to the order.
If you want that the user enter the partner id in a fied in the checkout, it can be possible with custom code.
The columns to fill in database are:
- order_partner_id
- order_partner_price
- order_partner_paid
- order_partner_currency_id
So create a custom field in the table order, name it as you want and then create a plugin based on the function "onBeforeOrderCreate(&$order,&$do)" which will get the content of the created custom field and add the needed partner informations in the order.
It require good php level.
Here is some documentation:
www.hikashop.com/support/documentation/6...mentation.html#order