I have an eCommerce site, building with woo-commerce, and I installed a plugin that shows the brand of the product.
In single product page, I manage to put the brand name (text) before the title.
but in the shop main page, I'm trying to put it under the thumbnail and it does not work.
This is the action loop that I found in plugin files:
add_action('woocommerce_after_shop_loop_item_title', array($this, 'show_brands_in_loop'));
and I tried to change it to every loop and it didn't work I tried:
woocommerce_shop_loop_item_title
and:
woocommerce_before_shop_loop_item_title
nothing work I'm trying to place this here (the green line):
Related
I am using WooCommerce, and I use links to the product category archive pages on my home page to send customers to the product types they are seeking. These product category archive pages play a key role on my website--almost replacing the shop page, so I want Google to recognize the pages on their own merit.
In the product category archive editor, I've entered SEO text for each of my product category archive pages in the text box available. However, this pushes the products down the page so they don't show.
I would like to have the SEO text below the products. I have tried James Hahn's solution suggested here: Adding Additional Text To a Product Category Page in Woocommerce However, my whole website breaks when I do this. Obviously, I'm missing something.
I would have tried LoicTheAztec's answer, but I'm not clear on how to add the hooked function and where.
Sorry, I'm pretty new to PHP.
I'm trying to use this plugin to add product highlights in the shop category loop in WooCommerce.
While the plugin works nicely with Astra and Storefront (highlights shown above "add to cart" button), the highlights are shown post "add to cart" for the site using UXThemes Flatsome theme.
Because the plugin works nicely in Astra and Storefront, I gather Flatsome somehow alters the loop / hooking for products shown in the shop / archive page.
My question: How do I go about debugging and figuring out exactly where Flatsome drops the ball? I really need the highlihts to be shown before the add-to-cart button. You can see a staging / testpage here:
Right now I'm sifting through the theme layout and loop php files, and not getting any wiser.
Thanks in advance for any help
I created a WooCommerce category, added description and an image to it.
There are some products in the category too.
Looking at the category in frontend (/product-category/mycat/) I see category description and product images - but not a category image. I tested it with all default WP themes and with Storefront too - category image is in no theme visible.
In the rendered source code there is nothing similar to category image - after title and description comes immediately the sorting dropdown:
What I'm missing?
Shouldn't category image appear automatically on the category page?
Or should I nevertheless trigger its displaying with adding of any code to theme file?
Indeed, the solution from https://stackoverflow.com/a/12717177/1992004 is working for me - the category image appears.
Is there really no solution without custom code?
"Shouldn't category image appear automatically on the category page? Or should I nevertheless trigger its displaying with adding of any code to theme file?"
Short answer
No it does not show up by default! It all depends on the template/theme developer's architecture/preferences and how s/he has planned the theme out! If you'd like to customize your theme, then you could go ahead and add it manually to your theme templates using the snippet you found!
I am currently making a webshop, and I noticed that when I add a product to cart via a page that uses the Product Archive template, no notice appears, only a button that leads to the shopping cart appears next to the product.
However, when I add a product to the cart on the exact same page while I'm within the customizer, or via a page that uses the Single Product template, it works as expected, and the notice shows up on top of the page.
I use the "Archive Products" element from Elementor Pro to show the products on the page that uses the Product Archive template, and everything is up to date.
Am I missing something here?
I've already searched Google for quite some time now, and unfortunately I couldn't find anything about this problem.
For a reference of the website i am developing you can view it here: http://prettyloxx.netii.net/
I am creating a ecommerce website using wordpress and woocommerce together in a theme
that i added the woocommerce support to. it would's great but however i am a little stuck.
What i would like to do is to place a single specific product on the bottom of the homepage with its options.
So ideally, i would for example like to add a single product such as http://prettyloxx.netii.net/?product=wefts on the homepage after the homepage content, howevere without the product's description. So on the hompage the user would see the attributes and options as well as the product image at the bottom of the page, select them and then click on the checkout button directly from the homepage.
Thank you in advance,
You can add [product id="99"] or [product sku="FOO"] Shortcode for specific product to add your homepage. Or if you want feature products then woocommerce gives the shortcode [featured_products per_page="12" columns="4"] for that. Hope those will help you.
Here we can use Id of single woocoomerce product ,
[product id="42632 "]
and for sku
[product sku="examplesku"]
and we can show products of a specific category
[products columns="3" category="solar-lantern"]
In above shortcode just pass the slug of the category and products are shown of this specific category