I have added a removal link to the checkout for each product. This part works fine. Problem is; upon removal, the page is “scrolled to top”. I would like to change this by adding AJAX to the removal process. I’ve tried, but without success. In other words; when clicking on the removal link, the refresh should happen in the background
Tag: wordpress
Update ACF User Radio Button After Gravity Form Submit
having a issue with getting a ACF field associated with a user profile to update after a gravity form submission. As it stands, this logic currently does nothing :(. So i’m hoping someone can help out. Here is waht I have so far: So it should be pretty straight forward I would image, but it just seems to do nothing.
How to append meta data to a third party coupon, dynamically?
I need to add a meta_data field to a coupon of a third party plugin, dynamically when it’s loaded. WooCommerce uses the filter woocommerce_get_shop_coupon_data so another plugin can react to it. In class-wc-cart.php the coupon is returned like this: $code is the coupon code as string. So in class-wc-coupon.php (WC_Coupon class) it will apply the filter woocommerce_get_shop_coupon_data and set the
Show/hide custom field based on a select field with validation in WooCommerce checkout
I have added a custom select field and a custom text field on the checkout page in WooCommerce using the code below. I want to hide this text field by default and it should only be visible when the “Referral Program” option is selected from the select field Here is my code, which works. Except that the textfield is always
WP_Query search by meta_key and category_name
I see how to do multiple meta_keys or multiple category_names, but how do I combine them? $args = array( ‘post_type’ => ‘quotes’, ‘meta_key’ => ‘newsletter’, ‘…
wpdb query gives back a wrong result
I’ve written some code in my PHP snippet which is on my WordPress page and the wpdb query gives me always a wrong result. In WordPress In SQL phpmyadmin displayed 3 which is the correct result for that query What did I do wrong? May you help me in someway? Answer The reason why you’re getting 1 as a result
Multiple Toggles In A Post Loop
I’ve created a simple toggle to reveal and close a food menu. However as this is in a Wordpress Loop only the first one works. I’m guessing because as the page builds itself out there then become multiple ID’s. However I can’t find anyway to tweak the JQuery / JS to not use ID’s. Any Ideas?? The foodMenuName just swaps
WooCommerce cart items price suffix for specific product category
I need to add a suffix text to the price of a woocommerce product from a specific category while on WooCommerce cart. Here is my code: The problem is it only works on simple products. Doesn’t seem to affect the prices of variable products (I tested on 3 different sites). Any idea what I’m missing? Answer To make it work
Change “add to cart” button text for products that have “no price” and “out of stock”
I want to change the “add to cart” text button for products that meet the following conditions: empty price out of stock The intention is to change the text to “Not available right now” Here is an example image to clarify my question This is the code that I use. But I can’t make it work. Any ideas of where
Is it bad practice to customize existing Plugins in WordPress? [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year. Improve this question I currently have a client that wants a lot of custom work at a fairly budget price. That’s why its not possible