Shopping cart deletion and emptying function
1. The function of canceling the product is as follows:
a Tag add link:
if judgement, add one more :
To cancel an item, you only need to unset the corresponding key value
2, clear shopping cart function
Add a tag to send get request:
If add one more to the judgment:
您的购物车目前没有商品!3秒后跳回首页......
3, the effect is shown below