Add personal info to delivery address and order #6
Reference in New Issue
Block a user
Delete Branch "add-personal-info-to-delivery-address-and-order"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added fields to enter first name, last name and e-mail for delivery part of order, and also, stored those information to tables in db (delivery_addresses and orders)
To prepare clean environment, it's best to execute : sudo docker system prune, to remove all images, containers, networks, ... as I noticed, no-cache build option still doesn't recreate database container
Smoke test :
as usual, change php.dockerfile (change REACT_APP_DEV_URL to 'http://localhost:8000/api-wiaas' and WIAAS_URL to 'http://localhost:8000')
execute from root of the project : sudo docker-compose build && sudo docker-compose up
Go to the market and add item to the cart. Go to the cart. Try to edit existing delivery address and continue with the order. In order summary there should be first name, last name and delivery mail in delivery address section. Finish with the order. Try same, but create new delivery address.
Finally, open mysql container by running : sudo docker exec -it legacywiaas_db_1 /bin/bash (maybe wiaaslegacy_db_1)
execute : mysql -u root -p (password is root)
use ricoh_dash;
select deliveryFirstName, deliveryLastName, deliveryMail from orders;
there should be two normal rows with non-null data
to check those data in delivery_addresses table, execute :
select firstName, lastName, deliveryMail from delivery_addresses;
also, there should be two normal rows with non-null data
merged
mentioned in commit
a82d13ba1f