Title: Rex AZ's Replies | WordPress.org

---

# Rex AZ

  [  ](https://wordpress.org/support/users/rexyspy/)

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/users/rexyspy/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/rexyspy/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wallet for WooCommerce] How to Check Balance When Add to Cart is Clicked](https://wordpress.org/support/topic/how-to-check-balance-when-add-to-cart-is-clicked/)
 *  Thread Starter [Rex AZ](https://wordpress.org/support/users/rexyspy/)
 * (@rexyspy)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/how-to-check-balance-when-add-to-cart-is-clicked/#post-10828359)
 * Subrata,
 * I am so grateful. It worked quite well as expected. I even added a bit to allow
   the user top up from the notice.
 * Thank you so much. Your plugin and support deserves a 10 star rating. That’s 
   what I will do now.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wallet for WooCommerce] How to Check Balance When Add to Cart is Clicked](https://wordpress.org/support/topic/how-to-check-balance-when-add-to-cart-is-clicked/)
 *  Thread Starter [Rex AZ](https://wordpress.org/support/users/rexyspy/)
 * (@rexyspy)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/how-to-check-balance-when-add-to-cart-is-clicked/#post-10826557)
 * Hey Subrata,
 * You know I’ve been working on this code for sometime now, but no success. I have
   tried several codes and looked for ways around it, but to no avail. This was 
   the closest I could get. This code seemed well to do the job, but am getting 
   errors and my site was breaking…
 *     ```
       /* Check woo-wallet balance upon clicking add to cart. 
       * If balance is insufficient display error message saying insufficient wallet balance, 
       * else proceed to cart or checkout.
       */
       function check_balance_validation ($passed){
       		global &balance= woo_wallet()->wallet->get_wallet_balance($user_id);
       		if (is_user_logged_in()) && (&balance < wc_product_price) {
       		wc_add_notice (__('Your eWallet Balance is not sufficient to make the purchase', 'woocommerce'), 'error');
       		$passed = false;
       	}
       	return $passed;
       }
       add_filter('woocommerce_add_to_cart_validation', 'check_balance_validation');
       ```
   
 * Please, how can you help me get this done. I ‘ll be really grateful.
    Regards.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[OceanWP] How to Add Excerpt to Woocommerce Archive Page](https://wordpress.org/support/topic/how-to-add-excerpt-to-woocommerce-archive-page/)
 *  Thread Starter [Rex AZ](https://wordpress.org/support/users/rexyspy/)
 * (@rexyspy)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/how-to-add-excerpt-to-woocommerce-archive-page/#post-10821719)
 * Perfect as usual Amit.
 * I put it under the product image, so I had the code as shown below:
 *     ```
       function display_desc_in_product_archives() {
          the_excerpt();
       }
       add_action( 'ocean_after_archive_product_image', 'display_desc_in_product_archives' );
       ```
   
 * Thank you Amit.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[OceanWP] How to Add Excerpt to Woocommerce Archive Page](https://wordpress.org/support/topic/how-to-add-excerpt-to-woocommerce-archive-page/)
 *  Thread Starter [Rex AZ](https://wordpress.org/support/users/rexyspy/)
 * (@rexyspy)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/how-to-add-excerpt-to-woocommerce-archive-page/#post-10820770)
 * Thanks likipadhy. But I tried it, it didn’t work.
    Amit, here is my site link
   [http://iauctionx.com](http://iauctionx.com).
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[OceanWP] Top Menu Bar Styling](https://wordpress.org/support/topic/top-menu-bar-styling/)
 *  Thread Starter [Rex AZ](https://wordpress.org/support/users/rexyspy/)
 * (@rexyspy)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/top-menu-bar-styling/#post-10818654)
 * It sure worked Amit. Even though it required so much work, but it was worth it.
 * Thanks again Amit.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wallet for WooCommerce] How to Check Balance When Add to Cart is Clicked](https://wordpress.org/support/topic/how-to-check-balance-when-add-to-cart-is-clicked/)
 *  Thread Starter [Rex AZ](https://wordpress.org/support/users/rexyspy/)
 * (@rexyspy)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/how-to-check-balance-when-add-to-cart-is-clicked/#post-10804107)
 * Thanks,
 * Am not good with coding, could you help with the code snippet to achieve this
   please?
 * I’d really appreciate it.
 * Thank you Subrata.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[OceanWP] Woocommerce Single Product Page Issues](https://wordpress.org/support/topic/woocommerce-single-product-page-issues/)
 *  Thread Starter [Rex AZ](https://wordpress.org/support/users/rexyspy/)
 * (@rexyspy)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/woocommerce-single-product-page-issues/#post-10798791)
 * Here is the link to the site with the textbox issue:
 * [https://app.iauctionx.com/test-page/?wallet_action=add](https://app.iauctionx.com/test-page/?wallet_action=add)
 * I’d appreciate it if you can help increasing the size of the textbox.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[OceanWP] Woocommerce Single Product Page Issues](https://wordpress.org/support/topic/woocommerce-single-product-page-issues/)
 *  Thread Starter [Rex AZ](https://wordpress.org/support/users/rexyspy/)
 * (@rexyspy)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/woocommerce-single-product-page-issues/#post-10798036)
 * Hello Amit,
 * I have actually solved issues 1-3. I discovered that I had a woocommerce template
   that I was overwriting. It actually lied in the following paths
    …/oceanWp/woocommerce/
   single-product/tab (deleted the tab folder) …/oceanWp/woocommerce/loop (deleted
   loop-start.php & loop-end.php).
 * But for the 4th issue, how can one literally increase the field size in the theme?
   What CSS snippet can I use to increase the textbox size assuming the textbox 
   element has
 * name: woo_wallet_balance_to_add
    class: woo-wallet-balance-to-add id: woo_wallet_balance_to_add
 * I await your response.
    Thanks.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[OceanWP] Product images do not display unless refreshing page](https://wordpress.org/support/topic/product-images-do-not-display-unless-refreshing-page/)
 *  [Rex AZ](https://wordpress.org/support/users/rexyspy/)
 * (@rexyspy)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/product-images-do-not-display-unless-refreshing-page/#post-10790702)
 * [@kaorou](https://wordpress.org/support/users/kaorou/), how did you solve this
   problem?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[OceanWP] Redirect to My Account on Popup Login](https://wordpress.org/support/topic/redirect-to-my-account-on-popup-login/)
 *  Thread Starter [Rex AZ](https://wordpress.org/support/users/rexyspy/)
 * (@rexyspy)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/redirect-to-my-account-on-popup-login/#post-10789823)
 * Well, I have added a plugin to help solve the problem. I will update when am 
   ready. Thanks for your effort Amit.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[OceanWP] Some very important issues](https://wordpress.org/support/topic/some-very-important-issues/)
 *  Thread Starter [Rex AZ](https://wordpress.org/support/users/rexyspy/)
 * (@rexyspy)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/some-very-important-issues/#post-10782195)
 * Hey Nick,
 * Thank you for your response.
 * I was able to get that sorted out, except for issue #4. But that’s fine, I’ll
   see to it. I wanted to ask you something else. Maybe I should just close this
   topic and begin a new one.
 * Thanks again.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wallet for WooCommerce] Amount Field Un-noticeable.](https://wordpress.org/support/topic/amount-field-un-noticeable/)
 *  Thread Starter [Rex AZ](https://wordpress.org/support/users/rexyspy/)
 * (@rexyspy)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/amount-field-un-noticeable/#post-10760146)
 * Alright… I will do that.
    Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wallet for WooCommerce] Amount Field Un-noticeable.](https://wordpress.org/support/topic/amount-field-un-noticeable/)
 *  Thread Starter [Rex AZ](https://wordpress.org/support/users/rexyspy/)
 * (@rexyspy)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/amount-field-un-noticeable/#post-10755700)
 * I may not be able to show you the form since its under logged-in user. But try
   creating an account on [http://bidapp.rf.gd/dashboard](http://bidapp.rf.gd/dashboard)
   then you will see the wallet field afterwards.
 * I tried this code in my theme css editor, it did not work;
 *     ```
       #woo_wallet_balance_to_add {
       	font-size: 18px;
           	width: 200px;
       }
       ```
   
 * I also used the class woo-wallet-balance-to-add still it didn’t work.
 * I am using OceanWp theme. Please kindly assist.
    Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wallet for WooCommerce] Add Wallet top-up field to registration page](https://wordpress.org/support/topic/add-wallet-top-up-field-to-registration-page/)
 *  Thread Starter [Rex AZ](https://wordpress.org/support/users/rexyspy/)
 * (@rexyspy)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/add-wallet-top-up-field-to-registration-page/#post-10721445)
 * Alright, I will consider doing so.
 * Regards
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wallet for WooCommerce] Can not add another product while cart contains with wallet rechargeable product](https://wordpress.org/support/topic/can-not-add-another-product-while-cart-contains-with-wallet-rechargeable-product/)
 *  Thread Starter [Rex AZ](https://wordpress.org/support/users/rexyspy/)
 * (@rexyspy)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/can-not-add-another-product-while-cart-contains-with-wallet-rechargeable-product/#post-10720975)
 * Thanks for your response anyway…
 * I decided to allow one product in cart at a time. Which means, if there’s any
   product/item in the cart, it will be automatically over-written when another 
   is added until the user checks out by completing his order.
 * See the code I used below to allow only one order at a time until checkout.
 *     ```
       // Only allow 1 item in cart before placing order.
       add_filter( 'woocommerce_add_to_cart_validation', 'rexy_custom_add_to_cart_before' );
   
       function rexy_custom_add_to_cart_before( $cart_item_data ) {
   
           global $woocommerce;
           $woocommerce->cart->empty_cart();
   
           // Do nothing with the data and return
           return true;
       }
       ```
   
 * I hope this helps anyone in such situation. So, I consider this issue closed 
   then.
    Thank you again.

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/users/rexyspy/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/rexyspy/replies/page/2/?output_format=md)