JAX templates. Additional settings.
Category and product page titles
There are two ways to set your own page titles/keywords/descriptions
1. You can edit each page through the admin area of the site:
http://your-shop.com/admin.{php|htm}?lang=en&password=<password>
However, if for the page there is no set:
- title, the $TITLE variable from aff_camp.php is used
- keyword, the first line in keywords.txt is used as a keyword
- description, the first line in description.txt file is used as a description
Note that DYNAMIC_HEADER in the $SELECTED_OPTIONS array should be equal 0 or it shouldn't be mentioned at all.
'DYNAMIC_HEADER' => 0,
To save all the changes you should have *777* rights for the .htcache/lang/<lang>/ folder and all the subfolders.
2. You can use dynamic titles/keywords/descriptions. Masks from the lang/<lang>/_strings_.php file (OPT_DYN_{page_type}_TITLE, OPT_DYN_{page_type}_DESC, OPT_DYN_{page_types)}_KEYS variables) are used in this case. All variable values are showed in the comments. Note that DYNAMIC_HEADER in the $SELECTED_OPTIONS array should be equal 1:
'DYNAMIC_HEADER' => 1,
You can add any text to these variables (not just specific variables).
Titles/keywords/descriptions are output in .htclasses/PresetPage.class.php.
How to edit product/category page urls
You can select the url type in config.php file by editing the urls_type parameter:
'urls_type'=>'jax', # jax|extrafeed|seolike|phplinks (default=jax)
- jax - usual jax' urls (through underscore)
- extrafeed - it's for those who used and keeps using this engine. If you switch it on you'll see the urls in English that were in extrafeed, for example:
http://extracheapdrugs.com/product_viagra.htm
http://extracheapdrugs.com/category_men's_health.htm
- phplinks - if your web-server doesn't support mod_rewrite
- seolike - through dashes with the use of masks defined in config.php:
'url_masks' => array(
'de' => '%product%-kaufen.html',
'en' => 'buy-%product%-uk.html',
'eu' => 'buy-%product%-europe.html',
'us' => 'buy-%product%-usa.html',
'fr' => 'acheter-%product%-france.html',
'it' => 'compra-%product%-italy.html',
'pt' => 'comprar-%product%-portugal.html',
),
'url_masks_category' => array(
'de' => 'auftrag-%category%-medizin.html',
'en' => 'order-%category%-medicine-uk.html',
'eu' => 'order-%category%-medicine-europe.html',
'us' => 'order-%category%-medicine-usa.html',
'fr' => 'ordre-%category%-medecine-france.html',
'it' => 'ordine-%category%-medecina-italy.html',
'pt' => 'pedido-%category%-medicina-portugal.html',
),
Demasking is in .htaccess in the block like:
# SEOLIKE RewriteRule ^(/)?comprar-(.+)-spain\.html$ $1?product=$2&lang=es [L,QSA]
If you need to change a product or category url, change the mask in .htaccess after you have changed the mask in config.php.
For example, you need a product url like this:
http://your-shop.com/buy-generic-viagra-online.html
To see it you need to replace in url_masks block in config.php:
'en' => 'buy-%product%-uk.html',
with
'en' => 'buy-generic-%product%-online.html',
and in # SEOLIKE block in.htaccess replace
RewriteRule ^(/)?buy-(.+)-uk\.html$ $1?product=$2&lang=en [L,QSA]
with
RewriteRule ^(/)?buy-generic-(.+)-online\.html$ $1?product=$2&lang=en [L,QSA]
This way, you can set your own masks for product and category urls.
In seolike regime there is a separate mask for each language and these masks may not coincide (otherwise it is not possible to define the current(selected) language).
How to add products at the index page
There is an example with Kamagra.
In allitems.php replace
'kamagra' => array(
...
'category_id' =>
array (
0 => '6029',
24 => '6029',
18 => '6029',
),
...
),
with
'kamagra' => array(
...
'category_id' =>
array (
24 => '6029',
18 => '6029',
),
...
),
In other words, you need to change just:
0 => 6029,
Hence, if you need to add a product at the index page, you should add 0 ⇒ xxxx:
So we had:
'keflex' =>
array (
...
'category_id' =>
array (
24 => '5595',
22 => '5595',
),
...
Now we have:
'keflex' =>
array (
...
'category_id' =>
array (
0 => '5595',
24 => '5595',
22 => '5595',
),
...
How to sort products at the index page
You can set the parameter 'priority' ⇒ 1 in allitems.php:
'viagra' =>
array (
...
'priority' => '1',
Priority may vary from 1 to 7.
A higher priority shows the product closer to the beginning of the list.
Access to the admin area of the site and change of password
To access the admin area of the site please use the following link:
http://your-shop.com/admin.{php|htm}?lang=en&password=<password>
<password> is the password to the admin area
To edit descriptions please make sure that you have 777 rights for all subfolders in the .htcache folder and 666 rights for the file .htcache/.httitles
The password is stored in the .htcache/.httitles file as a serialized array, for example:
a:1:{s:10:"__password";s:N:"<password>";}
N - is the amount of symbols in the password
<password> - is your password
To set your own password you need to replace <password> with the password you want to have and N with the number of symbols in the new password.








