AShop V Guide de l'utilisateur Page 15

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 27
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 14
Designguide 15
AShop Software © Copyright 2011
2.3 Top Lists
The top list module will show a list of top selling products and/or the newest products in the catalog.
The scripts that produce these lists may be included in...
· page templates
· any custom web page of your choice
There are two ways to include the lists, either through Javascript or a template placeholder code. This is
how to use the Javascript version...
<script language="JavaScript" src="top.js.php"></script>
And this is how to use the template placeholder code...
<!-- AShoptopandlatest -->
<!-- /AShoptopandlatest -->
Note that the second version only works in the storefront page template while the Javascript version
works in any page on your website. You can put example content between the first tag and the second
to get a better view of how it will look when you design the storefront template.
Parameters may be added to the Javascript version of the script to customize the output. To add a
parameter to the Javascript version, first add a question mark "?" and then add the parameter. If more
than one parameter is specified, add an ampersand "&" after the first parameter and to separate
additional parameters. Here is an example.
<script language="JavaScript" src="top.js.php?items=5&redirect=product.html"></
script>
To customize the top list with the storefront template, you would use a different placeholder code. There
are two additional variations:
Show just the top list...
<!-- AShoptoplist -->
Vue de la page 14
1 2 ... 10 11 12 13 14 15 16 17 18 19 20 ... 26 27

Commentaires sur ces manuels

Pas de commentaire