donahmar
Forum Replies Created
-
Hi there,
We learned that WP Engine had our IPs block for some reason. This is resolved. Thanks!I am using WP Optimize for caching. It is currently set to NOT serve cached pages to logged in users. Should I change this setting?
We do not have any other membership/access control plugins installed.
Here is a list of plugins active on this site:
Advanced Custom Fields
Challan Pro
Checkout Field Editor for WooCommerce
Contact Form 7
Easy Age Verifier
Min Max Quantity & Step Control for WooCommerce
Popup Maker
Restrict User Access
Search By SKU – for Woocommerce
WooCommerce
WooCommerce Menu Cart
WP All Import – WooCommerce Add-On Pro
WP All Import Pro
WP Store Locator
WP-Optimize – Clean, Compress, Cache
WPvivid Backup Plugin
Yoast SEOUpdate: This problem is still occurring. I have not switched between accounts, but for the first time my admin account experienced this redirect issue. When I view incognito or disable caching in dev tools — the problem goes away. How can I fix the caching conflicts with this plugin?
Hi! Thanks for getting back to me.
I currently have this code in place to SHOW the add to cart button on all products EXCEPT products in the “out-of-state” category.function hideAddtoCartforOutofState () { if (!has_term('out-of-state', 'product_tag')) { woocommerce_template_loop_add_to_cart(); } } add_action('woocommerce_after_shop_loop_item', 'hideAddtoCartforOutofState', 20);Now, I want to make it SHOW the add to cart button on all products EXCEPT products in the “out-of-state” category AND if the user is in the “out-of-state” access level. Currently, it still hides the button for users outside of this access level, which is not what I want. How would I incorporate the code above to make that happen?
I solved it with the following:
//in content area
[setIcon({productsupportstatus[1]})] //in Function Editor <?php function setIcon($productsupportstatus){ $productsupportstatus = str_replace('Not Supported', '<span class="blue-icon"></span> Contact Us',$productsupportstatus); $productsupportstatus = str_replace('Supported', '<span class="green-icon"></span> Supported',$productsupportstatus); return $productsupportstatus;} ?>productsupportstatusis a column in the file I am importing — not a field or plugin.
I am not importing theproductsupportstatusas HTML, I am just trying to append a span to the values so it displays an icon.However, it sounds like the Function Editor is how I will get it done. Now I have to learn PHP lol. Thanks @tnolte !