From 018aaf51bc2652c9e6e8ca6702b3af3bc449a93f Mon Sep 17 00:00:00 2001 From: badsuricate Date: Mon, 21 Oct 2013 12:39:31 +0200 Subject: [PATCH 01/48] Add next and previous product --- templates/default/product.html | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/templates/default/product.html b/templates/default/product.html index b7b203bc9..9f42e8598 100644 --- a/templates/default/product.html +++ b/templates/default/product.html @@ -217,13 +217,21 @@ - {/loop} - + + {/loop} + {/block} \ No newline at end of file From 1a85589da4b50754f2d5ee3e1f1a704e07abb06f Mon Sep 17 00:00:00 2001 From: badsuricate Date: Mon, 21 Oct 2013 12:48:19 +0200 Subject: [PATCH 02/48] Use the argument "hasBtn" to display or hide "Add to cart" button --- templates/default/includes/single-product.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/templates/default/includes/single-product.html b/templates/default/includes/single-product.html index bade42365..76d26de64 100644 --- a/templates/default/includes/single-product.html +++ b/templates/default/includes/single-product.html @@ -115,12 +115,13 @@
- {if $hasSubmit == true} - - {else} - {intl l="View product"} + {if $hasBtn == true} + {if $hasSubmit == true} + + {else} + {intl l="View product"} + {/if} {/if} -
From d7afc641d701ed92a80695a9e3e6d7b5c90a23d4 Mon Sep 17 00:00:00 2001 From: badsuricate Date: Mon, 21 Oct 2013 12:49:14 +0200 Subject: [PATCH 03/48] SHow production information on products table --- templates/default/order-invoice.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/templates/default/order-invoice.html b/templates/default/order-invoice.html index 1037f0fe3..f14946835 100644 --- a/templates/default/order-invoice.html +++ b/templates/default/order-invoice.html @@ -92,15 +92,17 @@
{intl l="Available"} :
-
{intl l="In Stock"}
+ {if $STOCK > 0} +
{intl l="In Stock"}
+ {else} +
{intl l="Out of Stock"}
+ {/if}
{intl l="No."}
{$REF}
- {*
Select Size
-
Large
-
Select Delivery Date
-
Jan 2, 2013
-
Additional Option
-
Option 1
*} + {loop type="attribute_combination" name="product_options" product_sale_elements="$PRODUCT_SALE_ELEMENTS_ID"} +
{$ATTRIBUTE_TITLE}
+
{$ATTRIBUTE_AVAILABILITY_TITLE}
+ {/loop}
From d1e59306b370bc79cf7ad2c2282a6c5bf7aff93c Mon Sep 17 00:00:00 2001 From: badsuricate Date: Mon, 21 Oct 2013 12:50:55 +0200 Subject: [PATCH 04/48] Add error message if the category haven't got products --- templates/default/category.html | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/templates/default/category.html b/templates/default/category.html index 6ad99485c..8999fa0d5 100644 --- a/templates/default/category.html +++ b/templates/default/category.html @@ -18,17 +18,24 @@ {$product_page={$smarty.get.page|default:1}} {$product_order={$smarty.get.order|default:'alpha'}}
- {include file="includes/toolbar.html" toolbar="top" limit=$limit order=$product_order} -
-
-
    - {loop type="product" name="product_list" category={category attr="id"} limit=$limit page=$product_page order=$product_order} - {include file="includes/single-product.html" product_id=$ID hasBtn=true hasDescription=true width="218" height="146"} - {/loop} -
+ {ifloop rel="product_list"} + {include file="includes/toolbar.html" toolbar="top" limit=$limit order=$product_order} +
+
+
    + {loop type="product" name="product_list" category={category attr="id"} limit=$limit page=$product_page order=$product_order} + {include file="includes/single-product.html" product_id=$ID hasBtn=true hasDescription=true width="218" height="146"} + {/loop} +
+
+
+ {include file="includes/toolbar.html" toolbar="bottom"} + {/ifloop} + {elseloop rel="product_list"} +
+ No products
-
- {include file="includes/toolbar.html" toolbar="bottom"} + {/elseloop}