diff --git a/app/views/admin/product_order_documents/_vs_bl.html.haml b/app/views/admin/product_order_documents/_vs_bl.html.haml index 5ae2064..893cdd5 100644 --- a/app/views/admin/product_order_documents/_vs_bl.html.haml +++ b/app/views/admin/product_order_documents/_vs_bl.html.haml @@ -10,7 +10,7 @@ - if @product_order.reseaux_id != 19 - %div{:style => "height:350px;"} + %div{:style => "height:320px;"} -else %div{:style => "height:140px;"} diff --git a/app/views/product_orders_mails/confirmation_cb.html.haml b/app/views/product_orders_mails/confirmation_cb.html.haml index ff105ff..3540f77 100755 --- a/app/views/product_orders_mails/confirmation_cb.html.haml +++ b/app/views/product_orders_mails/confirmation_cb.html.haml @@ -2,7 +2,16 @@ %p Bonjour, - %p Nous avons le plaisir de vous informer que votre paiement par carte bancaire a été accepté. + %p + Nous avons le plaisir de vous informer que votre paiement par carte bancaire a été accepté + + + + -if @product_order.reseaux_id != 19 + pour votre commande numéro + + -@product_order.product_order_documents.where(:product_order_document_type_id => 5).each do |document| + ="N°#{document.d_number}" %p Nous vous remercions pour votre commande que nous traiterons dans les meilleurs délais. diff --git a/app/views/product_orders_mails/confirmation_cheque.html.haml b/app/views/product_orders_mails/confirmation_cheque.html.haml index 61d8497..0d9e1da 100755 --- a/app/views/product_orders_mails/confirmation_cheque.html.haml +++ b/app/views/product_orders_mails/confirmation_cheque.html.haml @@ -4,7 +4,14 @@ %p Bonjour, - %p Nous vous remercions pour votre commande. + %p + Nous vous remercions pour votre commande + numéro + + -@product_order.product_order_documents.where(:product_order_document_type_id => 5).each do |document| + ="N°#{document.d_number}" + + -if @product_order.reseaux_id != 19 %p Nous vous confirmerons prochainement la date de livraison. diff --git a/app/views/product_orders_mails/fournisseur.html.haml b/app/views/product_orders_mails/fournisseur.html.haml index 8822ec6..b67dcdd 100644 --- a/app/views/product_orders_mails/fournisseur.html.haml +++ b/app/views/product_orders_mails/fournisseur.html.haml @@ -41,7 +41,7 @@ %th Nom %th Nbr -if true - %th Prix U. HT + %th Total HT -@product_order.sub_products.group(:reference).where(:fournisseur_id => @fournisseur.id).each do |sub_product_group| @@ -65,19 +65,7 @@ =number_to_currency sub_products[0].price_tot_with_qte %br -%br - -%p - Merci de confirmer la disponibilité de cette commande au grossiste : -%p{:style => "text-align:center"} - La Vouisienne - %br - 26 route du Colombier - %br - 38960 Saint Etienne de Crossey - %br - Tél : 04 76 55 30 94 - Mail : - =link_to "contact@lavouisienne.fr", "mailto:contact@lavouisienne.fr" + %br Cordialement, diff --git a/app/views/public/product_order_products/_cart.html.haml b/app/views/public/product_order_products/_cart.html.haml index e09e66a..49c3131 100644 --- a/app/views/public/product_order_products/_cart.html.haml +++ b/app/views/public/product_order_products/_cart.html.haml @@ -12,23 +12,28 @@ commandés -else commandé - - -product = Product.where(:archived => false, :reseaux_id => @reseaux.id).where("id != ?",@product.id ).first - -if product + -products = Product.where(:archived => false, :reseaux_id => @reseaux.id).where("id != ?",@product.id ).limit(2) + -if products.count > 1 + %h3 Ces produits pourraient aussi vous intéresser : + -elsif products.count > 0 %h3 Ce produit pourrait aussi vous intéresser : - =link_to public_reseaux_product_path(:reseaux_id => @reseaux.id,:id => product.id, :slug => product.lang(I18n.locale).slug) do - .product.product-item - .inner - =image_tag product.default_image.image_file.file.large.medium.url if product.default_image + -products.each do |product| + -if product + + =link_to public_reseaux_product_path(:reseaux_id => @reseaux.id,:id => product.id, :slug => product.lang(I18n.locale).slug) do + .product.product-item + .inner + =image_tag product.default_image.image_file.file.large.medium.url if product.default_image - .description - %h3.product-title - =product.lang(I18n.locale).title - %p - .btn.btn-primary - Voir ce produit + .description + %h3.product-title + =product.lang(I18n.locale).title + %p + .btn.btn-primary + Voir ce produit - .clear + .clear + %br diff --git a/app/views/public/product_orders/select_payment.html.haml b/app/views/public/product_orders/select_payment.html.haml index 45d9dd9..310d7ed 100755 --- a/app/views/public/product_orders/select_payment.html.haml +++ b/app/views/public/product_orders/select_payment.html.haml @@ -46,7 +46,7 @@ %h3 Paiement - + %p Livraison expédiée après validation du paiement -if params[:paid_fail] %p= "Votre tentative de paiement par carte bancaire a échouée, ou vous avez annulé votre paiement, merci de bien vouloir essayer de nouveau ou changer de mode de paiement." @@ -55,7 +55,7 @@ - =f.input :product_order_payment_type_ok_id, :label => false, :collection => [["Virement",2],["Carte bancaire",3],["Mandat administratif",4]], :as => :radio, :include_blank => false + =f.input :product_order_payment_type_ok_id, :label => false, :collection => [["Virement",2],["Carte bancaire",3]], :as => :radio, :include_blank => false .cb_infos