Title: PremierDigital's Replies | WordPress.org

---

# PremierDigital

  [  ](https://wordpress.org/support/users/create-28/)

 *   [Profile](https://wordpress.org/support/users/create-28/)
 *   [Topics Started](https://wordpress.org/support/users/create-28/topics/)
 *   [Replies Created](https://wordpress.org/support/users/create-28/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/create-28/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/create-28/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/create-28/engagements/)
 *   [Favorites](https://wordpress.org/support/users/create-28/favorites/)

 Search replies:

## Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[My Favorites] Removing items then page reload](https://wordpress.org/support/topic/removing-items-then-page-reload/)
 *  Thread Starter [PremierDigital](https://wordpress.org/support/users/create-28/)
 * (@create-28)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/removing-items-then-page-reload/#post-15113327)
 * Thats strange, it’s still there when I add that code, anyway i’ve tried things
   a different way now where I dont need the page to reload.
 * Im actually Jquery code to grab the favourite link titles from the page and add
   them to hide field values in your contact form 7 plugin. So the list of favourites
   is populated into the form hidden fields.
 * Thanks for your help though. Not sure why it doesnt update the local storage 
   for me. Instead of reloading page on removal i’ve made a button which opens the
   form and pulls in the updated favourites list into the form hidden fields.
 * Regards,
    Paul
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[My Favorites] Removing items then page reload](https://wordpress.org/support/topic/removing-items-then-page-reload/)
 *  Thread Starter [PremierDigital](https://wordpress.org/support/users/create-28/)
 * (@create-28)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/removing-items-then-page-reload/#post-15110800)
 * I think the reload has to come straight after the data_set storage / local storage
   code so it actually removes it?
 * Regards,
    Paul
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[My Favorites] Removing items then page reload](https://wordpress.org/support/topic/removing-items-then-page-reload/)
 *  Thread Starter [PremierDigital](https://wordpress.org/support/users/create-28/)
 * (@create-28)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/removing-items-then-page-reload/#post-15110789)
 * Hi, its the standard list, so by Default, when you remove an item it sets css
   display none and also removes the item from the users list. So if they refresh
   the page the item is not there.
 * The problem is when i click remove item with this reload function, it hides it
   with css, then reloads the page but the item is still there when it’s reloaded.
   so its not updating the actual users list.
 * I have used the code you sent like this below:
 * However I think its the local storage not registering the item being removed?
 * Regards,
    Paul
 *     ```
       my_promise.done( function() {
             found_posts_count_val = $('.ccc-favorite-post-count').find('.num').text();
             $('#'+ count_post).children('.found_posts').text(found_posts_count_val);
             var list_post_num = $('.'+ list_post).filter(':visible').length;
             $('#'+ count_post).children('.number').text(list_post_num);
       		setTimeout( function() {
       			window.location.reload(); // Add this code.
       		},600);
           });
         }
            /* if( Number( list_post_num ) < 1 ) {
               setTimeout( function() {
                 data_set[CCC.favorite.storage_key()] = localStorage.getItem(CCC.favorite.storage_key()); // ローカルストレージから指定したキーの値を再取得
                 data_set['looplength'] = null;
                 ccc_my_favorite_list_ajax(); // お気に入りの投稿をリスト表示するためのAjax関数を呼び出し
               },600);
             } /*
   
   
           });
         } //endfunction
       ```
   
 * `
    -  This reply was modified 4 years, 5 months ago by [PremierDigital](https://wordpress.org/support/users/create-28/).
    -  This reply was modified 4 years, 5 months ago by [PremierDigital](https://wordpress.org/support/users/create-28/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[My Favorites] Removing items then page reload](https://wordpress.org/support/topic/removing-items-then-page-reload/)
 *  Thread Starter [PremierDigital](https://wordpress.org/support/users/create-28/)
 * (@create-28)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/removing-items-then-page-reload/#post-15110591)
 * Hi, thats worked, but when it reloaded, it didn’t actually remove the item from
   the list, it was still there, would a timeout work or something?
 * Regards,
    Paul
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GDMylist] Can Users Add Details To Their List and Send it To Me?](https://wordpress.org/support/topic/can-users-add-details-to-their-list-and-send-it-to-me/)
 *  [PremierDigital](https://wordpress.org/support/users/create-28/)
 * (@create-28)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/can-users-add-details-to-their-list-and-send-it-to-me/#post-15003487)
 * Hi, no nothing at all. totally stuck. been trying to figure ways to use javascript
   yo copy into the form but can’t. im putting it out to people for custom development
   to see if someone can build this.
 * I will let you know once I have something though
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GDMylist] Can Users Add Details To Their List and Send it To Me?](https://wordpress.org/support/topic/can-users-add-details-to-their-list-and-send-it-to-me/)
 *  [PremierDigital](https://wordpress.org/support/users/create-28/)
 * (@create-28)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/can-users-add-details-to-their-list-and-send-it-to-me/#post-14964384)
 * I’m looking for the same setup as you, I havnt downloaded the plugin yet but 
   with the share to email option (if it lets you collect all the selected posts
   of the wish list) then that button may be changed so when clicked it opens a 
   pop up contact / enquiry form.
 * I am going to try it this week as I’ve been searching for this exact feature 
   for favouriting posts then capturing the info into a form that is then sent. 
   I will let you know how I get on. I don’t want to edit the plug-in directly, 
   so I will attempt to find a workaround solution
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Wallet Credit System] Overdraft minus function?](https://wordpress.org/support/topic/overdraft-minus-function/)
 *  Thread Starter [PremierDigital](https://wordpress.org/support/users/create-28/)
 * (@create-28)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/overdraft-minus-function/#post-6989681)
 * Hi, it doesn’t matter now, I’ve solved it myself, simply by deleting this code
   below, lets users go into minus when placing orders.
 * file is : /user-waller-credit-system/includes/gateway.php
    Delete:
 *  /** check to make sure the user has enough credit to make the purchase */
    if(
   $cart_total>$vw_balance) { wc_add_notice( __(‘**Payment error:**‘, ‘woothemes’).‘
   Insufficient funds. Please purchase more credits or use a different payment method.’,‘
   error’ ); return; }
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Wallet Credit System] Overdraft minus function?](https://wordpress.org/support/topic/overdraft-minus-function/)
 *  Thread Starter [PremierDigital](https://wordpress.org/support/users/create-28/)
 * (@create-28)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/overdraft-minus-function/#post-6989346)
 * Also an added bonus would be simple email notifications of user go’s into minus,
   urging them to top up account.

Viewing 8 replies - 1 through 8 (of 8 total)