I have added custom fields like date, text and upload under affiliate section. I can see these fields under the affiliate registration form. After the user has registered as affiliate, under the admin - customer, i do not see the data filled by the user. although i can see the fields but they are empty.
Thankyou for your support.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Thank you for the reply.
Attachments
Screenshot 2022-03-17 at 5.32.35 PM.png (203.52 KiB) Viewed 1446 times
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Please provide your recent Server Error Logs about this page.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
https://github.com/opencart/opencart/co ... 475081f98c
Same for edit function
https://github.com/opencart/opencart/co ... 6e9fe0acb4
Also you can apply this fixes
https://github.com/opencart/opencart/co ... e8bd6079e6
https://github.com/opencart/opencart/pull/10347/files
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
in the validateForm() method, find:
Code: Select all
if ((utf8_strlen($this->request->post['firstname']) < 1) || (utf8_strlen(trim($this->request->post['firstname'])) > 32)) {
Code: Select all
echo "<pre />\n";
print_r($this->request->post);
exit;
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
i do not see affiliate.php file under admin/controller/customer
Screen shot attached.
Attachments
Screenshot 2022-03-18 at 8.44.21 PM.png (252.46 KiB) Viewed 1273 times
I can see the information in the array, but thats after i have edited the customer details under the admin section. When users first registers as affiliate and enters the data. under admin -- >the data for default fields is there but the for custom fields its missing.
heres the array.
Array
(
[customer_group_id] => 1
[firstname] => ppppppp
[lastname] => ppppppp
[email] => admin@12dfdf.com
[telephone] => 122323
[password] =>
[confirm] =>
[newsletter] => 0
[status] => 1
[safe] => 0
[seller] => 1
[company] => 121212
[custom_field] => Array
(
[2] => 1
[1] => 2121-02-01
[3] =>
[4] =>
[5] =>
[6] => dsdsd
)
[website] => dsf
[tracking] => L5Mou70xifA6TqdbjbfSSfXQKujORNMHgqhkEidj3S9qeAWhkY4mMKqQMRwgRZI9
[commission] => 5.00
[tax] => dsfdfs
[payment] => cheque
[cheque] => dsfdsf
[paypal] =>
[bank_name] =>
[bank_branch_number] =>
[bank_swift_code] =>
[bank_account_name] =>
[bank_account_number] =>
[affiliate] => 1
[comment] =>
[description] =>
[amount] =>
[points] =>
[kbmp_default_commission] =>
[kbmp_default_commission_global] => 1
[kbmp_new_product_approval_required] => 0
[kbmp_new_product_approval_required_global] => 1
[kbmp_enable_seller_review] => 0
[kbmp_enable_seller_review_global] => 1
[kbmp_seller_review_approval_required] => 0
[kbmp_seller_review_approval_required_global] => 1
[kbmp_email_on_new_order] => 0
[kbmp_email_on_new_order_global] => 1
[category] =>
)
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Attachments
Screenshot 2022-03-19 at 11.23.29 AM.png (218.92 KiB) Viewed 1214 times
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Users browsing this forum: No registered users and 32 guests