From bd1e41ed6aae688527310a6b1510a1ad452dafd1 Mon Sep 17 00:00:00 2001 From: TheCoreDev Date: Mon, 19 Apr 2021 17:09:30 +0200 Subject: [PATCH] =?UTF-8?q?Toujours=20sur=20int=C3=A9gration=20des=20prix?= =?UTF-8?q?=20d=C3=A9gressifs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/frontOffice/custom/cart.html | 12 +++ .../custom/includes/addedToCart.html | 75 +++++++++++++++++++ .../custom/includes/single-product.html | 2 +- templates/frontOffice/custom/product.html | 25 +++++-- 4 files changed, 105 insertions(+), 9 deletions(-) create mode 100644 templates/frontOffice/custom/includes/addedToCart.html diff --git a/templates/frontOffice/custom/cart.html b/templates/frontOffice/custom/cart.html index 382f77be..c342c766 100644 --- a/templates/frontOffice/custom/cart.html +++ b/templates/frontOffice/custom/cart.html @@ -105,10 +105,22 @@ {intl l="Remove"} + {ifloop rel="dp"} + {loop type="digressive" name="dp" product_id=$PRODUCT_ID quantity=$QUANTITY} + {if $IS_PROMO == 1} +
{format_money number=$TAXED_PROMO_PRICE}
+ {intl l="instead of"} {format_money number=$TAXED_PRICE} + {else} +
{format_money number=$TAXED_PRICE}
+ {/if} + {/loop} + {/ifloop} + {elseloop rel="dp"}
{format_money number=$REAL_TAXED_PRICE}
{if $IS_PROMO == 1} {intl l="instead of"} {format_money number=$TAXED_PRICE} {/if} + {/elseloop}
diff --git a/templates/frontOffice/custom/includes/addedToCart.html b/templates/frontOffice/custom/includes/addedToCart.html new file mode 100644 index 00000000..08115d39 --- /dev/null +++ b/templates/frontOffice/custom/includes/addedToCart.html @@ -0,0 +1,75 @@ +{* This page should not replace the current previous URL *} +{set_previous_url ignore_current="1"} + +{default_translation_domain domain='fo.custom'} +{loop type="product" name="add_product_to_cart" id={product attr="id"}} +
+ + + + + + + + + +
+

{intl l="The product has been added to your cart" }

+
+ {ifloop rel="pse-first-image"} + {loop type="product-sale-elements-image" name="pse-first-image" product_sale_elements_id={$smarty.get.pse_id} limit="1"} + {loop type="image" name="product-image" id=$PRODUCT_IMAGE_ID product=$ID limit="1" width="218" height="146" resize_mode="borders"} + Product #{$LOOP_COUNT} + {/loop} + {/loop} + {/ifloop} + {elseloop rel="pse-first-image"} + {loop type="image" name="product-image" product=$ID limit="1" width="218" height="146" resize_mode="borders"} + Product #{$LOOP_COUNT} + {/loop} + {/elseloop} + +

{$TITLE}

+ {loop type="attribute_combination" name="product_options" product_sale_elements={$smarty.get.pse_id} order="manual"} +

{$ATTRIBUTE_TITLE} : {$ATTRIBUTE_AVAILABILITY_TITLE}

+ {/loop} +
+ {ifloop rel="dp"} + {loop type="digressive" name="dp" product_id={product attr="id"} limit=1} + {if $IS_PROMO == 1} +
{format_money number=$TAXED_PROMO_PRICE}{intl l="unite"}
+ {format_money number=$TAXED_PRICE} + {else} +
{format_money number=$TAXED_PRICE}{intl l="unite"}
+ {/if} + {/loop} + {/ifloop} + {elseloop rel="dp"} + {loop type="product_sale_elements" name="product_price" id={$smarty.get.pse_id}} + {if $IS_PROMO == 1} +
{format_money number=$TAXED_PROMO_PRICE} {intl l="unite"}
+ {format_money number=$TAXED_PRICE} + {else} +
{format_money number=$TAXED_PRICE} {intl l="unite"}
+ {/if} + {/loop} + {/elseloop} +
+ {intl l="View Cart"} + +
+{ifloop rel="accessories"} + +{/ifloop} +{/loop} diff --git a/templates/frontOffice/custom/includes/single-product.html b/templates/frontOffice/custom/includes/single-product.html index 34af936b..8378a1df 100644 --- a/templates/frontOffice/custom/includes/single-product.html +++ b/templates/frontOffice/custom/includes/single-product.html @@ -64,7 +64,7 @@ {if $SHOW_ORIGINAL_PRICE} {intl l="Regular Price:"} - {format_money number=$TAXED_PRICE} + {intl l="From %price" price={format_money number=$TAXED_PRICE}} {/if} {/loop} diff --git a/templates/frontOffice/custom/product.html b/templates/frontOffice/custom/product.html index 57a9bcf7..5b9a32d8 100644 --- a/templates/frontOffice/custom/product.html +++ b/templates/frontOffice/custom/product.html @@ -210,19 +210,28 @@ {ifloop rel="dp"} {loop type="digressive" name="dp" product_id=$product_id quantity=1} - {intl l="Special Price:"} - {if $IS_PROMO} - {format_money number=$TAXED_PROMO_PRICE symbol={currency attr="symbol"}} - {else} - {format_money number=$TAXED_PRICE symbol={currency attr="symbol"}} - {/if} - + {intl l="Special Price:"} + {if $IS_PROMO} + {format_money number=$TAXED_PROMO_PRICE symbol={currency attr="symbol"}} + {else} + {format_money number=$TAXED_PRICE symbol={currency attr="symbol"}} + {/if} + {intl l="unite"} + {/loop} {/ifloop} {elseloop rel="dp"} + + {intl l="Special Price:"} {format_money number=$TAXED_PROMO_PRICE symbol={currency attr="symbol"}} + + + {if $SHOW_ORIGINAL_PRICE} + {intl l="Regular Price:"} {format_money number=$TAXED_PRICE} + {/if} + {/elseloop} - + {if $SHOW_ORIGINAL_PRICE} {intl l="Regular Price:"} {format_money number=$TAXED_PRICE}