Ren Ventura
Forum Replies Created
-
Forum: Plugins
In reply to: [Disable Gravity Forms Fields] Field is editable after submission with errorsNext time I update the plugin, I’ll include something to prevent the attributes from being stripped when using AJAX.
@nicole2292: Based on what you’re describing with the validation issue, it sounds like you should be using the readonly attribute, not the disabled.
Forum: Plugins
In reply to: [Disable Gravity Forms Fields] Not working?Hello,
First, there aren’t any error messages because there are no errors.
Second, you can only apply the disabled attribute to a dropdown, not the readonly.
Third, the jQuery that the plugin uses searches for
<input>
tags that are child elements of those classes (disabled and readonly). Since I’ve never known dropdowns to be disabled, I didn’t think to add that kind of support. However, I can see when doing so might be useful. I’ll likely add support for it in an eventual update. In the meantime, you can add support for the disabled attribute on dropdowns by adding the following to your theme:jQuery(document).ready(function($) { $(".disabled select").attr('disabled','disabled'); });
Forum: Plugins
In reply to: [WooCommerce Add to Cart Custom Redirect] ShortcodesThat’s weird. I tested the WooCommerce shortcodes on a local site using the Storefront theme, and with AJAX add-to-cart disabled, and it redirects for me. I tested both the [product] and [products] shortcodes. For example:
[product id=”96″]
[products ids=”90, 93, 96, 99″]In my case, I set product ID 96 to redirect to Google, and the redirect worked out just fine.
Make sure you’ve disabled the AJAX feature for when products are added to the cart.
Forum: Plugins
In reply to: [WooCommerce Add to Cart Custom Redirect] ShortcodesThere is not, but you can use the WooCommerce shortcodes.
Forum: Plugins
In reply to: [WP Delete User Accounts] Where is the delete link located?You have to place it manually on the front end, or use it via the edit profile page in the admin. Also, the delete button is not available for administrators because they should not be able to delete their own accounts (helps to avoid losing admin access). Therefore, if you’re logged in as an administrator, you won’t see it.
Forum: Plugins
In reply to: [WooCommerce Add to Cart Custom Redirect] Redirect to login and then to cartHey! That would require some custom code. This plugin, alone, is not built to provide that functionality. One way you could do it is by setting some custom $_POST/$_GET parameters, then working out a couple redirects based on those parameters. You could use the code in this plugin to get you started.
Any suggestions on this?
Forum: Plugins
In reply to: [WooCommerce Add to Cart Custom Redirect] force redirect to current pageHi, Aaron. Maybe I’m not understanding but not setting the redirect option will result in it not being redirected. Instead, the default WooCommerce functionality will reload the product page with a notice that the product was added to the cart. You can use the same WooCommerce hook to execute your own code if you need to add something custom at the same time.
Hopefully this helps. If not, perhaps I can help with a little more explanation.
Forum: Plugins
In reply to: [WooCommerce Add to Cart Custom Redirect] Append SKUHello, Iskander. I guess I’m not totally understanding what you’re trying to do. Can you explain what your goal is and how you’re trying to get there? That might give me some helpful context so I can better help.
Forum: Plugins
In reply to: [WooCommerce Add to Cart Custom Redirect] WordPress 4.2.2Can you send a link?
Forum: Plugins
In reply to: [Disable Gravity Forms Fields] Disable fields Javascript loaded before jQueryHi celios,
Yes, this is the correct way to do it. I pushed out an update to properly wrap the dependency in an array.
Thanks!
Forum: Plugins
In reply to: [WooCommerce Add to Cart Custom Redirect] WordPress 4.2.2Hello. Without a copy/paste of the error, I can’t be of much help. Also, I tested the functionality with WP 4.2.2 and WC 2.3.8 and am not receiving any errors. If you’ve disabled AJAX, you shouldn’t be getting an AJAX error. However, please post what you’re seeing and I’ll try to help you out.
Forum: Plugins
In reply to: [Disable Gravity Forms Fields] Field is editable after submission with errorsFor some reason, this is occurring only when the form is submitted with errors while using AJAX. The disabled attribute is being stripped when the form is submitted. I’ll have to do some research to find out why this would happen. However, if you use the form without AJAX, the attribute will be preserved.
Forum: Plugins
In reply to: [WooCommerce Add to Cart Custom Redirect] additional featureThis should be relatively simple to achieve with a script to automatically update the field. Since it’s such a specific requirement, adding it to the general plugin wouldn’t make sense. If you need help with the script, you can get in touch me with me at https://www.engagewp.com/.
Forum: Plugins
In reply to: [WooCommerce Add to Cart Custom Redirect] additional featureIf I’m understanding correctly, you have a separate site with other products and when Product 123 on Site A is added to the cart, you want the user redirected to Product 123 on Site B. Is this correct? Assuming it is for now, what’s the purpose of having a user add something to the cart and redirecting them off of that site? Also, with this plugin, you can redirect any product to any URL so what do you need to do that it doesn’t (i.e. automation)? I guess I just need some more clarification.
If my assumption isn’t correct, let me know and provide some additional details.