jakevoelcker
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: detected as being under version control (.git)Great, thank you Alan!
I’ll check with my web host about why that .git directory is in the root folder, I don’t even have access to that.
Thanks for the tip about the filter, that’s really useful
Forum: Fixing WordPress
In reply to: detected as being under version control (.git)I use WordPress Multisite, so plugin updates are installed at the network level. I don’t know if that makes any difference to the .git error…?
Forum: Fixing WordPress
In reply to: detected as being under version control (.git)No, I can still install updates manually I think.
But I just discovered it has prevented auto-updates from being installed for the last few months!
Forum: Fixing WordPress
In reply to: detected as being under version control (.git)OK, I have renamed .composer to composer_BAK and .npm to npm_BAK
It still says “The folder / was detected as being under version control (.git).”
I’m not quite sure if the website is installed in my home directory.
The website is installed in the httpdocs directory
It’s a VPS, and the directory structure is:
/var/www/vhosts/mydomain.co.uk/httpdocs/wp-content/Forum: Fixing WordPress
In reply to: detected as being under version control (.git)Thanks Steven,
I can see other hidden directories and files such .htaccess
The hidden files and folders I can see in the server root are:
.cache
.composer
.config
.local
.mysql_history
.npm
.pki
.profile
.ssh
.wp-cli
.wp-toolkitThe ones in httpdocs are:
.htaccess
.user.ini
.well-knownThe only one in wp-content is:
.htaccessThere is no .git anywhere.
Yet when I check my WP Site Health it still says:
The folder / was detected as being under version control (.git).I am completely at a loss as to what could be causing this…
Forum: Plugins
In reply to: [WooCommerce] Add custom date field to Export ProductsI found my answer.
No need to modify the wc-product-export.js file.
Instead, it is possible to access the form post data directly from php. But any custom fields you have added using the “woocommerce_product_export_row” hook will be submitted as an array called ‘form’.
For example, if you add a new input field with name=”supplier”, you access it using $_POST[‘form’][‘supplier’] or $_POST[‘form’][0] (NOT $_POST[‘supplier’]).
Forum: Plugins
In reply to: [WooCommerce] Add custom date field to Export ProductsThanks @gabrielfuentes
A more general question which may be easier to answer is:
Is there a way of hooking into or adding to files in /woocommerce/assets/js/admin/ without overwriting the core?
My workflow is:
1. Admin receives an email saying e.g. “Product XYZ is low in stock, click here to order more https://domain.com/wp-admin/edit.php?post_type=product&orderstock=1
2. If the admin is not logged in, WP will ask them to log in. Once logged in, it will then redirect them to https://domain.com/wp-admin/edit.php?post_type=product&orderstock=1
3. If the admin is already logged in, they will just see https://domain.com/wp-admin/edit.php?post_type=product&orderstock=1 immediatelyThis works on a standard wordpress and woocommerce install.
But once I have “Rename Login Page” turned on, the link above doesn’t work for logged out admins (it says “Not available”).
If I change the link to https://domain.com/secretpage/edit.php?post_type=product&orderstock=1 then it works for logged out admins, but it breaks if the admin is already logged in (it says “500 Internal Server Error”).
Is there a way of getting the email link to work for both logged in and logged out admins?
Hi,
Thanks for the suggestion, but that only works if the admin is logged out.
Once logged in, link such as:
/secretword/post.php?post=123&action=edit
/secretword/edit.php?post_type=product&orderstock=1Result in a 500 Internal Server Error
Hi. I’m using the “Rename Login Page” feature. Thanks!
Forum: Plugins
In reply to: [WooCommerce Admin] Custom “compare” values for analyticsI should clarify: I would like to add this functionality to all reports in woocommerce-admin analytics. I have seen the example extension ‘sql-modification’ from https://github.com/woocommerce/woocommerce-admin/tree/master/docs/examples/extensions which adds a currency filter to all reports.
I would like to do something similar, but instead of currency, I would like to add an extra dataset. It would be a very simple dataset: simply a daily sales target. It would be displayed instead of last year’s sales, for comparison with this year’s sales.
What is the best method?
Forum: Plugins
In reply to: [Bulk Order Form for WooCommerce] Copy-and-paste multiple SKUsThank you.
I don’t want to just search by SKU, I want to paste a whole set of SKUs into one field and create an order from them. Is this possible in the Pro version?
Forum: Plugins
In reply to: [User Switching] Disable forget_woocommerce_session()Thanks for the suggestion, that works perfectly now ??
Thanks for all your help John
Forum: Plugins
In reply to: [User Switching] Disable forget_woocommerce_session()Thanks very much John.
Unfortunately it’s not working for me though. When I switch users, cart contents are lost.
I upgraded to 1.5.2 and copied your code above into a code snippet that runs everywhere with priority 10, that should work shouldn’t it?
(If I add items to the basket and then log in without using user switching, cart contents are preserved, so I know that is working fine).
Forum: Plugins
In reply to: [User Switching] Disable forget_woocommerce_session()Hi John,
Thanks for the great plugin, it’s so useful. I also like that it’s really robust and professionally written with proper action hooks and support for filters.
Our use case: we often start building an order whilst logged in as staff, or not logged in at all. If we then discover that the customer already has an account, it’s really useful to be able to switch without losing the cart contents.
This worked really well until 1.5.0
What parts of preserving carts and sessions doesn’t work well in your experience?
Many thanks,
Jake