kathyisawesome / wc-mnm-mobile-styles

wc-mnm-mobile-styles
GNU General Public License v3.0
2 stars 1 forks source link

Compatibility with Grouped Mix and Match #6

Closed helgatheviking closed 2 years ago

helgatheviking commented 3 years ago

No footer loads/displays when the specific mnm option is selected.

helgatheviking commented 2 years ago

Additional info:

  1. The footer template is loaded here: https://github.com/kathyisawesome/wc-mnm-mobile-styles/blob/master/wc-mnm-mobile-styles.php#L56 which is therefore NOT loaded on the grouped selection.
  2. the footer template relies on a backend $container variable: https://github.com/kathyisawesome/wc-mnm-mobile-styles/blob/master/templates/single-product/mnm/mobile-footer.php#L29 that is also not available on grouped selection

Suggested solutions:

  1. Load the footer all the time and load the contents via ajax on grouped selection? Probably needs a custom trigger in grouped MNM.
  2. Load the footer all the time, hide/show parts based on grouped selection?
  3. Needs to keep working when in single MNM mode.