Enabling and Configuring Cookie Restriction Mode. Magento Magento Enterprise
Pubblicità
Pubblicità
Basic Configuration
Enabling and Configuring Cookie Restriction Mode
To enable the cookie restriction mode:
1.
Log in to the Magento Admin Panel.
2.
Navigate to System > Configuration > GENERAL > Web.
3.
In the Current Configuration Scope in the upper-left corner of the page select the desired website.
4.
Expand the Session Cookie Management field set.
5.
In the Cookie Restriction Mode field select Yes.
6.
To save the changes click the Save Config button.
Important Note (for Magento Enterprise Edition only): Enabling the cookie restriction mode enables the notification of customers about cookies being used by a store. To actually stop using cookies which are related to customer private information, such as cookies storing the customer ID or recently compared products list, you need to disable the Full Page Cache (FPC) functionality. FPC can be disabled under System
> Cache Management. For more information about full page cache, see “Full-Page
Cookie Restriction Mode: Implementation Details
After the cookie restriction mode is enabled, a message is displayed on the top of each page in the store front. The message informs customers that the website requires cookies to provide all of its
features and requests users to confirm that they are informed and consent. See Figure 59.
48
Basic Configuration
Figure 59. Cookie Restriction Warning Message
The message contains a link to the Privacy Policy page, which provides a list of cookies being collected and explains on how they are used. The default content of this page can be changed under CMS > Pages > Manage Content >
Privacy Policy.
After a customer clicks Allow, the message disappears.
If a customer does not click Allow, the message persists, but the store functionality is available as usual. However, Google Analytics cookies are not stored in this case, even if the Google Analytics functionality is enabled.
Cookies Used in Magento
The following table lists cookies, which are always stored by Magento on the customer’s side.
Cookie Name Cookie Description
USER_ALLOWED_SAVE_COOKIE Indicates whether a customer is allowed to use cookies external_no_cache A flag which indicates whether caching is disabled persistent_shopping_cart
Stf
Session key
If links to a product were sent to friends, this cookie stores the timestamps in the '$timeStamp1, $timestamp2, ..., $timestampN' format.
49
Basic Configuration
Cookie Name
pollN frontend guest-view
Cookie Description
A poll ID to indicate that the poll has been already voted.
Session ID
Allows guests to edit their orders.
The following table contains a list of cookies, which Magento additionally stores on the customer’s side if the Full Page Cache functionality is enabled.
Cookie Name Cookie Description
CUSTOMER Hashed value of a customer ID in the 'customer_$customerId' format
CUSTOMER_INFO
NEWMESSAGE
Hashed value of a customer group ID in the
'customer_group_$customerGroupId' format
Indicates whether a new message has been received
CART Hashed value of a quote ID in the '$quoteId' format
COMPARE
POLL
RECENTLYCOMPARED
WISHLIST
WISHLIST_CNT
CUSTOMER_AUTH
CATEGORY_INFO
LAST_CATEGORY
VIEWED_PRODUCT_IDS currency store
NO_CACHE
LAST_PRODUCT
List of product IDs added by customer to compare list in the '$productId
1, $productId 2, ..., productId N' format
ID of a recently voted poll
A customer's list of recently compared product IDs in the '$productId 1,
$productId 2, ..., productId N' format
Hashed list of products added to Wishlist in the '$productId 1_$productId
2_..._productId N' format
Hashed number of items in the customer's Wishlist in the
'wishlist_item_count_$productCount' format
Indicates whether a customer is logged in. A hashed value of
'customer_logged_in_0|1'
Stores the category info on the page. This allows displaying pages more quickly.
Recently visited category ID in the '$categoryID' format
Recently viewed product IDs in '$productId 1, $productId 2, ..., productId N' format
Code of the currency selected by a customer ('USD', 'UAH', 'GBP', etc.)
Store view code
Indicates whether it is allowed to use cache
Last viewed product ID
50
Basic Configuration
If the Google Analytics module is enabled and using cookies is allowed by a customer, Magento stores the following Google Analytics cookies:
_utma
_utmb_
_utmc
_utmz.
For a description of the Google Analytics cookies, refer to the official Google documentation.
51
P
ART
II: P
RODUCTS AND
P
RODUCT
C
ATALOGS
5 Setting Up Your Catalog
Attributes,” page 62, describes how to add products and define their attributes.
5.1 Overview
The best workflow for creating your products is as follows:
Step 1
Setting Up Catalog Defaults
Step 2
Creating Categories
Step 3
Creating Attributes
Step 4
Creating Attribute Sets
Step 5
Creating a New Product
The following describes the process depicted above:
Step 1: “Setting Up Catalog Defaults,” page 54. This step describes how to set basic catalog
default configurations that define its behavior.
Step 2: “Creating Categories,” page 63. The next step is to create the categories that will
contain your products. Each product can be assigned to one or more categories.
A Magento store with Sample Data provides three such categories: Furniture, Electronics, and Apparel. Categories can have multiple levels of subcategories. A customer can click on a category to see a drop-down menu of subcategories, such as Cell Phones, Cameras, and
Computers, as shown in Figure 60.
53
Scarica
Pubblicità