We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in app/helpers/spree/frontend_helper.rb line 11-31
def logo(image_path = nil, options = {}) logo_attachment = if defined?(Spree::StoreLogo) && current_store.logo.is_a?(Spree::StoreLogo) current_store.logo.attachment # Spree v5 else current_store.logo # Spree 4.x end image_path ||= if logo_attachment&.attached? && logo_attachment&.variable? main_app.cdn_image_url(logo_attachment.variant(resize_to_limit: [244, 104])) elsif logo_attachment&.attached? && logo_attachment&.image? main_app.cdn_image_url(logo_attachment) else asset_path('logo/spree_50.png') end path = spree.respond_to?(:root_path) ? spree.root_path : main_app.root_path link_to path, 'aria-label': current_store.name, method: options[:method] do image_tag image_path, alt: current_store.name, title: current_store.name end end
Change blow this line code:
''' main_app.cdn_image_url(logo_attachment.variant(resize_to_limit: [244, 104]) '''
Rails 7.1.3 it's works.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
in app/helpers/spree/frontend_helper.rb line 11-31
Change blow this line code:
'''
main_app.cdn_image_url(logo_attachment.variant(resize_to_limit: [244, 104])
'''
Rails 7.1.3 it's works.
The text was updated successfully, but these errors were encountered: