Gem @White Rabit
Forum Replies Created
-
Solved turn off default colour and default font in the settings menu
Forum: Plugins
In reply to: [WooCommerce] Complex Shipping IssueHi @seank123
How can I change it to do this?
If no shipping method available show message 1
If another product from another shipping class is added + a gas bottle that can’t be shipped show message 2. Could this be done via shipping classes for example
If shipping class Gas Bottle + Gas Equipment and Gas Bottle has no shipping method show message 2I have changed the messages so it shows what I need.
// Change the WooCommerce ‘No shipping methods available’ message
add_filter( ‘woocommerce_cart_no_shipping_available_html’, ‘mh_no_shipping_message’, 10, 2 );
add_filter( ‘woocommerce_no_shipping_available_html’, ‘mh_no_shipping_message’, 10, 2 );function mh_no_shipping_message() {
$message = ‘This gas bottle can NOT be shipped to your address. Please call Phone Number to discuss delivery options. Thank you.’;
$message2 = ‘Unfortunatly this gas bottle can NOT be shipped to your address. We can ship the other products. Please either remove the gas bottle and proceed to checkout or call us on Phone Number to discuss delivery options. Thank you.’;
$pcode = WC()->customer->get_shipping_postcode();
if (mb_substr($pcode, 0, 2) == ‘GY’ || mb_substr($pcode, 0, 2) == ‘JE’) {
return ‘<p>’ . __( $message2, ‘woocommerce’ ) . ‘</p>’;
}else{
return ‘<p>’ . __( $message, ‘woocommerce’ ) . ‘</p>’;
}
}Forum: Plugins
In reply to: [WooCommerce] Complex Shipping IssueHi @seank123
Thank you so much for this. It is a step in the correct direction. I will try and tweak it to do as I need.
Thanks
Gem
Forum: Plugins
In reply to: [Map Multi Marker] For development purposes onlyI have the same issue!
Update to .htaccess
# Wordfence WAF
<Files “.user.ini”>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files># END Wordfence WAF
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /PB/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /PB/index.php [L]
</IfModule># END WordPress
# BEGIN WP-HUMMINGBIRD-GZIP
<IfModule mod_deflate.c>
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding “gzip,deflate” env=HAVE_Accept-Encoding
</IfModule>
</IfModule>
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE “application/atom+xml” \
“application/javascript” \
“application/json” \
“application/ld+json” \
“application/manifest+json” \
“application/rdf+xml” \
“application/rss+xml” \
“application/schema+json” \
“application/vnd.geo+json” \
“application/vnd.ms-fontobject” \
“application/x-font-ttf” \
“application/x-font-opentype” \
“application/x-font-truetype” \
“application/x-javascript” \
“application/x-web-app-manifest+json” \
“application/xhtml+xml” \
“application/xml” \
“font/eot” \
“font/opentype” \
“font/otf” \
“image/bmp” \
“image/svg+xml” \
“image/vnd.microsoft.icon” \
“image/x-icon” \
“text/cache-manifest” \
“text/css” \
“text/html” \
“text/javascript” \
“text/plain” \
“text/vcard” \
“text/vnd.rim.location.xloc” \
“text/vtt” \
“text/x-component” \
“text/x-cross-domain-policy” \
“text/xml”</IfModule>
<IfModule mod_mime.c>
AddEncoding gzip svgz
</IfModule></IfModule>
# END WP-HUMMINGBIRD-GZIP
# BEGIN WP-HUMMINGBIRD-CACHING
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault A0<FilesMatch “\.(txt|xml|js)$”>
ExpiresDefault A691200
</FilesMatch><FilesMatch “\.(css)$”>
ExpiresDefault A691200
</FilesMatch><FilesMatch “\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|svg)$”>
ExpiresDefault A691200
</FilesMatch><FilesMatch “\.(jpg|jpeg|png|gif|swf|webp)$”>
ExpiresDefault A691200
</FilesMatch>
</IfModule><IfModule mod_headers.c>
<FilesMatch “\.(txt|xml|js)$”>
Header set Cache-Control “max-age=691200”
</FilesMatch><FilesMatch “\.(css)$”>
Header set Cache-Control “max-age=691200”
</FilesMatch><FilesMatch “\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|svg)$”>
Header set Cache-Control “max-age=691200”
</FilesMatch><FilesMatch “\.(jpg|jpeg|png|gif|swf|webp)$”>
Header set Cache-Control “max-age=691200”
</FilesMatch>
</IfModule>
# END WP-HUMMINGBIRD-CACHINGForum: Fixing WordPress
In reply to: Very Odd – 2 pages showing in post streamI think it is a glitch the German side does not show this error It must just be a glitch in the theme.
No big deal at the moment. Just pages don’t show feature images in the News feed.
But I can live with it
Forum: Fixing WordPress
In reply to: Very Odd – 2 pages showing in post streamIv looked on the theme help and its not something that shows up.
Iv gone though all of the theme settings and the two pages and there is nothing saying something like Act Like Post or something that would mean it will show.
I think it is a glitch.
I will rebuild the pages and see if they show up again.
If they do it must be some sort of setting
With Regards to speed I have done all of the above I was looking for something even more ??
I will keep you posted
Gem
Forum: Plugins
In reply to: If User is Logged in and clicks the Members button redirect to Shop PageFound a plugin that solved the issue
https://www.ads-software.com/plugins/nav-menu-roles/screenshots/
Forum: Plugins
In reply to: [WooCommerce] Update causes wp-admin redirect to my-accountThat fixed it but its given my user all sorts of back end options. I will have to use another plugin to hide all of that.
Thanks for your help.
G
Forum: Plugins
In reply to: [WooCommerce] Update causes wp-admin redirect to my-accountIv got the same issue. Admins are fine. But lesser users get set to the my-account page.
I have deactivated my plugins and tested and its definitely woocommerce coursing the issue.
Do we have any news on a new update to fix this?
Forum: Fixing WordPress
In reply to: Register for Newsletter in NavbarPS. Im using the latest WP and everything is up to date.
Websites I am talking about are:
https://ankorr.me/
https://fitnessbuffet.ae/
https://ankorr.me/Forum: Plugins
In reply to: WooCommers Mini Cart LinkSorry didn’t see the bit about code
here it is again
<div id="cart"> <!-- Button --> <div class="cart-btn"> <a href="https://www.crossrope.me/cart" class="button adc"><?php echo WC()->cart->get_cart_subtotal(); ?></a> </div>
Forum: Fixing WordPress
In reply to: WP 3.9 – Visual Editor not working@richardbaldock I’m using the Legenda theme. Iv spoken to them on there forum and they have confirmed its there Theme that is coursing the issue and they are working on it.
Forum: Fixing WordPress
In reply to: WP 3.9 – Visual Editor not workingOk Iv discovered its an issue with my theme and the Visual Editor and TinyMCE.
Forum: Fixing WordPress
In reply to: WP 3.9 – Visual Editor not workingOk I just discovered something. Turning the Visual composer off makes the Rich Text Editor work fine. So I think we have an issue with the Visual Composer and TinyMCE.
Also found this plugin that gives us more options once its working again. https://www.ads-software.com/plugins/tinymce-advanced/