Using woocommerce 3.5 & wordpress 5, Some days before i noticed that google is not showing rich snippets for my products when i test a product URL at google structured data testing tool, product meta was disappeared.
product structured data is visible in Breadcrumb list. how i can show my product data separately, Please help here is my store URL https://techcart.pk
The reason for this is that the Product and final breadcrumb item share the same "#id". This means they are considered to be the same entity, so they get merged.
They are both using an "#id" that represents the page they are on. So in a way they are also sharing the "#id" of the WebPage.
I'd recommend changing their "#id" to something unique. A common solution is to add a # value to the end if the "#id". e.g.
https ://example.com/product12345#Product
That indicates that it is a Product entity on the page.
Related
I am using Magento 2 Community 2.1.9, I am also set the default RSS feeds. I reviewed the content of the XML generated, it shows only some of the eligible products.
For example, I set to generate XML for a category of 'shoes', only some of the shoes inside this category are included in the XML. Most are not included.
I am confused, do you have any idea? Is there a bug? How I can modify the code to make it include everything under the said category.
Thanks.
Please check if the products are visible/in stock/enable
Also compare any one of the product that is not seen in the feed with the product that is seen to check all the attribute values are set properly.
Hope this helps
I have a Kentico e-commerce website with the following tree structure:
Products
My Category 1 (Category page)
My Product 1 (Product page)
My Product 2 (Product page)
Categories can be accessed by any combination of the following URL’s:
/my-category-1/red (Filters)
/my-category-1/plain/red (Filters)
/my-category-2/patterned/red/plain (Filters)
This is achieved by setting up a 'route' against the 'My Category 1' category with the path/pattern '/my-category-1/{*categories}'
We also have a requirement to be able to access products via the URL’s
/my-category-1/my-product-1
/my-category-2/my-product-2
These pages are never hit however because of the route setup against the category pages.
Does anyone have any advise of how this could be achieved whilst maintaining the desired url structure? I'm trying to avoid a scenario whereby I have to perform a database check of whether a page is a product or not.
Is there anyway to 'prioritise' routing in Kentico?
Your product URL /my-category-1/my-product-1 falls under /my-category-1/{*categories}, so system will always take you to the category page trying to apply some filter. You just need to put different URL templates for those pages, e.g.:
Product page:
/product/my-category-1/my-product-1
/my-category-1/product/my-product-1
If don't want to set product page URL like above, you have to URL template for Category with filter, e.g:
/my-category-1/filter/{*categories}
This is not that much of Kentico problem, but routing. You can get more details on routing here.
I'm using Drupal Commerce and i have a product type called "Painting" this product type does not have an attribute fields, I'm using inline_entity_form module so i can show the product add form within the node add form for my product display content type.
The product in the site is the painting itself, it may come with a frame or without a frame (the user can choose) and the price will change based on the user's choice, how can i add such field without using attributes fields? as attributes fields requires that the site admin to add many products and put them in one product display, i just want to keep it simple to the site admin, to make him add the product in the same way he adds a node.
Thank you.
This sounds like you just need two variations:
Product one, without frame
Product two, with frame
Each variation has it's own price and title.
You can get by without using an attribute field. Drupal Commerce renders a dropdown when there are no attributes and allows user's to pick from the product variation titles. Since you are using Inline Entity Form this should be seamless for the site admin.
I have a Wordpress-blog with gift ideas where I write text based articles. I recently discovered Custom Post types which I believe is the solution to an feature I want to create.
What I want:
Be able to tag each custom post using the normal "Categories" and "Tags".
Create a 3x3 matrix with product images (custom posts) to be shown on top of each Category-view or Tag-view (followed by the typical article list in the category or tag).
Example:
Lets say I have a category "Gifts for mom" and tags "Pink", "Cheap"
In the category "Gifts for mom" I have 10 text articles (normal posts) discussing the difficulties of buying gifts for your mom
I create nine custom posts, each is a specific gift (e.g. A pink hairbrush). I want to place them in the Category "Gifts for mom" and tag them with "Pink".
When I view myrandomgiftblogname.com/category/gifts-for-mom I want to be able to get a view:
Gifts for mom
Product Product Product
Product Product Product
Product Product Product
Articles:
- This awesome article
- That awesome article
- Etc
I assume this is possible but don't really know where to begin. Could you point me in the right direction? Which Plugins do I need? Do I need to do any programming myself (or just plugin configuration)? Is this even possible?
The description is a bit broad, hence a bit broad answer.
Two things are needed:
1) A plugin to create the Custom Post Type.
It is considered best practice to let CPT's in Plugin territory. So you can swap designs and preserve your CPT functionality. In reality, you are asking for future problems letting this be handled by the theme.
Create your own plugin, which would contain a register_post_type and any extra configs.
Use an existent plugin, like Custom Content Type Manager.
Its Custom Fields features are quite handy as well.
Allows users to create custom content types (also known as post types) and standardized custom fields for each, including dropdowns, checkboxes, and images.
2) Learn how to use and customize WordPress Templates
http://codex.wordpress.org/Templates
Templates are the files which control how your WordPress site will be displayed on the Web. These files draw information from your WordPress MySQL database and generate the HTML code which is sent to the web browser. Through its powerful Theme system, WordPress allows you to define as few or as many Templates as you like all under one Theme. Each of these Template files can be configured for use under specific situations.
You can try the following:
Add a new Page for each category with the exact same name as the category.
In the Images menu attach to each of those pages the images you want.
In your script query for a page with a name identical to the current category, and pull all of its attachments
I'm working on a latest version of wp.
I need this kind of functionality but not sure how to do it.
I want to post an blog article which will be available on its main category listing page for set period (from published from & to date - to date is the last date until when it will accessible on category page using pagination. But after to date this will not be list in category using pagination. But still stays on given url and accessible by direct url for SEO reason.
Basically I want to make a pagination to be valid for only a post published under certain period.
Both cases are fine, do you know any plugin which can be used or need to customize?
I don't know about a plugin, but you can simply customize your wp_query: http://codex.wordpress.org/Class_Reference/WP_Query#Time_Parameters, and make sure you use the "paged" parameter described here: http://codex.wordpress.org/Class_Reference/WP_Query#Pagination_Parameters