Rex AZ
Forum Replies Created
-
Forum: Plugins
In reply to: [Wallet for WooCommerce] How to Check Balance When Add to Cart is ClickedSubrata,
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
In reply to: [Wallet for WooCommerce] How to Check Balance When Add to Cart is ClickedHey 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
In reply to: [OceanWP] How to Add Excerpt to Woocommerce Archive PagePerfect 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
In reply to: [OceanWP] How to Add Excerpt to Woocommerce Archive PageThanks likipadhy. But I tried it, it didn’t work.
Amit, here is my site link https://iauctionx.com.Forum: Themes and Templates
In reply to: [OceanWP] Top Menu Bar StylingIt sure worked Amit. Even though it required so much work, but it was worth it.
Thanks again Amit.
Forum: Plugins
In reply to: [Wallet for WooCommerce] How to Check Balance When Add to Cart is ClickedThanks,
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
In reply to: [OceanWP] Woocommerce Single Product Page IssuesHere is the link to the site with the textbox issue:
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
In reply to: [OceanWP] Woocommerce Single Product Page IssuesHello 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_addI await your response.
Thanks.Forum: Themes and Templates
In reply to: [OceanWP] Product images do not display unless refreshing page@kaorou, how did you solve this problem?
Forum: Themes and Templates
In reply to: [OceanWP] Redirect to My Account on Popup LoginWell, 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
In reply to: [OceanWP] Some very important issuesHey 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
In reply to: [Wallet for WooCommerce] Amount Field Un-noticeable.Alright… I will do that.
Thanks.Forum: Plugins
In reply to: [Wallet for WooCommerce] Amount Field Un-noticeable.I may not be able to show you the form since its under logged-in user. But try creating an account on https://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
In reply to: [Wallet for WooCommerce] Add Wallet top-up field to registration pageAlright, I will consider doing so.
Regards
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.