I’m developing an e-commerce website at the moment. Every page on the website will contain a mini-basket on the right hand side. There are many ways the user can trigger its contents to change either via interacting with it directly (updating quantity, removing item etc) or indirectly by adding a new item to the basket. Pretty standardised behaviour.
Alternatively, I thought about putting the mini-basket in an iframe, and simply reloading its content as soon as it’s been interacted with. This would result in the code duplication not being an issue, but I’m pretty sure this isn’t the most practical solution either.
Any help or guidance is much appreciated.