I have a question about the Woocommerce product edit page within the admin area. Is it possible to add some sort of next/previous links inside? With a functions.php hack for example or plugin?
Woocommerce product edit page
We have a lot of products and it was convenient if we could navigate to the next without leaving the edit page.
I think this can help you achieve your goal:
https://developer.wordpress.org/reference/functions/add_meta_box/
https://codex.wordpress.org/Plugin_API/Filter_Reference/attachment_fields_to_edit
By adding a meta box you'll be able to display a group of links that will redirect to the next and previous products
Sorry I can't provide an exact snippet that would work, but I hope you can research around the notes I gave you if you find them useful.
Good luck!
Related
I want to add a visitor counter into my product detail page. I try to find a lot but not able to get any good solutions on the internet. Can anyone please let me know how we can add a visitor counter into our woo commerce product page? So our user can see how many people visit this product. I really appreciate this. Advance Thank You.
Try using this plugin [https://wordpress.org/plugins/page-visit-counter/], it gives the visitors count for each page/post. For your requirement set post type as product in the plugin settings. Then you will get the individual visitors count for each product in product detail page.
I am looking help to change Woocommerce single product page layout. Currently Description, Reviews, Additional Information, and Questions and Answers are buttons next to each other. I want to edit them to be viewed one below each other in the following format.
Description
Additional Information
Reviews
Question and Answers.
Please refer to this link to know the current layout assigned.
https://phoneghanti.com/product/samsung-galaxy-j8/
Any help will be much appreciated.
In order to change the layout of the Woocommerce single product page.
Here, Single Product Page hooks, all you need to do in your functions.php is “add_action(‘place-hook-here’,’your-PHP-function-here’);” and you can place your custom functions in active theme.
Note:
The child theme is the best way for theme/plugin customizations.
https://businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/
https://businessbloomer.com/?s=single+page
I've got some code working perfectly on my single product pages. For some reason, it will not function the same in archive/list view.
First, I used a plugin to make the variations radio buttons instead of the dropdown. Then I modified that and made it display the price of each variation. Like I said, works great on product page.
I'm new at this google and compile until my eyes bleed and eventually it works. No such luck this time.
Here is the product page: http://pchdelivery.com/product/star-wars-kush/
Here is archive: http://pchdelivery.com/menu/
I don't need any of the cart functionality, only to display the variations and respective price with each product in categories.
Thanks in advance
As per I can understand the issue, you may need to change the settings from the attribute options for the product where you will have to choose the option to not shown in product archive pages.
Screenshot : http://www.awesomescreenshot.com/image/2352336/b6552a6b4d83f8c16efd5935046728c4
Hope it helps.
I'm planning a WooCommerce plugin which should override the default shop page "product grid" with my own (a masonry grid with custom styling, pagination and filters).
I see that many developers include template pages in their plugins (archive-product.php) to customize the shop loop output; is this the only way to do it?
I'm asking because I would let the user to customize his grid in WP admin screen (you know, changing columns count, products per page, load-more button/infinite scroll, etc).
Thanks in advance.
To answer your question, it's not the only way. You can also register your own custom template in your plugin, which can be called pretty much anything.
I am looking for some advice or information on how to do the following. Basically I want to allow users on the product view page to be able to select from a hard-coded custom dropdown menu and when they press 'add to cart' it saves this information to the cart associated with that product. The drop down menu isn't customisable in the admin section as it is hard-coded in the product page template.
I'm really lost on how to do this or what terms to search for allow me to research this.
Essentially what I'm asking is how do you add custom inputs for each product.
Any help or advice or links would be greatly appreciated.
Yes, like someone commented, Custom Options is what you're looking for.
In the admin section for a product you'll find Custom Options as tab. There you want to add a new option with type "Drop-down" and add your values there.
Why would you want to have the options hard coded? Seems like an odd requirement. With Custom Options you have full control to change the options without changing any code.