Shopify product.title only shows the variant - collections

Hey I have the following problem:
In Shopify, I have sent my colours per product on the Collection Page as a separate product (at least that's what it looks like).
This all fits, however, instead of the product name under the image on the collection page, the first variant is now displayed, e.g. Black XS instead of the hoodie name.
I used the following code in my snippet.
{{ product.title }}
I need to somehow be able to render the product name here.
Thanks a lot

Related

Product Structured Data Bug in Woocommerce 3.5

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.

Regarding page feeds versus post feeds and RSS Updates in Jekyll

For each category in my Jekyll site, I have a static page with a record of all changes that have happened regarding that category.
For instance, a network change log, a lighting change log, a building and facilities change log, etc.
I could simply create a new post in the appropriate category and write about the change, but that's more of a detailed account.
I would rather keep a running journal in a page format. So here's the question:
If I create an XML feed that finds only a single page, ie:
{% for page in site.pages %}
{% if page.title == 'Network Change Log' %}
do this xml feed stuff
{% endif %}
{% endfor %}
Then I'll get a single entry in my feed for that page, and the only thing that will change will be the first part of the body of the content and the site.time.
If the feed is formatted correctly, will the automatic e-mail engines like Mailchimp consider each revision or each change to the page as a "new post" like a post feed would, thereby triggering an e-mail update as though there was a new post?
The goal is to monitor the feed and trigger automated updates for that single page any time it is updated.
Thanks in advance!

My Woocommerce shop page doesn't show correctly. Products are not arranged in similar pattern?

My shop page look like this https://ibb.co/bBfEdF
It is showing like this here because some products have long product name & some have short. In the same way some products are having price mentioned and some are without price.
I have tried so many thing but couldn’t figure it out to set it automatically in same pattern, when I am making changes in the CSS files the changes are modifying other pages too, so I need to resolve this by without affecting other pages.
Can I set product names to be displayed always in one single line, weather the name is too short or long.
Either can I fix the box size for each row so that it look like similar for each product along with name.
Its one of Woocommerce flaws. The fast solution is to give the product titles a similar word count

Shopfy accessing all products from a collection on the product page

I'm using Shopify as my eCommerce platform. My customer has some products that are related to each other. But don't think of a typical related products system, basically these products have parts, and those individual parts can be reordered separate from the product itself.
The client wants to list all the parts for a given product on the product page. The parts are each cataloged as an individual product themselves. The parts have a "part" tag to identify them as a part, and they have a "part:handle" tag to identify which product they are associated with.
On the product page I attempted to do something like this:
{% for product in collection.products %}
product
{% endfor %}
I know this code will not do what I'm ultimately trying to do, but I tried it just to see if I could access collection data on the product page. It doesn't work. But it does work on the COLLECTION page. Is there any way to access collection data while on the product page? Do I need to use the Shopify API for this? Can anyone provide an example? Thanks!
You can use the global collections object to access collection info from any page.
Here's an example from the Shopify documentation that iterates over products in the "frontpage" collection:
{% for product in collections.frontpage.products %}
{{ product.title }}
{% endfor %}
The liquid object collections contains a list of all of the collections in a shop.

Advanced Drupal View filter for taxonomy

I have a content type called product-templates. In this content I capture the following fields: Title (core), content body, taxonomy term reference, and 6 different file types. A new product-template content is created for each template we have. So let's say our products are widgets, broken down by color.. blue, black, brown, pink, green, etc...
The taxonomy has the primary product template categories, for example: blue widgets, black widgets, etc.. Each will have multiple templates for the different sizes, so the term will reference size/style, widget small, medium, large, square, round, etc.
Using the default taxonomy override that comes with views taxonomy/term/% and limiting the filter to product-templates and using fields, rather than full content I get a list something like this: blue-widget small -> template b1s, template b2s, template b3s… / blue-wiget medium -> template b1m, template b2m, and so on. So what I end up with is a full listing on all the product templates with their associated template files.
What I would like to have happen is that when the visitor is on taxonomy/term/% they are presented with a drop down or jump menu that shows the different options, then when they click on (for example) blue-widget small the associated templates render/populate on the page. So basically I want to remove the listing and turn it into a selectable area. Since there could be a large number of options/sizes I don't want to have a list that goes 20 scrolls, and I don't want to have to use a pager. It seem more logical to present them a drop down list that has all the options/sizes they select the one they want and then just those templates pull up.
Any suggestions on how this would be accomplished?
You should be able to accomplish this by adding filter to the view which is taxonomy term, then set it to exposed and use the following url to access all documents.
taxonomy/term/all (this should display all documents)
This will mean that it is applied for all vocabularies, so not a problem if you only have one.

Resources