ソースを参照

Changes to the related products block

master
Oliver Randell 13年前
コミット
9dbba3aa4d
3個のファイルの変更5行の追加3行の削除
  1. 1
    1
      oscar/defaults.py
  2. 1
    0
      oscar/templates/base.html
  3. 3
    2
      sandbox/settings.py

+ 1
- 1
oscar/defaults.py ファイルの表示

10
 OSCAR_DEFAULT_CURRENCY = 'GBP'
10
 OSCAR_DEFAULT_CURRENCY = 'GBP'
11
 
11
 
12
 # Max number of products to keep on the user's history
12
 # Max number of products to keep on the user's history
13
-OSCAR_RECENTLY_VIEWED_PRODUCTS = 4
13
+OSCAR_RECENTLY_VIEWED_PRODUCTS = 20
14
 
14
 
15
 # Paths
15
 # Paths
16
 OSCAR_IMAGE_FOLDER = 'images/products/%Y/%m/'
16
 OSCAR_IMAGE_FOLDER = 'images/products/%Y/%m/'

+ 1
- 0
oscar/templates/base.html ファイルの表示

6
         <meta name="created" content='{% now "jS M Y h:i" %}' />
6
         <meta name="created" content='{% now "jS M Y h:i" %}' />
7
         <meta name="description" content="{% block description %}{% endblock %}" />
7
         <meta name="description" content="{% block description %}{% endblock %}" />
8
         <meta name="keywords" content="{% block keywords %}{% endblock %}" />
8
         <meta name="keywords" content="{% block keywords %}{% endblock %}" />
9
+		<meta name="viewport" content="width=device-width">
9
         
10
         
10
         <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
11
         <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
11
         <!--[if lt IE 9]>
12
         <!--[if lt IE 9]>

+ 3
- 2
sandbox/settings.py ファイルの表示

234
 # Oscar settings
234
 # Oscar settings
235
 from oscar.defaults import *
235
 from oscar.defaults import *
236
 
236
 
237
+
238
+OSCAR_RECENTLY_VIEWED_PRODUCTS = 20
237
 OSCAR_ALLOW_ANON_CHECKOUT = True
239
 OSCAR_ALLOW_ANON_CHECKOUT = True
238
 OSCAR_INITIAL_ORDER_STATUS = 'Pending'
240
 OSCAR_INITIAL_ORDER_STATUS = 'Pending'
239
 OSCAR_INITIAL_LINE_STATUS = 'Pending'
241
 OSCAR_INITIAL_LINE_STATUS = 'Pending'
259
 try:
261
 try:
260
     from settings_local import *
262
     from settings_local import *
261
 except ImportError:
263
 except ImportError:
262
-    pass
263
-
264
+    pass

読み込み中…
キャンセル
保存