Ecommerce Templates Canada

Logiciel de commerce électronique
pour Dreamweaver, FrontPage et GoLive.
En version ASP et PHP.
Boutique »
Version ASP
Version PHP
Outils eCommerce
Votre panier
Aide et ressources »
Survol du logiciel
Aide pour la version ASP
Aide pour la version PHP
Recherche sur le site
Ressources
Forum de support
Questions et réponses
Mise à jour et correctifs
Clients/Exemples
Boutique de démonstration
Développeurs
Passerelles de paiement
Hébergement
Connexion des clients et des revendeurs/prix de gros
Accueil > Aide Php : Connexion des clients et des revendeurs/prix de gros
Veuillez prendre note que cette page n'est pas encore traduite. Merci!
In Version 4.2.0 we introduced the customer login feature. This allows for wholesale pricing / tax / shipping exemption for login customers and page protection. This means it is possible to offer retail and wholesale pricing without the need for a second database as well as offering tax and shipping exemption to particular users. You can also restrict access to certain pages of your site.

Help Enabling customer login

If you would like to have a login status box on each page you will need to add one line of code where you would like the login box to appear. The code you need is the following:

<?php include "vsadmin/inc/incminilogin.php"?>

Paste that into HTML / code view exactly where the login box should appear and make sure that it comes somewhere after the include lines:

<?php include "vsadmin/db_conn_open.php"?>
<?php include "vsadmin/includes.php"?>
<?php include "vsadmin/inc/languagefile.php"?>
<?php include "vsadmin/inc/incfunctions.php"?>

To enable the login you will then need to go to vsadmin/includes.php and add the line (if it's not already present) $enableclientlogin=true;

Finally you'll need to set up the login page itself. Open your thanks.php page and save it as clientlogin.php. Then go in to HTML / code view and locate this line:

<?php include "vsadmin/inc/incthanks.php"?>

....and change it to

<?php include "vsadmin/inc/incclientlogin.php"?>

Save clientlogin.php and upload it to your server.

You should now be able to see the login box and the login page on your store.

...and change it to

<!--#include file="vsadmin/inc/incclientlogin.asp"-->

Save clientlogin.asp and upload it to your server.

You should now be able to see the login box and the login page on your store.

login screen
Login Box

login screen
Login Box after successful login

login screen
Login Box if enableclientlogin=true
hasn't been set in vsadmin/includes.php

login screen
Login Dialogue on clientlogin.php

Help Setting up a client

In your home admin page there should be a link client login admin, click to set up your clients' options.

login screen

Click on new client login to add the details and parameters available for each particular customer.

login screen

Enter the client name, password, the relevant action (You can use CTRL + Click to select more than one choice) and finally the login level. When done, click on submit and your client will have been set up with the parameters you have assigned.

Help Login level

You can assign different levels of login permissions on any page to say that a particular page is restricted to anyone below the login level assigned in the login admin section. For example, if you set requiredloginlevel=4 then only people who you have set up with a login value of 4 or above can view the page when logged on. Only place the code on the pages where you need to restrict access, for example, it should not go on clientlogin.php

To add the level of restriction to individual pages you will need to add the line:

<?php $requiredloginlevel=4;?>

...where 4 is the threshold of permission for that page. This needs to come anywhere before the line

<?php include "vsadmin/inc/incfunctions.php"?>

The last thing you need to do is find the code at the top of your page that looks like this:

<?php
session_cache_limiter('none');
session_start(); ?><html>

...and change it to:

<?php
session_cache_limiter('none');
session_start();
ob_start(); ?><html>

..making sure there is no space before the code and you just have the one opening <html> tag.


ACCUEIL | PRODUITS | SUPPORT | EXEMPLES | CONTACTEZ-NOUS
 

Canada |  France | Espagne | Australie | Allemagne | Hollande | IrlandePortugal | Afrique du Sud | Grande-Bretagne
© Copyright 2002 - 2006 Logiciel de commerce électronique par Internet Business Solutions SL
Tous droits réservés