Spree product is missing name in structured data - spree

Google's Webmasters Tools show me an error telling me that my product's structured data is missing the name value. However when I view source on my product page I can see that the name is definitely there. I see this:
<h1 class="product-title" itemprop="name">
Why doesn't Google see this property?

Without seeing the actual page and code, it's difficult to determine exactly why you're seeing that error message. But I would guess that it's because of improper nesting. So just make sure that the name property is nested within the product type.

Related

Oracle APEX - Custom error messages for IG

I have an updatable IG that is updated with Automated row processing and when the user updates a row with the value that already exists in the database, an ugly unique constraint error message pops up. Any way I can customize error messages on IG while keeping Automated Row Processing? Or should I change the processing to PL/SQL?
There is an error handling function option in the application attributes section of Oracle Apex.
It is possible to add a function here and show user friendly errors for common error codes.
More detailed explaination can be found here - http://dgielis.blogspot.com/2018/06/automatically-capture-all-errors-and.html
Edit:
Tested this on IG
APEX provides a way to catch and handle such errors by providing an Error Handling Function. Navigate to the Shared Components > Application Definition Attributes and scroll down until you see the Error Handling Function attribute. There, you would put the name of a function that will handle errors.
If you check the doc, you'll see an example of this type of function: https://docs.oracle.com/en/database/oracle/application-express/19.2/aeapi/Example-of-an-Error-Handling-Function.html#GUID-2CD75881-1A59-4787-B04B-9AAEC14E1A82
The example function is highly commented to explain what types of things you can do. There's an example of how you can create a lookup table of friendly error messages and use the table to replace the cryptic ones (like your example) with something more clear.

Hybris ProductListPage does not find category

here is my question. I have one ProductListPage where I want to display a single product. I have a simple Product catalog with one category "TestCategory" and one product assigned to it "TestProduct". What I want is just to display the product in my Product List Page.
However, when I access the Product List Page, there is a message stating:
Category with code 'TestCategory' not found! (Active session catalogversions: ProductTestCatalog.staged, ContentTestCatalog.staged)
Both content and product catalogs are synched and everythings seems fine. I started an indexer operation wizard and it was successful, but nothing has changed, I keep getting this message, even though the category is existing - it even comes with the name "TestCategory not found" What should I do to find it?Can you provide any ideas or solution to this problem? Maybe the problem is in my Solr Configuraiton? If yes, any ideas how to fix it will be highly appreciated. Thanks! :))
The ProductDetails Page in the hybris Accelerator does not use SOLR so it is unlikely to be that.
The error suggests that the category TestCategory is not visible to the current user in the current session.
The Active Session catalogVersions should show Online catalogs only unless you are in Preview/LiveEdit. So this suggests something is wrong.
You should try to understand the SearchRestrictions in the Session.

Bigcommerce Templates file missing

I am developing a template for bigcommerce site, where i want to show category list and some hard code links in the place of Page menu. Now what i do, just place this %%Panel.SideCategoryList%% in the upper navigation area. Which shows category list right.
But the problem is that i didn't find this %%SNIPPET_SideCategoryList%% file. (In snippets folder exist a file with this name, but that file doesn't work even if i remove all contents of that file.)
I had a similar issue with SNIPPET_SideShopByBrandList.
I logged a ticket and got the following response:
Thank you for contacting BigCommerce technical support.
I see its reference in SideShopByBrand panel. In the same panel, there is another SNIPPET_ShopByBrandAllItem which is visible in snippets tree, but not this one. That's because its a hidden snippet, and its not possible to edit this.
I have tested this in my personal store as well, and the output is same. let me know if you have any other questions.
I think yours might also be a "hidden snippet and not possible to edit"
No worry....You need to just create html page and put the below code but keep one thing don't include the html, head, body etc
1) just create a html page and delete the html content
2) put the below my code for
3)
<li class="%%GLOBAL_LastChildClass%%">%%GLOBAL_CategoryName%%
%%GLOBAL_SubCategoryList%%
</li>

Sitecore Broken Links and Content Editor Issues

We've been noticing an increase in number of broken links on our sitecore website.
Some it is due to
User Training
Publishing Issues (linked page is not yet published)
Maybe content editor issues
It's been hard to verify some of these but sometimes the link might have the authoring page URL (which means someone didn't follow the SOP), sometimes they have a strange url like /shell/Content Editor/...
So we are trying to proactively fix these before the pages go live.
I had a couple ideas like writing a Handler that would look through all "Rich Text Fields" and looking for inconsistencies (like authoring server URL). Also using a crawler-type of validator could help us (http://home.snafu.de/tilman/xenulink.html#Description) but we were wondering what the community was doing to address this issue.
The "internal link checker" usually works well but doesn't detect many of this erroneous setups (as I believe it sees them as 'external links').
Your input is greatly appreciated!
If you have RichText fields and create internal links, your internal link looks like this in the HTML view: "a href="~/link.aspx?_id=EB3AD128E7BF4F3C9F3812F701D7724E&_z=z" and when you hover with your mouse over it, is show "/Sitecore/Shell/Controls/Rich Text Editor/" before the ~/link.aspx. This is normal behavior. This link is modified to a normal link during rendering of the RTE field.
However, be sure to use the Sitecore controls like to render these RTE fields and to render links. Also using sc:fld() in XSLT instead of sc:field() can create strange links because sc:fld is rendering the raw value of the field.
In all of the Sitecore projects I have been working on, I didn't have much issues with broken links.
There is a known bug with copy-pasting links from a rich text editor, where path info is appended to the link (generating the /shell/Content Editor/ stuff).
Sitecore have a fix for it here:
http://sdn.sitecore.net/Products/Sitecore%20V5/Sitecore%20CMS%206/ReleaseNotes/KnownIssues%20Recommended/Copying%20and%20pasting%20link%20in%20rt%20fields%20may%20break%20the%20link.aspx
I would suggest a new Validation Action added to the workflow command before the items are finalized. Then you could actively stop them from being published and give immediate feedback. If you're not using workflows, you could add a new item level validator, but those often get ignored in my experience -- too many false positives on the existing validators.

retrieving variable from intermed table

I need to retrieve institution name by going through an intermediate table. My view gets all the values except this one or at least it is not displaying in the template. Can someone please help with either revising my view or template statement?
http://dpaste.com/122204/
Thank you,
May
To debug these kinds of problems do the following.
Run the view function's processing separate from any template or any other parts of Django.
Either interactively or with a VERY simple script run your query. For example, use a simple script like this to explore your model and make sure your model really works.
from app.models import Contact, Institution, Whatever
results= Researchproject.objects.filter(restitlestrip__icontains='something').distinct()
for project in results:
print project.contact
print contact.institutionname
Note several things about your simple script and your template.
Case matters. Project != project.
Navigation matters. In the script shown above, contact is undefined. project.contact, however, is defined. Perhaps that's what you meant.
Your model appears incomplete. The Contactintermed table doesn't seem to be used anywhere in your query or view. It may have FK's to other tables, but you don't seem to have a sensible navigation from Project through Contact to Contactinterma to Institution.
Get your model to be correct in a stand-alone script. Add the template processing later.
Also, please post all the code here on StackOverflow. Chasing your code down all over the internet is a huge pain. It's far easier to simply ignore your question than it is to chase down your code.