Tue Apr 03 2018
Copied to clipboard! Copy reply
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
// desktop - hide price if same as msrp
$.each($('.oct_2016_product_square.js_oct_2016_product'), function(i, e) {
	var price = $(e).find('.oct_2016_multipay_strikeprice_square span.js_oct_2016_price').text()
    var msrp = $(e).find('.msrpstrong').text().slice(1)
    if (price == msrp) {
      console.log('hide')
      $(e).find('.oct_2016_multipay_strikeprice_square').hide()
    }
})

// mobile - hide price if same as msrp
$.each($('.monthly_mobilebottom.labelcontain'), function(i, e) {
	var price = $(e).find('.mobile_msrp.js_oct_2016_price').text()
    var msrp = $(e).find('.mobile_msrp.js_oct_2016_price + strong').text().slice(1)

    if (msrp == price) {
		 $(e).find('.mobile_msrp.js_oct_2016_price').hide()
    }  
})