How can I rename the Related / Alternative Products tab?

FAQ: How can I rename the Related / Alternative Products tab?

To rename the Related Products and Alternative Products tabs, complete the following steps:

1. Go to Manage Website > Edit Website

2. Select the Product Details page in the Website Map tree and switch to the Edit Page tab

3. Drag an HTML page section to the Product Details page and place it under the Product Details page section

4. Add the following code and click Done

<script type="text/javascript">
for (i = 0; i< $(".productTabBlock .name").length; i++){
    if($($(".productTabBlock .name")[i]).html() == 'Alternative Products' ){
        $($(".productTabBlock .name")[i]).text('New name for Alternative Products');
    }
    if($($(".productTabBlock .name")[i]).html() == 'Related Products' ){
        $($(".productTabBlock .name")[i]).text('New name for Related Products');
    }
}

$(document).ajaxStop(function() {
for (i = 0; i< $(".productTabBlock .name").length; i++){
    if($($(".productTabBlock .name")[i]).html() == 'Alternative Products' ){
        $($(".productTabBlock .name")[i]).text('New name for Alternative Products');
    }
    if($($(".productTabBlock .name")[i]).html() == 'Related Products' ){
        $($(".productTabBlock .name")[i]).text('New name for Related Products');
    }
}
});
</script>

where New name for Alternative Products should be replaced with a new name for the Alternative Products tab and New name for Related Products - with a new name for the Related Products tab

The Product Details Page:

Note: To rename the Alternative Products or Related Products tab only, the following code should be used instead:

for the Alternative Products tab to be renamed

<script type="text/javascript">
for (i = 0; i< $(".productTabBlock .name").length; i++){
    if($($(".productTabBlock .name")[i]).html() == 'Alternative Products' ){
        $($(".productTabBlock .name")[i]).text('New name for Alternative Products');
    }
    
}

$(document).ajaxStop(function() {
for (i = 0; i< $(".productTabBlock .name").length; i++){
    if($($(".productTabBlock .name")[i]).html() == 'Alternative Products' ){
        $($(".productTabBlock .name")[i]).text('New name for Alternative Products');
    }
    
}
});
</script>

for the Related Products tab to be renamed

<script type="text/javascript">
for (i = 0; i< $(".productTabBlock .name").length; i++){
    
    if($($(".productTabBlock .name")[i]).html() == 'Related Products' ){
        $($(".productTabBlock .name")[i]).text('New name for Related Products');
    }
}

$(document).ajaxStop(function() {
for (i = 0; i< $(".productTabBlock .name").length; i++){
    
    if($($(".productTabBlock .name")[i]).html() == 'Related Products' ){
        $($(".productTabBlock .name")[i]).text('New name for Related Products');
    }
}
});
</script>

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.