I do have 78999 registered customers (though most don't need affiliate codes though of course opencart 3 auto assigns them a code). So I suspect this is why it is long, but...how can I get them as short as I can while keeping them unique??
Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
By shorting the string, you may no longer be able to track the affiliate codes in the future unless you're using a reliable provider that can use SQL queries with LIKE clause, for instance or if you do it locally by knowing who would actually own those affiliate codes. However, the 2nd option is less recommended.labeshops wrote: ↑Sun Aug 13, 2023 2:09 amJust discovered for some odd reason, opencart (v3.0.3.2) is generating CRAZY long affiliate link codes for my customers. Like peixlImJr5kuyH03bqrtz6iOJ9mwezwbTSeBwhLLjHDZqUOMA0MYqeaiGUStMpqd
I do have 78999 registered customers (though most don't need affiliate codes though of course opencart 3 auto assigns them a code). So I suspect this is why it is long, but...how can I get them as short as I can while keeping them unique??
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
HP Web Design
Powering Digital Commerce | http://hpwebdesign.io | http://opencart.id
Opencart Professional Services | Create OpenCart Online Store | OpenCart Tutorials
Looking at the customer table in phpmyadmin after a customer told me about it. If I register myself and then look at the affiliate code it gives me, I also see a long one like this.
Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
yes, but most of those customers are not actually affiliates so it's not an issue if I can just create shorter ones for all new customers. I can then email existing affiliates with long codes to please change your code - there are only a handful of active ones with the long codes.straightlight wrote: ↑Sun Aug 13, 2023 2:55 amBy shorting the string, you may no longer be able to track the affiliate codes in the future unless you're using a reliable provider that can use SQL queries with LIKE clause, for instance or if you do it locally by knowing who would actually own those affiliate codes. However, the 2nd option is less recommended.labeshops wrote: ↑Sun Aug 13, 2023 2:09 amJust discovered for some odd reason, opencart (v3.0.3.2) is generating CRAZY long affiliate link codes for my customers. Like peixlImJr5kuyH03bqrtz6iOJ9mwezwbTSeBwhLLjHDZqUOMA0MYqeaiGUStMpqd
I do have 78999 registered customers (though most don't need affiliate codes though of course opencart 3 auto assigns them a code). So I suspect this is why it is long, but...how can I get them as short as I can while keeping them unique??
Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
https://github.com/opencart/opencart/bl ... r.php#L130
Thanks! That seems to have done the trick!ADD Creative wrote: ↑Tue Aug 15, 2023 7:48 amYou could try modifying the line at the link below. Change the token(64) to a smaller number.
https://github.com/opencart/opencart/bl ... r.php#L130
Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
Users browsing this forum: No registered users and 29 guests