AShop V Guide de l'utilisateur Page 159

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 309
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 158
Installation & Setup 159
AShop Software © Copyright 2002 - 2010
make it accept calls from your AShop to register members. Inside the functions.php file for your
Wordpress theme, insert a code like this:
/* AShop remote registration payment */
add_action("init", "make_registrationlink");
function make_registrationlink(){
$secretkey = "myownsecrectkey";
if($_GET["make_registrationlink"]){
$subscr_id = $_GET["orderid"];
$custom = $_SERVER["HTTP_HOST"];
$item_number = $_GET["item"];
$reg = $_GET["reg"];
$checkreg = md5($subscr_id.$item_number.$secretkey);
if ($checkreg == $reg) {
$link = ws_plugin__s2member_register_link_gen ($subscr_id, $custom,
$item_number, TRUE);
echo "<!-- StartAShopS2Member-$link-EndAShopS2Member -->";
exit;
}
}
}
Make sure to change the $secretkey variable to your own personal key for this site.
Prepare your AShop
1.
Add a fulfilment option on the page Configuration->Fulfilment in your AShop admin panel. Use the
S2Member Registration method.
2.
Set the URL field to the URL of your s2member site.
3.
Set the Password field to the value of your $secretkey, which you previously added to the functions.
php page of your s2member site.
4.
Create or locate a product on the Edit Catalog page and click Attributes.
5.
Add an attribute for the membership level, for example labeled "Level". If you want this to be customer
selectable so your customers can buy different membership levels through the same product, add 4
alternatives, otherwise add just 1.
6.
Set the attribute alternative(s) to the s2member membership level(s), for example "1" or "4".
7.
Click the Fulfilment button for the product you just prepared and select the s2member fulfilment option
you created previously.
8.
Set the name of the level attribute to: level
Note: The name of the attribute on the fulfilment configuration page is case sensitive and must be
exactly "level", not "Level" or "LEVEL" or "membershiplevel".
Now your customers will be given a temporary link that allows them to sign up at your s2member site
when they buy
the product. It will be included in the receipt that is emailed to the customer after successful payment.
By setting up
multiple fulfilment options and/or products you can sell different membership levels or even memberships
at different s2member sites.
2.26.11 Wishlist Member
Wishlist Member is an addon for Wordpress which lets you sell access to restricted areas of your
Wordpress site. AShop can sign customers up with a Wishlist Member site, but only the initial signup is
Vue de la page 158
1 2 ... 154 155 156 157 158 159 160 161 162 163 164 ... 308 309

Commentaires sur ces manuels

Vikijrd 04 Jan 2024 | 13:14:20

urenrjrjkvnm

Evakut 07 Jan 2024 | 16:14:48

Med

BryanBag 08 Apr 2024 | 00:32:20

Hello! Crazy discounts, hurry up! We are Drop Dead Studio and our goal is to help companies achieve impressive sales results through automated marketing. I. We sell fresh databases for GSA Search Engine Ranker. • The databases are updated monthly through 24/7 parsing and by connecting purchased databases from other sources. • You have the option to purchase a one-time fresh database or pay for a lifetime subscription for updates. ATTENTION! 40% discount only until 04/10/2024! When ap