app/models/plugins/ecommerce/shipping_method.rb in camaleon_ecommerce-1.2.1 vs app/models/plugins/ecommerce/shipping_method.rb in camaleon_ecommerce-2.0.0
- old
+ new
@@ -1,9 +1,12 @@
class Plugins::Ecommerce::ShippingMethod < CamaleonCms::TermTaxonomy
default_scope { where(taxonomy: :ecommerce_shipping_method) }
belongs_to :site, :class_name => "CamaleonCms::Site", foreign_key: :parent_id
-
scope :actives, -> {where(status: '1')}
+
+ def skip_slug_validation?
+ true
+ end
def get_price_from_weight(weight = 0)
price_total = 0
prices = get_meta("prices")
if prices.present?