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.
Related
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.
I am new to using woocommerce and only been working with wordpress about six months so may be an easy answer.
I don't want any columns in my archive at all. I just want to display the products using a responsive grid system like this ...
http://www.responsivegridsystem.com/
or use masonry (preferred).
I have used masonry in a page template in wordpress to display an unordered list before without a problem but cannot figure out how to use it or the responsive grid with woocommerce shop.
How can I stop woocommerce using columns ?
Thanks
Overriding can be done in various ways, here's the cleanest approach:
The file is located at wp-content/plugins/woocommerce/templates/archive-product.php. You should put it in your theme folder - wp-content/themes/woocommerce/archive-product.php. Then make the changes you want. For instance, I'd start with removing the line do_action( 'woocommerce_sidebar' ). You might also want to override wrapper-start.php and wrapper-end.php found in the templates folder ( in either shop or global subfolder, depending on woocommerce version ), which can be overriden exactly the same way.
For reference, see their documentation: http://docs.woothemes.com/document/template-structure/
MSTAnnu put me on the right lines, I needed to be using content-product.php, and added a class to the tag in there. This overrides all column issues.
I changed the tag in the loop-start.php file in templates/global and used css to style into a responsive design using %. Not used to masonry layout yet but if I do will add solution here unless someone beats me to it.
This is pretty straight forward. I've installed the Woocommerce Canvas theme and want to use it to implement an HTML template using the various hooks available. I've set my front-page to be the shop page but cannot seem to find the template which affects the shop page.
I have already tried to change both archive-product.php files, and neither are responding.
Managed to find it myself. The WP Cache plugin interfered.