[contact-form-7 id="24078" title="Feedback EN"]

Featured templates

Oscommerce. How to change amount of symbols in different template sections

This tutorial shows how to change amount of symbols in different template sections in OsCommerce store.

osCommerce. How to change amount of symbols in different template sections

  1. Let’s change amount of symbols in Reviews box:

    Oscommerce. How to change amount of symbols in different template sections-1

  2. Inspect the text using built-in inspector in Chrome or Firebug in Firefox browser. Find class that you can search in code. In our case it will be easier to locate the appropriate code using module reviews-box class:

    Oscommerce. How to change amount of symbols in different template sections-2

  3. Make sure that you have unzipped template files. We are going to search for the appropriate code through all files:

    Oscommerce. How to change amount of symbols in different template sections-3

  4. Open editor that can search for the code in multiple files and folders. We are using Notepad++ editor. Press Ctrl+F in order to open a search dialog, click on Find in Files tab. Select folder with Oscommerce files. Specify class name in Find What field. Make sure that you have the same options as on the screenshot and click Find All:

    Oscommerce. How to change amount of symbols in different template sections-4

  5. We can see that appropriate class is located in includes\modules\boxes\bm_reviews.php file. Find the code that specifies quantity of characters:

    Oscommerce. How to change amount of symbols in different template sections-5

  6. We can see that it is set to show first 60 symbols of review. We have changed it to 123:

    Oscommerce. How to change amount of symbols in different template sections-6

  7. Save changes and upload the modified file. Refresh your page. We have changed number of characters:

    Oscommerce. How to change amount of symbols in different template sections-7

  8. Let’s change amount of characters in product listing:

    Oscommerce. How to change amount of symbols in different template sections-8

  9. Go to Configuration and check if Product Listing section is available in Configuration. We can see that it is possible to set number of characters in configuration. They can be changed in Product Listing Length of Description (grid) and Product Listing Length of Description (list) sections.

    Please note that you should change number or characters in php files in case such option is not available in your template. You can locate the appropriate code using the same actions as for reviews box:

    Oscommerce. How to change amount of symbols in different template sections-9

  10. Click on Product Listing Length of Description (list) section and set the desired number of characters. Save changes:

    Oscommerce. How to change amount of symbols in different template sections-10

  11. Refresh the page. We have changed the amount of symbols:

    Oscommerce. How to change amount of symbols in different template sections-11

Feel free to check the detailed video tutorial below:

osCommerce. How to change amount of symbols in different template sections