Abel Thomas
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Modifying tax calculations based on the productI have set my tax to be calculated from the ‘shop base address’. I have also created several tax classes for different zip codes, and have set products to these tax classes.
If you add this product (https://visitwinterparklodging.com/lodging/house-one/) to the cart, you’ll notice no taxes are applied on the cart page, even though this product has the relevant tax class. When I manually modify the shop address like so:
add_filter( 'woocommerce_countries_base_city', 'o2_base_city', 20 ); function o2_base_city($city){ return 'Fraser'; } add_filter( 'woocommerce_countries_base_postcode', 'o2_base_postcode', 20 ); function o2_base_postcode($postcode){ return '80442'; }then the appropriate tax rate does display. How can I modify the city/zip code on a per-product basis instead of globally?
Forum: Plugins
In reply to: [The Events Calendar] Using Woocommerce with multiple pluginsYes, I’ve already purchased and installed ‘Event Tickets Plus’, and it is working great alongside my Woocommerce store. Thanks for your help!
Hi Rustaurius,
Wow, I’m almost positive I tried this already, but apparently not, because it’s working fine now. Sorry about that, and thanks for the very quick response and great plugin!
Cheers =)
Hi there,
I am having the exact same problem as amirmalka12. I have sorted the categories alphabetically within the relevant settings page, and they display properly in the products list, but not in the sidebar.
Can you please provide an update as to this situation? Thanks in advance.
Forum: Plugins
In reply to: [Logo Carousel] Problems with FirefoxHi guys,
This is a simple styling issue. If you go to your theme’s (or child theme’s) style.css file, add the following line of code:
.bx-wrapper ul.kiwi-logo-carousel.align-center li img { width: 100% !important; height: auto !important; }That should fix it!
Forum: Fixing WordPress
In reply to: Broken pagination using custom wp_query loopTurns out I’ve solved my own problem. Instead of creating a custom WP_Query in archive.php, I instead altered the main query using the ‘pre_get_posts’ hook. Here’s the code that does that (located in functions.php):
add_action('pre_get_posts', 'at_modify_archive_query'); function at_modify_archive_query( $query ){ // only modify query on frontend pages && if is main query if ( is_admin() || !$query->is_main_query() ) return; // modify post count on any archive if ( $query->is_archive ) $query->set('posts_per_page',6); }This executes before the initial database call is made, and doesn’t require an additional database call (like WP_Query does). And the best part, all the WP pagination functions work flawlessly (
paginate_links(), the_posts_pagination(), next_posts_link(), etc.).Hope this helps someone else!
Forum: Fixing WordPress
In reply to: Access to subfolders giving 404 errorSince all of the files are stored inside of that wordpress folder, does that mean that it’s actually installed in root, or is it technically installed in mysite.com/wordpress?
Yes, that is correct. If you want your site to be housed in the root directory, remove all the files from the ‘wordpress’ folder and drop them directly in the root. That should do the trick, no .htaccess tweaks necessary.
Forum: Fixing WordPress
In reply to: Website is goneSince you didn’t create manual backups of your site files and database, your only option is to contact your hosting company and see if they have a recent backup of those two things (most hosting companies maintain some sort of backups).
Hopefully you’ll be able to recover your website successfully. In the future, remember to always ALWAYS backup everything before doing any sort of updates/transfers/heavy theme/plugin modifications. I always recommend Updraft Plus, it takes backups at regular intervals and uploads them to remote storage (like Dropbox or Amazon) automatically. Best of luck to you!
Yes, I tried that as well with no luck.
All I’m trying to do is change the login message by hooking into the filter, before it echos the $EM_Notices. Can you tell me if I’m going in the right direction?
if ( !is_user_logged_in() && !get_option('dbem_events_anonymous_submissions')){ add_filter('em_event_submission_login', __("You must log in to view and manage your events. This is a test.",'dbem'), 20); } echo $EM_Notices;Angelo,
Thanks for your prompt response. I followed the directions from your article and added the relevant file to ‘/wp-content/themes/my-child-theme/plugins/events-manager/forms/event-editor.php’, but the file does not seem to be overriding.
Could this be something to do with me using a child theme?