< class td = "productItemNotFound" > This catalogue has no products. < table >

Anyone could change the wording to "this catalog has no products?

Found some good references of mario

http://forums.Adobe.com/docs/doc-1808

But does not not foregoing!

Call for intelligent people of JS

Hey man-

You can do this with a regular Expression simple and some jQuery that looks for all the text on your site or a certain element and replace it with your own text.

Here is the javascript code that you can add at the end of your page next to the closing or tag in another javascript file that you reference already. It must be after charge of jQuery on the page. You can include it in the HEAD of your page template if you want, but it must follow the reference of the jQuery library.

I use a site that has US (English) as the language/culture so my 'catalogue' is spelled 'catalog '... Just update the code below to match your version of catalog. Also, I'm searcing the entire 'body' element, but you can be more specific, if you wish. You can change the references to the "body" to something like "#content" or '.shop-layout' or whatever the container has your text somewhere as a child text node.

(function($){
    $(document).ready(function() {
        var noProductsMessage = "Your no products message";
        // You can use HTML markup if you escape quotes with a backslash
        // or if you use single quotes in HTML markup
        var noSubCatalogMessage = "Your no subcatalogs message";

       // Update "This catalog has no products." message
       $("body").html(
           $("body").html()
           // Update "This catalog has no products." message
           .replace(/this catalog has no products\./gi, noProductsMessage)

           // Update "This catalog has no sub-catalogs." message
           .replace(/this catalog has no sub-catalogs\./gi, noSubCatalogMessage)
       );
    });
})(jQuery);

You'll notice that the function. replace() uses the regular expression... you can update what is between the / and \./gi to match the text you want to replace.  It doesn't matter of capital letters because this RegEx works with all cases.  You will also notice that I'm escape the period:\.

Periods are special characters in regular expression which means 'any character' so if you just use /this catalog has no products./gi it will always match the period, but I'm telling you this regex to match more precisely a period not any character.

You can replace the variables by your posts and I've added one for the ' no catalog under "do message too given that you probably want to who as well. If you do not use - comment out this line by launching a // in front of this line of js.

Good luck. Here's the violin of it in action so you can play with it and update catalog catalog if you need to: http://jsfiddle.net/thetrickster/k35qV/

Tags: Business Catalyst

Similar Questions

Maybe you are looking for

  • USB charger - 29W C - compatibility with 12.9 "iPad Pro

    I'm looking for an answer as to if the USB - C 29W charger is compatible with the iPad to 12.9 "Pro. I know this question has been asked and answered by the communities in the past, but when I went to the Apple Store to buy the charger today, the sta

  • Not recognized on Satellite 3000 514 Notebook memory intermittedly bench

    At the start of my satellite 3000-514-Notebook, which contains 2 banks of memory of 256 MB each, the upper 256 MB Bank very often is not recognized more, and my laptop runs on 256 MB only. Initially, this happened only when I started in hot condition

  • Satellite U400: How to set the BIOS password & learn how to use facial recognition

    I have a Satellite U400 Satellite. Can someone direct me to a link of support for the implementation in passwords in BIOS? There are several options and I don't know what does what...Thanks for your help... Another point: I feel that the definition o

  • Update Xperia Z 4.2 Jelly Bean

    I'm Malaysia.Few days, I checked the website Facebook.com/sonymobile, it showed that the Xperia Z (c6003) is available for Android 4.2 update frozen Bean.So I plugged my Xperia Z on the pc and open PC Companion, but he showed "your phone is updated",

  • Video resolution issues in Windows Vista

    I have the same problem, as indicated in the Catch 22 - white screen at startup. I can get it up in safe mode, but then it becomes empty as soon as the loading of Windows Vista. I tried the advanced boot low resolution. I get the low resolution, but