Sometimes the compiled templates file isn’t update...
# suitecommerce
k
Sometimes the compiled templates file isn’t updated correctly. Try this. In the same file cabinet folder as where your template file lives, there is a file named templates.config. Edit and save this record, but don’t make any changes.
c
Is there any other solution? I'm able to change the default template file still I'm unable to see the changes in the site. templates file were updating fine in the filecabinet.
k
Yes
c
Could you please tell me the other approach I will try with that.
k
Here is the next trick. Create a second merchandising rule. Then in SMT, go to the SMT section that has the merchandising content type with the rule. Change the rule to the new rule. Then publish the change, perform a cache invalidation. Verify the rule worked. Then go back to the SMT section and change the merchandising content type to use the original rule, publish and clear the cache.
BTW, what version of SCA are you on
c
I'm using SCA 2019.1
k
Ok. The two tricks I shared with should work unless there is an error in your template file. That might also cause a problem.
c
Thanks @Keith Fetterman I will try with above solution.
k
We’ve seen problems where it never gets unstuck and you need to file a support case.
Good luck. the merchandizing zones, rules, etc. are ancient technology and don’t play well with SMT/CMS. NetSuite needs to implement a new feature.
c
Actually I'm showing featured items in the home page based on custom Item search api. I can do this even creating new module or extension and merchandizing zone takes less time to achieve. so I'm working with SMT. Is this good practice or do you want me to go for creation of new extension and display the items based on search API ?
Do you want me go for extension to display items rather than merchandizing zone?
k
That’s your choice. The merchandising zone works for our clients and it allows them to make the changes to the products in the section without requiring a developer.
If they change the merchandizing rule search criteria, they have to do the SMT rule change and back again in the SMT section to get it to show up.
At least they do in Kilimanjaro version. NetSuite may have fixed it in 2019.1
c
Yes this is the benefit by using merchandising zone. Thanks for the suggestion @Keith Fetterman
k
If it doesn’t work, I suggest the support case route before implementing an extension.
The only SCA version that I have heard of that never got the custom template to work was Elbrus and that’s pretty old by now.
c
Sure @Keith Fetterman will do.
k
Hi Guys - I am having a similar problem with a merchandising zone that has been working fine for a couple years. I recently made a change to the template and it wont clear cache no matter what I do....I know all the above tricks and still no luck. I think something has changed. I will be filing a case as well.
c
Thanks for the information @kkennedydesign. we will file a case as well.
k
@Charan I found my issue - somewhere along the road another cms site folder was created and a templates folder within that had duplicates of all the merch zone templates. Not sure how that happened...maybe during an update or something, but I found I was editing the wrong instance of the template,
k
@kkennedydesign did the alternate folder have a different “Site-#” parent folder?
k
@Keith Fetterman yes - do you have any clue?
k
Yes. the # refers the internal ID of the web site setup record
At one time you must have had a second website setup record
k
strange though - same website record....the only thing I can think that it was created another ssp app for dev - maybe it got created then
or maybe sanbox
Ive noticed this in 2 accounts....both have had some PS work done as well so that could be another clue
k
When you go to the website setup record and look at the URL, you’ll see the parameter “id” and a number. The number should correspond to the Site-# folder under CMS
k
anyway, face-palm
k
Glad you found it and now we know what to look out for when this issue occurs
k
right - but by default it is just cms...until the gremlins get going
thanks
c
@kkennedydesign I have also found the site2cms something like this and I have changed the template there but no luck
k
@kkennedydesign it sounds like NetSuite may have changed the folder structure in the file cabinet for the CMS merchandising templates. In the account that I work with, it looks like this: “Web Site Hosting Files > Live Hosting Files > SSP Applications > NetSuite Inc. - CMS > CMS > Site-2 > Published > Templates”