app/controllers/plugins/ecommerce/admin/prices_controller.rb in camaleon_ecommerce-1.2 vs app/controllers/plugins/ecommerce/admin/prices_controller.rb in camaleon_ecommerce-1.2.1

- old
+ new

@@ -1,25 +1,22 @@ class Plugins::Ecommerce::Admin::PricesController < Plugins::Ecommerce::AdminController before_action :set_shipping_method def index - add_breadcrumb("#{t('plugin.ecommerce.product.price')}") end def new @price = {} - add_breadcrumb("#{t('plugin.ecommerce.product.price')}", admin_plugins_ecommerce_shipping_method_prices_path( params[:shipping_method_id] )) - add_breadcrumb("#{t('plugin.ecommerce.new')}") + add_breadcrumb("#{t('plugins.ecommerce.new')}") render 'form' end def show end def edit @price = @prices[params[:id].to_sym] || {} - add_breadcrumb("#{t('plugin.ecommerce.product.price')}", admin_plugins_ecommerce_shipping_method_prices_path( params[:shipping_method_id] )) add_breadcrumb("#{t('camaleon_cms.admin.button.edit')}") render 'form' end def create @@ -51,12 +48,12 @@ private def set_shipping_method @shipping_method = current_site.shipping_methods.find(params[:shipping_method_id]) - add_breadcrumb(t("plugin.ecommerce.shipping_methods")) + add_breadcrumb(t("plugins.ecommerce.shipping_methods")) add_breadcrumb(@shipping_method.name) - add_breadcrumb(t("plugin.ecommerce.shipping_prices")) + add_breadcrumb(t("plugins.ecommerce.shipping_prices"), admin_plugins_ecommerce_shipping_method_prices_path(params[:shipping_method_id])) @prices = @shipping_method.get_meta("prices", {}) end end