Editor - More coupon setting

This is a modal that opens with the function showOfferSetting() in the view theme/editor/extensions.html to manage the details of an offer or coupon and allow you to update your data

Main Models

-curCoupon

  • curCoupon.rate_type
  • curCoupon.rate
  • curCoupon.minimum
  • curCoupon.limit
  • curCoupon.start
  • curCoupon.end

Utility Functions

  • hideOfferSetting()
  • updateOffer(offer)
  • addOffer(offer)

Example of base theme

578578
  1. curCoupon.rate_type
  2. curCoupon.rate
  3. curCoupon.minimun
  4. curCoupon.limit
  5. curCoupon.start
  6. curCoupon.end

📘

NOTE: If something changes here, activate the function updateOffer(curOffer)