WooCommerce product categories have paths such as: http://example.com/product-category/my-category/ .
I understand that in older versions of WooCommerce, you could set the 'product-category' part of the URL by going to WooCommerce > Settings > Pages. However, in the current version of WooCommerce, that option doesn't seem to be available. So where can I find/access the field that holds this info?
(Ultimately, I don't want to change this path, but I want to find out where WooCommerce stores it so that I can manually build some category URLs in the correct manner without hardcoding/guessing the 'product-category' part.)
I know this is old and you probably resolved it.
However if anyone else is looking for this answer.
The option is part of WordPress permalinks you can find them under Settings > permalinks
Hope this helps someone.
Related
A wordpress site that I have Woocommerce on just recently started doing something strange. The product sorting, after choosing a category, does not work. I have been searching around trying to figure out where I can correct this, but nothing I find has really helped.
I am looking for the main file that controls this sorting. I don't know if it would be the wordpress template or the woocommerce files themselves.
Does anyone know what file controls the product sorting? Also would updating Wordpress potentially fix this? I see that I have an update due.
Here is a screenshot for illustration:
Are you using the latest version of WooCommerce?
Are the templates related to WooCommerce are override by the theme?
If you are templates are override by the theme, then may be your theme is loading an outdated WooCommerce template file, which could be the culprit.
Please try to update, if applicable.
I would suggest updating them, if applicable: https://docs.woocommerce.com/document/fix-outdated-templates-woocommerce/.
That should may help in solving the issue.
Have you successfully removed the /store/ default slug on a Woocommerce Wordpress site?
I'm building a multi-vendor site right now and every store page has url of:
domain.com/store/vendor-name
I, and customers, strongly prefer this format, removing the '/store' slug entirely.
domain.com/vendor-name
It looks like this is set by Wordpress by default. I'm using the Dokan plugin but can't seem to find where this URL is created. Any help would be greatly appreciated! I've seen plugins that eliminate the '/category/' or '/product' slugs but nothing for /store/. I'd be happy to manually edit something if need be, but a plugin would be great if possible.
I'm pretty new to web development and have mostly been doing minor PHP edits on WordPress / WooCommerce, but my client would like me to edit the name of the 'Weight' tab as shown in the image below.
WooCommerce Website Screenshot
I have not yet been able to figure it out using the WooCommerce API since I do not think that function is included, and I have the feeling I will have to do some DOM using PHP but I have no experience doing that.
Could somebody help to point me in the right direction? It would be greatly appreciated.
Additional Link:
https://docs.woocommerce.com/wc-apidocs/class-WC_Product.html
you can use woo commerce hooks to change weight spellings or you can edit woo commerce plugin
File path:- plugins-woocommerce-templates
But if you edits woocommerce templates directly when you update plugins then your custom works does not any more.
I think the easiest way to this to use the WooCommerce language file and add translations for 'Weight', 'Weight in decimal form', and 'Weight unit'.
This approach has the advantage of not needing to modify WooCommerce source files.
I have build my own Wordpress theme and activated Woocommerce. Almost everypage works fine. But my Store and Product pages are not in Container. Also I would like to chanche the positions of sertain items on the Product Page. Theme is build in Bootstrap so I would like to use Bootstrapp to fix my Product page. The biggest problem is that I cannot find the right file to edit... Somebody got the solution?
You can check the site here.
Thanks!!
To build a WooCommerce Compatible theme, you need to edit the WooCommerce templates.
All the WooCommerce templates are located at woocommerce/templates folder. If you are not familiar with WooCommerce templates structure, you can install WooCommerce Template Hints, and it will display the template file name to show you where the content comes from.
To customize the template, please follow the best practices so your modifications will not be missing when you update WooCommerce.
I have gone through every conceivable update to try and get this to work.
I have a clients blog where we're trying to implement Woocommerce, but despite working when we first lauched, something has gone wrong recently and I cannot track it down.
I have gone through both options listed here:
http://docs.woothemes.com/document/third-party-custom-theme-compatibility/
I have updated Wordpress in the dashboard, this caused issues so I then updated it manually and ftp'd all the content to the site, after reading this.
https://wordpress.org/support/topic/fatal-error-after-41-upgrade#post-6349382
Then I had a notification that Woocommerce could be updated, so I took advantage of that.
I have also tried disabling and re-enabling woocommerce, and deleting and reinstalling it. The only weird discrepancy is that in the previous version if I checked the woocommerce pages in the dashboard, I could see these hooks:
[woocommerce_checkout]
[woocommerce_cart]
But now those are not present and the page is not editable, but I assume this is part of the latest woocommerce version.
I also tried to enable stable wordpress themes (twentytwelve and twentyfifteen) to see if there was a conflict with my child theme, but that didn't solve anything. This is as per the advice here:
https://support.woothemes.com/hc/en-us/articles/203112147-How-to-Get-Help
Here is a screenshot from one of my empty href's.
I realise this is a vague question with no code referenced, but I just don't know what is going on.
I can send a link to the site if that helps I am just hoping someone else has also come up against this issue.
In your dashboard go to WooCommerce > Settings and check in every tab that the right page is linked. This will allow the Woo links to work correctly.