Skip to content

Commit

Permalink
Merge branch 'release/3.4.2.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunbhardwaj committed Jun 9, 2015
2 parents 65afe4c + 20b2494 commit 04f726e
Show file tree
Hide file tree
Showing 10 changed files with 556 additions and 482 deletions.
4 changes: 2 additions & 2 deletions static/css/font-awesome.min.css

Large diffs are not rendered by default.

Binary file modified static/fonts/FontAwesome.otf
Binary file not shown.
Binary file modified static/fonts/fontawesome-webfont.eot
100755 → 100644
Binary file not shown.
989 changes: 525 additions & 464 deletions static/fonts/fontawesome-webfont.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/fonts/fontawesome-webfont.ttf
100755 → 100644
Binary file not shown.
Binary file modified static/fonts/fontawesome-webfont.woff
100755 → 100644
Binary file not shown.
31 changes: 22 additions & 9 deletions templates/webshop/base.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,9 @@
removeFromCart(delUrl);
}});
});
$('#cart-subtotal').text(data.status.cart.untaxed_amount);
$('#cart-tax').text(data.status.cart.tax_amount);
$('#cart-total').text(data.status.cart.total_amount);
});
};
var userDataCallbacks = $.Callbacks("");
Expand Down Expand Up @@ -585,17 +588,27 @@
url: "{{ url_for('nereid.cart.add_to_cart') }}",
data: {'quantity': new_quantity, 'product': product_element.val()}
})
.success(function (result){
if (result.message == "OK"){
updatedCart();
.done(function(result){
updatedCart();
if (result.line){
$(".cart-message").removeClass("hidden").show();
var template = $("#cart-message").html();
$(".cart-add-msg").html(_.template(template, {'line': result.line}));
$(".cart-message").removeClass("hidden").show().delay(3000).fadeOut();
}
})
.done(function(result){
$(".cart-message").removeClass("hidden").show();
var template = $("#cart-message").html();
console.log(result.line);
$(".cart-add-msg").html(_.template(template, {'line': result.line}));
$(".cart-message").removeClass("hidden").show().delay(3000).fadeOut();
.fail(function (result){
var obj = JSON.parse(result.responseText);
$.pnotify({
title: 'Alert',
text: obj.message,
type: 'error',
history: false,
nonblock: true,
delay:2000,
nonblock_opacity: .4,
animation: 'show'
});
});
});
</script>
Expand Down
4 changes: 2 additions & 2 deletions templates/webshop/cart/sale-line.jinja
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% set currency = line.sale.currency.code %}

{% if purpose == 'summary' %}
<tr>
<tr id="line-{{ line.id }}">
<td class="hidden-xs hidden-sm">
<a href="{{ url_for('product.product.render', uri=line.product.uri) }}">
<img src="{{ line.product.default_image.transform_command().thumbnail(100, 100, 'a') }}" alt="{{ line.product.name }}">
Expand All @@ -19,7 +19,7 @@
</td>
</tr>
{% else %}
<tr>
<tr id="line-{{ line.id }}">
<td>
<a href="{{ url_for('product.product.render', uri=line.product.uri) }}">
<img src="{{ line.product.default_image.transform_command().thumbnail(100, 100, 'a') }}" alt="{{ line.product.name }}">
Expand Down
8 changes: 4 additions & 4 deletions templates/webshop/shopping-cart.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<div class="row">
{% block shopping_cart_table scoped %}
<div class="col-md-12">
<table class="table">
<table class="table cart-details">
<thead>
<tr>
<th></th>
Expand Down Expand Up @@ -104,15 +104,15 @@
<table class="table text-right table-borderless">
<tr>
<td>{{ _('Subtotal') }}</td>
<td>{{ cart.sale.untaxed_amount|currencyformat(currency) }}</td>
<td id="cart-subtotal">{{ cart.sale.untaxed_amount|currencyformat(currency) }}</td>
</tr>
<tr>
<td>{{ _('Estimated Tax') }}</td>
<td>{{ cart.sale.tax_amount|currencyformat(currency) }}</td>
<td id="cart-tax">{{ cart.sale.tax_amount|currencyformat(currency) }}</td>
</tr>
<tr>
<td class="cart-total-sum">{{ _('Grand Total') }}</td>
<td class="cart-total-sum">{{ cart.sale.total_amount|currencyformat(currency) }}</td>
<td class="cart-total-sum" id="cart-total">{{ cart.sale.total_amount|currencyformat(currency) }}</td>
</tr>
</table>
</div>
Expand Down
2 changes: 1 addition & 1 deletion tryton.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tryton]
version=3.4.2.2
version=3.4.2.3
depends:
nereid
nereid_cms
Expand Down

0 comments on commit 04f726e

Please sign in to comment.