Skip to main content

rails multi level marketing binary tree

General • Asked by mustafa kahveci

Hi, i have an application and that is working clear but i wanna add multi level marketing binary tree module to my application.

i created binarytree page and also created add_to_column to members as below
parent_id:string
left_id:string
right_id:string
referral_by_id:string
added_by_id:string

then i did migrated to database

also already generated current_user.sn for referral before migrate

how can i make to these on binarytree page
current_user = parent or if click to user of binary tree it will be parent then show tree of them
left_id and right_id need select for tree from added_by_id
referral_by_id button with checker

i wanna mean binary tree page need referral button for add referrer if user added referrer buton will visible automaticly because all user can add one referrer
also how can i make referral_link for example "www.domain.com/signup with referral id"(referral_by_id = current_user.sn = 8 digits )
if can anybody help please?
kindly thank's
Regards


Stunning post! Picking up the right marketing methods is the most necessary thing to be the leader in your business world. I am using the smm and Google Adwords Campaign Management services and the results are super nice. Now I have the interest in the search engine optimization method, so will find an appropriate service for that.


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 22,346+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.