What is this contribution?
This contribution allows you to create html templates where you insert names of the product fields, instead of inserting values of the product fields. Content Templates Manager finds field names in the html of the template and replaces them by corresponding values of the product.
See more details here. |
This contribution allows you
- to create Html templates like the tables, multipage tabs, specification multilayer tabs, beautiful blocks with products data - attributes, specifications, description, etc. After changing template, or creating new template you will not have to edit each product description to make changes there. You will change only template, changes will effect every product which are linked to this template
- it allows you to create additional fields of the products, associated with a template or with a several templates, then Content Templates Manager automatically inserts fields values in the Html markup of the template.
- allows you to link the product, or group of the products with the template and display the Template on the page.
- to create, edit, copy, remove template fields, which actually becomes a field of each product, if product is linked to the template.
A little more about this:
For instance, we have product some page like this:
"Lorem ipsum dolor sit amet, "2014-March" consectetur adipiscing elit,
sed "9.4 mm" do "146.4mm" eiusmod tempor incididunt "width : 5.76" ut labore et
dolore magna aliqua. Ut "1920 pixels" enim ad "32 GB" minim veniam, quis nostrud
exercitation ullamco "5 MP" laboris nisi ut aliquip ex ea commodo "8Kw" consequat. Duis aute
irure dolor "5.7 px" in reprehenderit in voluptate "0.48 X 0.56" velit esse cillum dolore
eu fugiat nulla pariatur. Excepteur "12.3 M2" sint occaecat cupidatat non proident."
Let say, the text is the same for the group of the products, but there are field values in the text (I put them in the quotes) which are different for each product.
let say also, there are about a thousand of product, which have this text saved in their description field, but with the corresponding to the product values in the text.
Could you imagine what happens if we decide to change this text for this group of products? We will have to change the description fields values all of the thousand products, in order to change values in the text and replace old saved text with a new text.
What would be, if we are using the Content Templates Manager, then we do not have to touch the products fields in general. We will need to change only the Template where we have saved the text, we will change it in one place and all the fields will find their place in the changed text. Changes will take effect for all products that are linked to the text template.
Another example: Let say we have a large table for products specification, with a large number of rows and cells for each product.
Tables looks quite well on the page, but it is very difficult to search for the data, that are corresponding to the product, to fill or edit them in the Html code of the table.
"<table width="100%" style="color:#000;border:1px solid #83addb;background-color:#fff;" align="center" cellpadding="4" cellspacing="1">
<tr style="background-color:#d2e8ff;"> <td style="text-align:center;" width="36%">8.4 Kw</td><td style="text-align: center;" width="22%">800 px</td></tr>
<tr> <td style="text-align: center;">44 mm</td> <td style="text-align: center;">32 GB</td></tr>
<tr> <td style="text-align: center;">freq</td><td style="text-align: center;">400</td></tr>
<tr> <td style="text-align: center;">band</td><td style="text-align: center;">56.7</td></tr>
<tr> <td style="text-align: center;">92</td><td style="text-align: center;">24</td></tr>"
Can you see where the data is and where Html is in this example code of the table?- Yes, you can, but it is very hard to work with this.
Is it easy populating product data in this code?
This contribution can do this job very easy.
In the other words,
Compatibility:
I'm using this contribution on the osCommerce v2.3
Other versions not tested yet. But should work in many other versions, because the contribution do not changes any other tables in the database and uses only own tables, and the contribution uses very few from the functions of the core script.