From 6e1143fb9bcfa58ddca060dea7b4c7c90c1f8be2 Mon Sep 17 00:00:00 2001 From: sThiebaut Date: Thu, 8 Dec 2011 17:08:13 +0000 Subject: [PATCH] // maj --- themes/default/addresses.tpl | 4 +- themes/default/css/global.css | 77 +++++++++------ themes/default/css/product.css | 42 +++++++++ themes/default/css/product_list.css | 4 +- .../order-address-multishipping-products.tpl | 1 + .../default/order-address-multishipping.tpl | 12 +-- themes/default/order-address-product-line.tpl | 90 +++++++++--------- themes/default/order-carrier.tpl | 38 ++++---- themes/default/order-payment.tpl | 79 ++++++++++------ themes/default/product-list.tpl | 5 +- themes/default/product.tpl | 94 ++++++++++--------- themes/default/shopping-cart.tpl | 21 +---- 12 files changed, 268 insertions(+), 199 deletions(-) diff --git a/themes/default/addresses.tpl b/themes/default/addresses.tpl index 0d3d82fa5..c19be7754 100644 --- a/themes/default/addresses.tpl +++ b/themes/default/addresses.tpl @@ -113,8 +113,8 @@ {/foreach} {/foreach} -
  • {l s='Update'}
  • -
  • {l s='Delete'}
  • +
  • » {l s='Update'}
  • +
  • » {l s='Delete'}
  • {/foreach} diff --git a/themes/default/css/global.css b/themes/default/css/global.css index 5aaaceee1..04a094074 100644 --- a/themes/default/css/global.css +++ b/themes/default/css/global.css @@ -202,9 +202,11 @@ input.button_small, input.button_small_disabled, input.exclusive_small, input.ex /*width: 60px; background-image: url('../img/button-small.png')*/ } -input.button, input.button_disabled, input.exclusive, input.exclusive_disabled, a.button, a.exclusive, span.button, span.exclusive { - /*width: 120px; - background-image: url('../img/button-medium.png')*/ +input.button_disabled, input.exclusive_disabled, span.exclusive { + border:1px solid #ccc; + color:#999; + background:url(../img/bg_bt_2.gif) repeat-x 0 0 #f4b61b; + cursor:default; } input.button_large, input.button_large_disabled, input.exclusive_large, input.exclusive_large_disabled, a.button_large, a.exclusive_large, span.button_large, span.exclusive_large, span.exclusive_large_disabled { /*width: 180px; @@ -552,6 +554,7 @@ div.star_hover a, div.star a:hover { background-position: 0 -32px } padding:0 0 10px 0; background:none; } +#footer .myaccount .lnk_wishlist img {display:none} /* ************************************************************************************************ PRODUCT PAGE @@ -695,7 +698,8 @@ table#cart_summary .cart_delete { .cart_total_tax {display:none} .cart_total_delivery #total_shipping, -.cart_total_price #total_price { +.cart_total_price #total_price, +.cart_total_price #total_product { border-right:none } @@ -954,29 +958,30 @@ margin: 10px 0 0 0;*/ #order .delivery_option label > table.resume td, #orderopc .delivery_option label > table.resume td { padding: 0 8px; } -#order .delivery_option label > table.resume td + td, #order .delivery_option_carrier label > table.resume td + td, #orderopc .delivery_option label > table.resume td + td { - width: 280px; +#order .delivery_option label > table.resume td + td, #orderopc .delivery_option label > table.resume td + td { + width: 300px; } -#order .delivery_option label > table.resume td + td + td, #order .delivery_option_carrier label > table.resume td + td + td, #orderopc .delivery_option label > table.resume td + td + td { +#order .delivery_option label > table.resume td + td + td, #orderopc .delivery_option label > table.resume td + td + td { width: 100px; text-align: right; } +#order .delivery_option_carrier td {width:200px} +#order .delivery_option_carrier td + td {width:280px;} +#order .delivery_option_carrier td + td + td {width:200px} #order .delivery_options_address .delivery_option_logo, #order .delivery_option_carrier .delivery_option_logo, #orderopc .delivery_options_address .delivery_option_logo { padding-left:10px; - width: 190px; + width: 160px; } #order .delivery_options_address .delivery_option_logo img, #orderopc .delivery_options_address .delivery_option_logo img { height: 40px; } #orderopc .delivery_option_carrier { - margin: 5px 20px; + margin: 0 0 0 45px; padding: 5px; - width: 500px; - border: 1px solid #bdc2c9; + width: 680px; background: white; } -#order .delivery_option_carrier { - margin: 0 0 0 45px; - width: 585px; - background: white; +#order .delivery_option_carrier .first_item { + padding:0 0 0 5px; + background:url(../img/arrow_right_2.png) no-repeat 0 2px } .order_carrier_content { @@ -1078,45 +1083,59 @@ a.iframe {font-weight:bold} /* ************************************************************************************************ PAGE ORDER-OPC ************************************************************************************************ */ -#order-opc #left_column {display:none} -#order-opc #center_column{width:757px} +#orderopc #left_column {display:none} +#orderopc #center_column{width:757px} -#order-opc h2 {} -#order-opc h2 span { +#orderopc h2 {} +#orderopc h2 span { display:inline-block; padding:5px 7px; color:#fff; background:#333; } -#order-opc #login_form fieldset { +#orderopc #login_form fieldset { background: none repeat scroll 0 0 #FFFFE0; border: 1px solid #E6DB55; font-size: 13px; margin: 0 0 10px; padding: 10px; } -#order-opc #login_form fieldset p {padding:0} -#order-opc #login_form fieldset p a {padding:0} +#orderopc #login_form fieldset p {padding:0} +#orderopc #login_form fieldset p a {padding:0} -#order-opc #new_account_form p.submit { +#orderopc #new_account_form p.submit { margin-right: 120px; text-align:right } -#order-opc #new_account_form p.opc-required {margin-left:20px} +#orderopc #new_account_form p.opc-required {margin-left:20px} -#order-opc .addresses {margin-bottom:20px} +#orderopc .addresses {margin-bottom:20px} -#order-opc #opc_delivery_methods h3 {margin-top:20px;} -#order-opc #opc_delivery_methods textarea { +#orderopc #opc_delivery_methods h3 {margin-top:20px;} +#orderopc #opc_delivery_methods textarea { height:60px; width:755px; border:1px solid #ccc } -#order-opc #opc_payment_methods {margin-bottom:20px} -#order-opc #opc_payment_methods #opc_payment_methods-content p{margin:0} +#orderopc #opc_payment_methods {margin-bottom:20px} +#orderopc #opc_payment_methods #opc_payment_methods-content p{margin:0} + +#orderopc .delivery_option_carrier td {width:200px} +#orderopc .delivery_option_carrier td + td {width:280px;} +#orderopc .delivery_option_carrier td + td + td {width:200px} +#orderopc .delivery_option_carrier { + margin: 0 0 0 45px; + padding: 5px; + width: 680px; + background: white; +} +#orderopc .delivery_option_carrier .first_item { + padding:0 0 0 5px; + background:url(../img/arrow_right_2.png) no-repeat 0 2px +} /* ************************************************************************************************ diff --git a/themes/default/css/product.css b/themes/default/css/product.css index f3c9c3b68..cf45baa7e 100644 --- a/themes/default/css/product.css +++ b/themes/default/css/product.css @@ -133,6 +133,9 @@ span.view_scroll_spacer { text-align:right } +/* short description pack */ +.short_description_pack {display:none;} + /* color_picker */ #pb-left-column #color_picker p { padding-bottom:5px; @@ -322,6 +325,8 @@ span.view_scroll_spacer { #send_friend_form .form_container p.txt_required { padding-bottom:0; color:#666 + +/* SEND TO FRIEND (pop-in) ##################################################################### */ } #send_friend_form .form_container .text {padding-bottom:10px} #send_friend_form .form_container .text label { @@ -345,3 +350,40 @@ span.view_scroll_spacer { text-align:right } +/* PACK ##################################################################### */ +#blockpack { + margin-top:20px; + padding-top:20px; + border-top:1px dotted #999 +} + +/* PERSONNALISATION ##################################################################### */ +.customization_block {} +.customization_block p.infoCustomizable { + margin:10px 0 20px; + padding:0 0 0 20px; + background:url(../img/icon/infos.gif) no-repeat 0 0 transparent +} + +ul#uploadable_files, +ul#text_fields {list-style-type:none} +.customizableProductsFile, +.customizableProductsText{ + margin-bottom:20px; + padding-bottom:10px; + border-bottom:1px dotted #ccc; +} +.customizationUploadLine {padding-bottom:10px} +.customizationUploadLine label { + display:inline-block; + width:150px; + vertical-align:top +} +.customizationUploadLine textarea { + height:50px; + width:300px; + border:1px solid #ccc +} +#customizedDatas { + float:right; +} diff --git a/themes/default/css/product_list.css b/themes/default/css/product_list.css index 1c426529c..b6c1eef6a 100644 --- a/themes/default/css/product_list.css +++ b/themes/default/css/product_list.css @@ -103,9 +103,7 @@ ul#product_list { background: none repeat scroll 0 0 #9B0000 } #product_list li .online_only { - position:absolute; - top:20px; - right:0; + margin:0 0 10px 0 } #product_list li .content_price { margin:26px 0 15px 0; diff --git a/themes/default/order-address-multishipping-products.tpl b/themes/default/order-address-multishipping-products.tpl index 5644b15ef..ac2f60ce2 100644 --- a/themes/default/order-address-multishipping-products.tpl +++ b/themes/default/order-address-multishipping-products.tpl @@ -34,6 +34,7 @@ {l s='Ref.'} {l s='Qty'} {l s='Shipping address'} + {l s=''} diff --git a/themes/default/order-address-multishipping.tpl b/themes/default/order-address-multishipping.tpl index 62ff7973e..9b9e80074 100644 --- a/themes/default/order-address-multishipping.tpl +++ b/themes/default/order-address-multishipping.tpl @@ -166,7 +166,7 @@
    {/if} -
    +

    id_address_invoice == $cart->id_address_delivery}style="display: none;"{/if}> @@ -181,12 +181,12 @@ {l s='Add a new address'} {/if}

    -
    -
      -
    -
    +
    +
      +
    +

    - {l s='Add a new address'} + » {l s='Add a new address'}

    {if !$opc}
    diff --git a/themes/default/order-address-product-line.tpl b/themes/default/order-address-product-line.tpl index 1d52bd7d6..49e3fd7a3 100644 --- a/themes/default/order-address-product-line.tpl +++ b/themes/default/order-address-product-line.tpl @@ -33,52 +33,54 @@ {if $product.reference}{$product.reference|escape:'htmlall':'UTF-8'}{else}--{/if} - {if isset($cannotModify) AND $cannotModify == 1} - {if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.cart_quantity-$quantityDisplayed}{/if} - {else} - {if isset($customizedDatas.$productId.$productAttributeId) AND $quantityDisplayed == 0}{$product.customizationQuantityTotal}{/if} - {if !isset($customizedDatas.$productId.$productAttributeId) OR $quantityDisplayed > 0} -
    - {l s='Delete'} -
    -
    - {l s='Add'}
    - {if $product.minimal_quantity < ($product.cart_quantity-$quantityDisplayed) OR $product.minimal_quantity <= 1} - - {l s='Subtract'} - - {else} - - {l s='Subtract'} - - {/if} -
    - - - + {if isset($cannotModify) AND $cannotModify == 1} + {if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.cart_quantity-$quantityDisplayed}{/if} + {else} + {if isset($customizedDatas.$productId.$productAttributeId) AND $quantityDisplayed == 0}{$product.customizationQuantityTotal}{/if} + {if !isset($customizedDatas.$productId.$productAttributeId) OR $quantityDisplayed > 0} +
    + {l s='Add'}
    + {if $product.minimal_quantity < ($product.cart_quantity-$quantityDisplayed) OR $product.minimal_quantity <= 1} + + {l s='Subtract'} + + {else} + + {l s='Subtract'} + {/if} +
    + + + {/if} + {/if} - - - - - - +
    + + + +
    + + + {if !isset($customizedDatas.$productId.$productAttributeId) OR $quantityDisplayed > 0} + {l s='Delete'} + {/if} + \ No newline at end of file diff --git a/themes/default/order-carrier.tpl b/themes/default/order-carrier.tpl index c6c240673..8277dc0e6 100644 --- a/themes/default/order-carrier.tpl +++ b/themes/default/order-carrier.tpl @@ -157,25 +157,25 @@ - - {foreach $option.carrier_list as $carrier} - - - - - - {/foreach} -
    - {if $carrier.logo} - {$carrier.instance->name} - {/if} - - {$carrier.instance->name} - - {if isset($carrier.instance->delay[$cookie->id_lang])} - {$carrier.instance->delay[$cookie->id_lang]} - {/if} -
    + + {foreach $option.carrier_list as $carrier} + + + + + + {/foreach} +
    + {if $carrier.logo} + {$carrier.instance->name} + {/if} + + {$carrier.instance->name} + + {if isset($carrier.instance->delay[$cookie->id_lang])} + {$carrier.instance->delay[$cookie->id_lang]} + {/if} +
    {/foreach} diff --git a/themes/default/order-payment.tpl b/themes/default/order-payment.tpl index d3ddab665..36e90cc72 100644 --- a/themes/default/order-payment.tpl +++ b/themes/default/order-payment.tpl @@ -160,45 +160,62 @@ {if $use_taxes} - - {if $display_tax_label} - {l s='Total (tax excl.):'} - {else} - {l s='Subtotal:'} + + {if $voucherAllowed} + {if isset($errors_discount) && $errors_discount} +
      + {foreach from=$errors_discount key=k item=error} +
    • {$error|escape:'htmlall':'UTF-8'}
    • + {/foreach} +
    {/if} + {/if} - {displayPrice price=$total_price_without_tax} - - - - {if $display_tax_label} - {l s='Total tax:'} - {else} - {l s='Estimated Sales Tax:'} - {/if} + +

    {l s='Total:'}

    + {displayPrice price=$total_price} - {displayPrice price=$total_tax} - - - - {if $display_tax_label} - {l s='Total (tax incl.):'} - {else} - {l s='Total:'} - {/if} - - {displayPrice price=$total_price} {else} - {l s='Total:'} - {displayPrice price=$total_price_without_tax} + + {if $voucherAllowed} +
    + {if isset($errors_discount) && $errors_discount} +
      + {foreach from=$errors_discount key=k item=error} +
    • {$error|escape:'htmlall':'UTF-8'}
    • + {/foreach} +
    + {/if} + {if $voucherAllowed} +
    +
    +

    +

    + +

    +

    + {if $displayVouchers} +

    {l s='Take advantage of our offers:'}

    +
    + {foreach from=$displayVouchers item=voucher} + {$voucher.name} - {$voucher.description}
    + {/foreach} +
    + {/if} +
    +
    + {/if} +
    + {/if} + + +

    {l s='Total:'}

    + {displayPrice price=$total_price_without_tax} + {/if} - {* - {l s='Remaining amount to be added to your cart in order to obtain free shipping:'} - {displayPrice price=$free_ship} - *} {foreach from=$products item=product name=productLoop} diff --git a/themes/default/product-list.tpl b/themes/default/product-list.tpl index 396f3f7ef..d8bb36eea 100644 --- a/themes/default/product-list.tpl +++ b/themes/default/product-list.tpl @@ -48,12 +48,12 @@
    {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}{l s='On sale!'} {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}{l s='Reduced price!'}{/if} - {if isset($product.online_only) && $product.online_only}{l s='Online only!'}{/if} {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
    {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}
    {/if} {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}{if ($product.allow_oosp || $product.quantity > 0)}{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}{l s='Product available with different options'}{else}{l s='Out of stock'}{/if}{/if}
    + {if isset($product.online_only) && $product.online_only}{l s='Online only!'}{/if} {/if} {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE} {if ($product.allow_oosp || $product.quantity > 0)} @@ -61,7 +61,8 @@ {l s='Add to cart'} {else} {l s='Add to cart'} - {/if} {else} + {/if} + {else} {l s='Add to cart'}
    {/if} {/if} diff --git a/themes/default/product.tpl b/themes/default/product.tpl index a3da4140c..c7aa80b55 100644 --- a/themes/default/product.tpl +++ b/themes/default/product.tpl @@ -156,7 +156,6 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus

    -

    @@ -233,13 +232,15 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus

    {l s='More details'}

    {/if} {if $packItems|@count > 0} +

    {l s='Pack content'}

    {foreach from=$packItems item=packItem} -
    - {$packItem.pack_quantity} x {$packItem.name|escape:'htmlall':'UTF-8'} -

    {$packItem.description_short}

    -
    +
    + {$packItem.pack_quantity} x {$packItem.name|escape:'htmlall':'UTF-8'} +

    {$packItem.description_short}

    +
    {/foreach} +
    {/if}
    {/if} @@ -332,7 +333,7 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus - {/if} + {/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}> @@ -357,10 +358,6 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus

    quantity > $last_qties OR $product->quantity <= 0) OR $allow_oosp OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none"{/if} >{l s='Warning: Last items in stock!'}

    - - {if $product->online_only} -

    {l s='Online only'}

    - {/if}
    @@ -432,7 +429,11 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus {*close if for show price*} {/if} - quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE} style="display: none;"{/if} id="add_to_cart" class="buttons_bottom_block">

    + {if $product->online_only} +

    {l s='Online only'}

    + {/if} + + quantity > 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE} style="display: none;"{/if} id="add_to_cart" class="buttons_bottom_block">

    {if isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS}{$HOOK_PRODUCT_ACTIONS}{/if} @@ -446,8 +447,8 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus {if isset($quantity_discounts) && $quantity_discounts} -
      -
    • {l s='Quantity discount'}
    • +
      @@ -548,53 +549,60 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus {if isset($product) && $product->customizable} -
        -
      • {l s='Product customization'}
      • +
        -
        -

        - Informations + +

        {l s='After saving your customized product, remember to add it to your cart.'} {if $product->uploadable_files}
        {l s='Allowed file formats are: GIF, JPG, PNG'}{/if}

        {if $product->uploadable_files|intval} -

        {l s='Pictures'}

        -
          - {counter start=0 assign='customizationField'} - {foreach from=$customizationFields item='field' name='customizationFields'} - {if $field.type == 0} -
        • {assign var='key' value='pictures_'|cat:$product->id|cat:'_'|cat:$field.id_customization_field} - {if isset($pictures.$key)}
          +
          +

          {l s='Pictures'}

          +
            + {counter start=0 assign='customizationField'} + {foreach from=$customizationFields item='field' name='customizationFields'} + {if $field.type == 0} +
          • {assign var='key' value='pictures_'|cat:$product->id|cat:'_'|cat:$field.id_customization_field} + {if isset($pictures.$key)} +
            {l s='Delete'} -
            {/if} -
            {if $field.required}*{/if} -
            {if !empty($field.name)}{$field.name}{else}{l s='Please select an image file from your hard drive'}{/if}
            -
          • - {counter} - {/if} - {/foreach} -
          +
          + {/if} +
          + + +
          +
        • + {counter} + {/if} + {/foreach} +
        +
        {/if} -
        {if $product->text_fields|intval} -

        {l s='Texts'}

        -
          +
          +

          {l s='Texts'}

          +
            {counter start=0 assign='customizationField'} {foreach from=$customizationFields item='field' name='customizationFields'} {if $field.type == 1} -
          • {assign var='key' value='textFields_'|cat:$product->id|cat:'_'|cat:$field.id_customization_field} - {if !empty($field.name)}{$field.name}{/if}{if $field.required}*{/if} -
          • - {counter} +
          • + + +
          • + {counter} {/if} {/foreach} -
          +
        + {/if} -

        +

        @@ -606,7 +614,7 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus {/if} {if isset($packItems) && $packItems|@count > 0} -

        +

        {l s='Pack content'}

        {include file="$tpl_dir./product-list.tpl" products=$packItems}
        diff --git a/themes/default/shopping-cart.tpl b/themes/default/shopping-cart.tpl index a5b3b31b8..4fe781b09 100644 --- a/themes/default/shopping-cart.tpl +++ b/themes/default/shopping-cart.tpl @@ -82,25 +82,6 @@
      - - - - - - - - - - - - - - - - - - -
      {if $use_taxes} @@ -355,7 +336,7 @@ {/if} {if ((!empty($delivery_option) AND !isset($virtualCart)) OR $delivery->id OR $invoice->id) AND !$opc} -
      +
      {if !isset($formattedAddresses)} {if $delivery->id}