jQuery(document).ready(function() { $('#use_different_addresses').prop('checked', true); $('#fc_use_different_address').hide(); FC.checkout.displayShippingAddress = $("#fc_address_shipping_container").show(); }
FC.checkout.requireShippingAddress()
Could you let us know what version you're working with please? The approach is a little different depending what your version is.
version 1.0. My thought is to have javascript change the value of the checkbox to display the shipping address. Is that the right direction?
Probably not the prettiest code, but it seems to work.
Still open to better solutions.
That would work - but we actually have a little-known built in function to achieve it too:
Is there a place where all these jquery FC codes are referenced. I couldn't find anything.
Unfortunately not. That function was a bit of an undocumented goodie. We're working on improving our documentation moving forward to make that better.
FC.checkout.requireShippingAddress() is perfect as it also has the copy billing address functionality.
Thanks!