blob: 671dcbebf4781d9b05d43f3865dbd3685dbe4912 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
module SolidusSubscriptions
module Spree
module Variant
module VariantPrettyName
def pretty_name
name = product.name
name += " - #{options_text}" if options_text.present?
name
end
end
end
end
end
Spree::Variant.prepend(SolidusSubscriptions::Spree::Variant::VariantPrettyName)
|