From bbfff8035fe239208edff9c2d870182e7dc2a620 Mon Sep 17 00:00:00 2001
From: Michael RICOIS
Date: Fri, 8 Dec 2017 16:50:46 +0100
Subject: [PATCH 1/3] Align quantity alert
---
themes/site_mobile/css/style.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/themes/site_mobile/css/style.css b/themes/site_mobile/css/style.css
index a9814218..c9f53ade 100755
--- a/themes/site_mobile/css/style.css
+++ b/themes/site_mobile/css/style.css
@@ -5124,7 +5124,7 @@ body#product #best-sellers_block_product{
}
*/
#product_list li div.productQuantityAlert{
- text-align: center;
+ /*text-align: center;*/
/*width: 250px;*/
margin: 0 !important;
padding: 5px 0 !important;
From 334eb4937264b8b35e28f3650c223ecf039dd0c8 Mon Sep 17 00:00:00 2001
From: Michael RICOIS
Date: Fri, 8 Dec 2017 17:25:11 +0100
Subject: [PATCH 2/3] Check quantity
---
.../site_mobile/modules/expresscart/product.tpl | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/themes/site_mobile/modules/expresscart/product.tpl b/themes/site_mobile/modules/expresscart/product.tpl
index 280bae49..7507cbf9 100755
--- a/themes/site_mobile/modules/expresscart/product.tpl
+++ b/themes/site_mobile/modules/expresscart/product.tpl
@@ -400,11 +400,12 @@
{$product->name}
-
+
{assign var=id_image value=Product::getCover($product->id)}
+ {if $product->quantity > 0}
{if isset($groups)}
@@ -424,8 +425,6 @@
{/if}
- {*
reference}style="display: none;"{/if}>{$product->reference|escape:'htmlall':'UTF-8'}
*}
-
quantity <= 0) OR $virtual OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}>
@@ -438,18 +437,21 @@
- {/if}
+ {/if}
+ {/if}
-
+ {if $product->quantity > 0}
+
+
+ {/if}
- quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}>
- {*{l s='Availability:' mod='expresscart'}*}
+
quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}>
quantity <= 0} class="warning_inline"{/if}>
{if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock' mod='expresscart'}{/if}{else}{$product->available_now}{/if}
From 20e81b9fc427389e11a6de8a9fcc38eacf501dfb Mon Sep 17 00:00:00 2001
From: Michael RICOIS
Date: Mon, 11 Dec 2017 10:18:19 +0100
Subject: [PATCH 3/3] Align add_to_cart to the right
---
themes/site_mobile/img/cross.png | Bin 0 -> 983 bytes
.../site_mobile/modules/expresscart/product.tpl | 15 +++++++++++++++
2 files changed, 15 insertions(+)
create mode 100644 themes/site_mobile/img/cross.png
diff --git a/themes/site_mobile/img/cross.png b/themes/site_mobile/img/cross.png
new file mode 100644
index 0000000000000000000000000000000000000000..f87b72436ac10b353cc711d238c0386e91b8750c
GIT binary patch
literal 983
zcmV;|11S87P)v6lAJWp%O}I7YJ0f5(`iT3tEs@6^alz3zk*)Y*@sR
zswjkwQOO^`hHOd~s09f{C{Ph7s=y(w)x4VE`Vr5}WpS^^W5)p&h$DI7xo5uf`p$Pp
z*u{$D1s6>}Z~-_690v~A;}S3r%mK3q<@7|>>xQG+KywAxf@jc70vo_p;B{aah}qw;
zeRdVtKr>k!FJz(^O_KGXdtkONJny=XIsFB>3nvki4|5*%oSV<
zei@jKfD7Ps0jJ|k+jpjmxx!_O<#twZ$%6ZUDKpUMAOI1>Q9JV2zHcHq3Pb=r8}!|D
zK06Zzus#3QW&tAT?FMdYfcTS-<8M}|{d~U(0$L-EBL2)UB0_cX9znT|xM31o2rr~3
zvWsHbG6{@@Z3#5aKrgBH&Ja5^2*CQan>_mFS8x>g0fTRzp#P-|0G0XQSig1?-S9x9
z+1e?D50s_iSfuA@KOlB6iJMA5paB?q`xJYg*bjkb-z!H#aDbllV>pSpL1@in3{AhX
zJjXJ^c=R|_Z!hC-RzQhy_XASzpQZ1_2+8xKpmi9avAlt|S~kAzSQnICqV}E8AU!Un
zkG?QL1WTQn)6La|MWiw!ruw^Jk{g)D}
zpL~V5PUqXrf5%m1{X5V#h|qYj#mdxm{D-YdP(uCg3ag*qAlUX=Yq!%5DE`4D=8!mh
z6eqd2^)S%v8A;K1@-Xgvi{+~6fx0l0us|!o4eSRzC
zzrR^!b>;?*`wznb*M9uNv{CD*RFu1moweR$X+#OtpY9P<>McbTLDw6&`;8cS8;_{p
zDMi`T61%^XYtvI5mE(5XDd#)nI(p&E09UL7fEHKTE!~CZN)XpU9Mxov16;AUn)|<8
znbLXbr}J5_m@8y}aVz8h#-@OYbUwS-#9%jp`>#J+{sO8zqpRrl3TXfU002ovPDHLk
FV1n2~)}8