Change $(document).ready to Spree.ready - to save compatibility with turbolinks
Change content_for_head (javascript operations) to content_for_body_javascript - turbolinks inject only head title and body.
"add_flexi_variants_javascript_body_yield" is override for store javascript into body becouse turbolinks inject only body without head content
Change $(document).ready to Spree.ready - to save compatibility with turbolinks
Change content_for_head (javascript operations) to content_for_body_javascript - turbolinks inject only head title and body. "add_flexi_variants_javascript_body_yield" is override for store javascript into body becouse turbolinks inject only body without head content