cmsimple-xh / xhshop

A simple shop for CMSimple_XH
GNU General Public License v3.0
4 stars 3 forks source link

Fix #217: variant bug when page has several cartButtons #219

Closed cmb69 closed 3 years ago

cmb69 commented 4 years ago

We have to properly reset the view params, so that we do not accidentially pick up params from an earlier rendering. Unfortunately, we are using some dynamic properties, what makes that slightly harder and more brittle than necessary.

We also have to make sure that there is only ever a single element with a certain ID. Since there is no need to have an ID for the cart buttons, we change that to a class. This is a BC break, though, due to customizations.