thoseitguys
Forum Replies Created
-
@rosenguyen Thank you so much I really appreciate it.
@rosenguyen Thank you for responding. alright could you help with my other request as the other support person stopped replying.
I would like to keep the sidebar active ALWAYS. Not have to move my mouse over it.
Is this possible?
I was given this code by your other support agent`.woo-multi-currency.wmc-sidebar.wmc-right.wmc-currency-flag{right:0 !important;}
.woo-multi-currency.wmc-sidebar .wmc-title{display:block !important; visibility: visible !important;}but it didnt work and they havent replied to me.
- This reply was modified 5 years, 6 months ago by thoseitguys.
@mivtt any news please?
page I need help with:
https://journeysofawakening.com/shop/
I tried your custom CSS in the design section but it didnt work
@mivtt hi there sorry for the late response.
That doesnt seem to work? it shows abit of the sidebar but not the whole thing until I mouse over it.
Hi @mivtt that is exactly it!
Is there some code I need to use?
- This reply was modified 5 years, 8 months ago by thoseitguys.
Forum: Plugins
In reply to: [WooCommerce] Restrict Access with Post Codeoh @crslz one last thing if you could. I dont know if you saw my message earlier.
Is there a way to modify this code you helped me with to just hide those Category IDs using the postal code?
Forum: Plugins
In reply to: [WooCommerce] Restrict Access with Post CodeForum: Plugins
In reply to: [WooCommerce] Restrict Access with Post Code@crslz Thank you for the help i mistyped one line of your code. Its all working sir!
Forum: Plugins
In reply to: [WooCommerce] Restrict Access with Post Code@crslz il try figure out how to make them hidden myself or show a pop up message stating sorry you cannot access that category 🙂
Forum: Plugins
In reply to: [WooCommerce] Restrict Access with Post CodeThank you so much for the help. Is there anywhere I can +rep you or something @crslz
Forum: Plugins
In reply to: [WooCommerce] Restrict Access with Post CodeNevermind @crslz it was my fault.
Forum: Plugins
In reply to: [WooCommerce] Restrict Access with Post Codesorry about that: @crslz
It says There has been a critical error on your website.
Forum: Plugins
In reply to: [WooCommerce] Restrict Access with Post CodeThank you so much. @crslz
This also gives my site a wordpress error?
Forum: Plugins
In reply to: [WooCommerce] Restrict Access with Post CodeThank you @crslz
so something like this?
function my_restrict_access() {
if ( is_product_category() ) {
$category = get_queried_object();if ( $category ) {
$category_id = $category->term_id;if($allowed_category_id = array(3076, 3179); {
if ( !is_user_logged_in() ) {
wp_redirect( ‘/’ );
exit;
} else {
global $woocommerce;
$customer = new WC_Customer();
$customer_postcode = $woocommerce->customer->get_billing_postcode();// uncomment line below for debug purposes, this will show you the postcode on the current page
//echo $customer_postcode;$allowed_post_code = array(3610, 3626, 3650);
if ( !in_array($customer_postcode, $allowed_post_code) ) {
wp_redirect( ‘/’ );
exit;
}
}
}
}
}
}
add_action( ‘template_redirect’, ‘my_restrict_access’);I tried it and it gave my site an error.
Forum: Plugins
In reply to: [WooCommerce] Restrict Access with Post CodeThank you @crslz that works perfectly!
am I right that if i write the code like this:
if( $category_id == 3076,2931,1231 )
it will block all those categories?
- This reply was modified 6 years, 4 months ago by thoseitguys.