Commits

Andres Vargas  committed c3c0a77

ultimo update

  • Participants
  • Parent commits cb6e8a2

Comments (0)

Files changed (7)

File local_settings.py

 EMAIL_HOST_PASSWORD="zxczxc12"
 EMAIL_USE_TLS = True
 EMAIL_PORT= 587
+
+PAYPAL_RECEIVER_EMAIL = "zodman@gmail.com"
+PAYPAL_IDENTITY_TOKEN = "q1XaiMmyxEZUfoNo7tqpkQu_4bzzF4PtuCFapFlsuS05tRu5xVctkjt5zTW"
+PAYPAL_TEST = False
+PAYPAL_DEBUG = False

File media/img/res.png

Added
New image
     'django.contrib.sessions.middleware.SessionMiddleware',
     'django.contrib.auth.middleware.AuthenticationMiddleware',
 # 'devserver.middleware.DevServerMiddleware',
-    'shop.midle.AJAXSimpleExceptionResponse',
 
 )
 
 
 # CACHE_BACKEND = 'file:///'
 # CACHE_BACKEND = 'locmem:///'
-# CACHE_BACKEND = 'memcached://127.0.0.1:11211/'
+CACHE_BACKEND = 'memcached://127.0.0.1:11211/'
 
 EMAIL_HOST = ""
 EMAIL_HOST_USER = ""
 EMAIL_HOST_PASSWORD = ""
 
-PAYPAL_RECEIVER_EMAIL = "zodman@gmail.com"
+PAYPAL_RECEIVER_EMAIL = ""
 PAYPAL_IDENTITY_TOKEN = ""
+PAYPAL_TEST = False
 
 # TODO: Put this into the Shop model
 LFS_PAYPAL_REDIRECT = True

File templates/lfs/catalog/categories_back/category/default.html

+{%extends "lfs/catalog/category_base" %}
+{% load i18n %}
+<div class="grid_7">
+<h1 class="first-heading">
+    {{ category.name }}
+</h1>
+
+<div id="categories">
+    <table class="lfs-default">
+        {% for row in categories %}
+            <tr>
+                {% for category in row %}                
+                    <td class="category-row">
+                        <h2 class="first-heading">{{ category.name }}</h2>
+                        <div class="category-image">
+                            <a href="{% url lfs_category category.slug %}">
+                                {% if category.image %}
+                                    <img src="{{category.image.url_100x100}}"
+                                         alt="{{category.name}}" />
+                                {% endif %}
+                            </a>
+                        </div>
+                        <div class="category-description">
+                            {{ category.short_description|safe }}
+                        </div>
+
+                        <div class="clear details-button">
+                            <a class="button emphasized"
+                               href="{% url lfs_category category.slug %}">{% trans 'Details' %}
+                            </a>
+                        </div>
+
+                        <hr>
+                    </td>
+                {% endfor %}
+            </tr>
+        {% endfor %}
+    </table>    
+</div>
+</div>

File templates/lfs/catalog/categories_back/product/default.html

+{% load i18n lfs_tags %}
+
+<div class="products-navigation">
+    {% if show_pages %}
+        {% if previous_url %}
+            <a href="{{ previous_url }}">&lt;&lt; {% trans 'Previous page' %}</a>
+        {% else %}
+            &lt;&lt; {% trans 'Previous page' %}
+        {% endif %}
+
+        {% if pages %}
+            -
+        {% endif %}
+
+        {% for page in pages %}
+            <a class="{% if page.selected%}current{% endif %}"
+               href="{% url lfs_category category.slug %}?start={{ page.start }}">
+                {{ page.name }}
+            </a>
+        {% endfor %}
+
+        ({{ amount_of_products }} {% trans 'Products' %})
+
+        {% if pages %}
+            -
+        {% endif %}
+
+        {% if next_url %}
+            <a href="{{ next_url }}">{% trans 'Next page' %} &gt;&gt;</a>
+        {% else %}
+            {% trans 'Next page' %} &gt;&gt;
+        {% endif %}
+    {% endif %}
+</div>
+
+{% sorting %}
+
+<h1>
+    {{ category.name }}
+</h1>
+<div id="products">
+    <table class="lfs-default">
+        {% for col in products %}
+        <tr class="product-row">
+            {% for product in col %}
+                <td class="product-data"
+                    onclick="window.location='{% url lfs.catalog.views.product_view product.slug %}'">
+                    <div class="product-image">
+                        <a href="{% url lfs.catalog.views.product_view product.slug %}">
+                            <img alt="{{ product.name }}"
+                                 src="{{ product.image.url_100x100 }}" />
+                        </a>
+                    </div>
+                    <div>
+                        <div class="product-title">{{ product.name }}</div>
+                        <div class="product-description">{{ product.obj.short_description|safe }}</div>
+                    </div>
+
+                    <div class="product-price">
+                        {% if product.get_for_sale %}
+                           <span class="for-sale-standard-price">{{ product.standard_price|currency }}</span>
+                           <span class="for-sale-price">{{ product.for_sale_price|currency }}*</span>
+                        {% else %}
+                            <span class="standard-price">{{ product.price|currency }}*</span>
+                        {% endif %}
+                        <div class="price-disclaimer">
+                            {% trans '*inc. VAT' %}
+                        </div>
+                    </div>
+                    <div class="details-button">
+                        <a class="button emphasized"
+                           href="{% url lfs_product product.slug %}">{% trans 'Details' %}
+                        </a>
+                    </div>
+                </td>
+            {% endfor %}
+        </tr>
+        {% endfor %}
+    </table>
+</div>

File templates/lfs/catalog/category_base.html.back

+{% extends "lfs/base.html" %}
+{% load i18n %}
+{% load lfs_tags %}
+{% load lfs_theme_tags %}
+{% load lfs_portlets_tags %}
+
+{%block wrapper %}
+{% block left-slot-wrapper %}
+{% slots_information%}
+    {% if SlotLeft %}
+        <div class="span-5">
+            <div class="left-slot">
+                {% block left-slot %}
+                    {% lfs_portlet_slot 'Left' %}
+                {% endblock %}
+            </div>
+        </div>
+    {% endif %}
+{% endblock %}
+ 
+
+    {% block content %}
+    {% endblock %}
+    <div class="clear"></div>
+{% endblock %}

File templates/lfs/shop/shop.html.back

+{% extends "lfs/shop/shop_base.html"%}
+{%block content %}
+<div class="category-center">
+    {%for pf in products%}
+    	{% with pf.product as product %}
+        <div class="span-6">
+		<div class="main-producto">
+			<div class="img"> 
+				<a href="{{product.get_absolute_url}}">
+					<img   src="{{product.get_image.url_200x200}}" title="{{product.name}}">
+				</a>
+			</div>
+			<div class="name">
+
+				<a href="{{product.get_absolute_url}}">
+					{{product.get_name}}
+				</a>
+			</div>
+		</div>
+         </div>
+	 {% endwith %}
+    {% endfor %}
+</div>
+{% endblock %}