Has anyone encountered an issue where the items st...
# suitecommerce
k
Has anyone encountered an issue where the items stopped appearing in a merchandizing zone in a CMS/SMT section? The merchandizing zone is a legacy CMS merch zone. The website is built on SCA Kilimanjaro. Items were appearing a few days ago, but they are not appearing as of yesterday (Friday. 2024-11-16).
m
have you changed the name of your suitecommerce website from the setup website?
k
No. There have been no changes to the website since 2024-11-06. I’ve looked at the Network panel in Chrome developer tools. I can see the merch zones being fetched and the item search API requests for the items that appear in the merch zones. I wonder if there has been a change to the cms.js file that is managed by NetSuite.
I tracked it down to a problem in cms.js. The code expects the items returned in the Item Search API request made by the merch zone to have the item property “matrixchilditems_detail”. The merchandising rule is configured to use the “Related Items” field set, which does not include the “matrixchilditems_detail” field. I ran a test where I added this field to the field set. The error still occurs if the item search API response contains non-matrix items. The “matrixchilditems_detail” property is included in the response, but the value is null for non-matrix items.
m
Hi Keith, i already have the same issue, theres a NS issue created issue 798830, as workaround you can download the cms.js and upload to NS, changing the following line
!t.matrixchilditems_detail.some
to this
!(t.matrixchilditems_detail || []).some
then on the shopping.ssp change the reference for the cms.js file, unitl NS relaease a fix.
Is assuming that all items have the matrixchilditems_detail array and that is not always true
k
@Martin thank you for confirming it’s not just us and letting me know the NetSuite issue number. We think alike about copying the cms.js file and modifying. Double thanks for suggesting it and sending your code 👍
🙂 1
s
The fix is in the process of being QAed and pushed out
👏 3
k
@Steve Goldberg thanks for letting us know
s
This should have been pushed out by now.
k
Is this fix related to the cms.js filter error I'm seeing? There is no merchandising zones used in this site, but I do have a custom content type I just added and when I use it to add content I get this error. I have used this extension in other sites and this is the only time I'm seeing this error.
m
@kkennedydesign could you please provide where is the error by clicking on the cms.js28186, thanks!
k
sure....
also getting a custom content error...
For now I am just setting an end date on the content so the rest of the page displays without error while I troubleshoot this....seems related to the new custom content type. As I mentioned - have used this extension before....I also checked the permissions and modified the custom record so perhaps that has not kicked in yet.
m
I think is more related to the second error that with a JS error on filter
You should check the CMS Contents records that belong to the URL that is thorwing an error
And see which one refers to the id 183
k
Well, sure enough - permissions kicked in and I can see the content.
m
And you still having the cms.js error ?
k
no - all errors gone. a.isAdminPresent() must be what is looking for the permission.
m
great!
👍 1
k
Thanks for the help
🙌 1