glossier / solidus_retail

Solidus Extension to Support Retail Operations
BSD 3-Clause "New" or "Revised" License
8 stars 4 forks source link

Override the default_image from the product exporter PR #6

Closed thisiscab closed 7 years ago

thisiscab commented 8 years ago

By default, we were taking the first image to upload to Shopify. Here is the code referencing that case: https://github.com/glossier/solidus_retail/blob/ad24899403f39b0973e02494f254965ba3734692/app/models/variant_decorator.rb#L4

After a conversation with the client, they expect us to take the first image that has the valuelist for the property ui_hook.

We'll have to override the default behavior on Glossier to include the behavior they want.

thisiscab commented 7 years ago

This has been done here: https://github.com/glossier/glossier-v2/pull/1166/commits/c848792fb329f08fc66c50dc380adf7f7e25d76d