Trang affiliate là trang của một người dùng đã đăng ký tham gia chương trình liên kết của một nhà cung cấp sản phẩm hoặc dịch vụ. Trang affiliate sẽ tạo ra liên kết đến sản phẩm hoặc dịch vụ của doanh nghiệp đó và nếu người dùng qua liên kết đó mua sản phẩm hoặc dịch vụ, trang affiliate sẽ nhận được một phần trả tiền từ doanh nghiệp.
Trang affiliate chứa các thông tin cơ bản như: Thông tin người giới thiệu, Thống kê đơn hàng giới thiệu, Thống kê các mã giới thiệu đơn hàng thành công...
Thông tin người giới thiệu:
{% if(hasIdentity()) %}{% if(affiliateCode.extraContent) %}{% set extra = affiliateCode.extraContent%} <pstyle="margin: 0"> <b>Thông tin người giới thiệu:</b> </p> <ulclass="infor-customer"style="margin-bottom: 10px;padding-left: 5px;"> {% if(extra['fullName']) %} <li><span>- Họ và tên: {{extra['fullName']}}</span></li> {% endif %} {% if(extra['mobile']) %} <li><span>- Số điện thoại: {{extra['mobile']}}</span></li> {% endif %} {% if(extra['email']) %} <li><span>- Email: {{extra['email']}}</span></li> {% endif %} {% if(extra['address']) %} <li><span>- Địa chỉ: {{extra['address']}}</span></li> {% endif %} {% if(extra['infoBank']) %} <li><span>- Mã ngân hàng - Số TK ngân hàng: {{extra['infoBank']}}</span></li> {% endif %} </ul> <pstyle="margin-bottom: 10px;"><b>Link chia sẻ: </b> <a target="_blank" data-link="{{getCurrentUrl()}}" href="{{getCurrentUrl()}}?affcode={{affCode}}" id="linkHomeCopy" class="linkShareAff" style="color: #4080ff">{{getCurrentUrl()}}?affcode={{affCode}}</a>
</p>{% endif %}{% endif %}
Thống kê đơn hàng giới thiệu và các mã giới thiệu đơn hàng thành công
{% if(hasIdentity()) %}{% if(affiliateOrder is not empty) %} <td>{{affiliateCode.content}}</td> <td> <a href="/order/index?affCodeId={{affiliateOrder.codeId}}&fromDate={{fromDate}}&toDate={{toDate}}">{{affiliateOrder.options['totalOrder']}}</a>
</td> <td>{{affiliateOrder.options['valueOrder'] |number_format(0) }} đ</td> <td> <a href="/order/index?status={{constant('Order\\Model\\Order::STATUS_SUCCESS')}}&affCodeId={{affiliateOrder.codeId}}&fromDate={{fromDate}}&toDate={{toDate}}">{{affiliateOrder.options['totalOrderSuccess']}}</a>
</td> <td>{{affiliateOrder.options['valueOrderSuccess'] |number_format(0) }} đ</td> <td>{{affiliateOrder.options['totalBonus'] |number_format(0) }} đ</td>{% else %} <tdcolspan="6">Bạn chưa có đơn hàng nào</td>{% endif %}{% endif %}