View Single Post
  #7  
Old 05-24-2019, 02:06 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,964
 

Default Re: altered carts OnSale mod for php 7+

jQuery was updated in 4.7.11 and I had to update a section of Bill's code in his Cash Rewards. You may need to check his code for any thing deprecated.

For example Bill used .live but it is now deprecated and I had to change as shown below.
From:
Code:
// Cash Rewards :: www.alteredcart.com // $('.unsetCashRewards').live('click', this._unsetRewards); $('.applyRewardButton').live('click', this._applyRewards); // Cash Rewards :: www.alteredcart.com //
To:
Code:
// Cash Rewards :: www.alteredcart.com // $(document).on('click','.unsetCashRewards',this._unsetRewards); $(document).on('click','.applyRewardButton',this._applyRewards); // Cash Rewards :: www.alteredcart.com //

I didn't know initially that .live was the issue. I found by a process of elimination (the long and painful method)

This page showed me how to fix the issue. http://api.jquery.com/live/

Hopefully you won't have any jQuery issues to worry about. Good luck!

Paul
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote