I need a simple addition/modifications to a user registration in an exiting PrestShop website.
I need users to be able to register a product as they enter a product code that is on the product box (these preexisting product codes are already in a table in the database) that the site will match with existing set of product codes and then issue them a new unique code which they will keep to prove they have registered the product for the purpose of a Guarantee.
This will allow the customers to use the combination of both codes to go to a retail location and get a part replaced or whatever they need under the product guarantee. A customer should be able to register more than one product and they should be issued a separate unique code for each registration.
This should be exposed and viewable/editable/manageable in the admin section of the site where admin can log in and see both codes for each registration under that customer's profile. Customer should be able to register for a product guarantee even if they have not made a purchase on the website as they may have purchased the item at a retail store ( Just like they can simply register currently without placing an order ) To keep it clean this should be in a new db table which will hold the user id the name of the product and both codes for each registration (the pre-entered codes and the newly generated one). Both codes are needed so that fraudulent entries could be avoided for users trying to use someone ease's guarantee for replacement of prats and products.
You can use the existing user registration form and simply add the additional info fields to a user's profile or you can create a new form one. It is up to you as long as the above requirements are met. Keep in mind that a user should be able to make a purchase/register without entering a product code to register for a guarantee if they wish to do so. this guarantee is optional and is offered to customers that bought products online or at a retail store location.