Skip to content

Commit

Permalink
Merge pull request #15 from tulimaki/various-fixes-based-on-qa
Browse files Browse the repository at this point in the history
Add to basket and styles fixes
  • Loading branch information
Pikkupomo authored Aug 26, 2016
2 parents 7606a0a + dc05c94 commit 220235e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
if __name__ == '__main__':
setuptools.setup(
name="shuup_megastore_theme",
version="1.0.6",
version="1.0.7",
description="Shuup Megastore Theme",
packages=setuptools.find_packages(),
include_package_data=True,
Expand Down
2 changes: 1 addition & 1 deletion shuup_megastore_theme/generated_resources.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
static/shuup_megastore_theme/css/style.css
static/shuup_megastore_theme/css/shuup_megastore_theme.css
static/shuup_megastore_theme/fonts/FontAwesome.otf
static/shuup_megastore_theme/fonts/fontawesome-webfont.eot
static/shuup_megastore_theme/fonts/fontawesome-webfont.svg
Expand Down
2 changes: 1 addition & 1 deletion shuup_megastore_theme/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ gulp.task("less", function() {
.pipe(less().on("error", function() {
this.emit("end");
}))
.pipe(concat("style.css"))
.pipe(concat("shuup_megastore_theme.css"))
.pipe((PRODUCTION ? minifycss() : gutil.noop()))
.pipe(gulp.dest("static/shuup_megastore_theme/css/"));
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<link rel="icon" type="image/x-icon" href="{{ static("shuup_megastore_theme/img/favicon.ico") }}">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Oswald:400,300,700|Open+Sans:400,600">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:400,300,500">
<link rel="stylesheet" type="text/css" href="{{ static("shuup_megastore_theme/css/style.css") }}">
<link rel="stylesheet" type="text/css" href="{{ static("shuup_megastore_theme/css/shuup_megastore_theme.css") }}?v=0.0.1">
</head>
<body>
<div class="content-wrap">
Expand Down Expand Up @@ -60,8 +60,8 @@
</div>
{{ render_footer() }}
</div>
<script src="{{ static("shuup/front/js/scripts.js") }}"></script>
<script src="{{ static("shuup_megastore_theme/js/shuup_megastore_theme.js") }}"></script>
<script src="{{ static("shuup/front/js/scripts.js") }}"?v=0.0.1"></script>
<script src="{{ static("shuup_megastore_theme/js/shuup_megastore_theme.js") }}?v=0.0.1"></script>
{% block extrajs %}{% endblock %}
{{ add_product_to_cart() }}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{%- from "shuup/front/macros/navigation.jinja" import render_basket_partial with context -%}
{{ render_basket_partial(request.basket, id="navigation-basket-partial") }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% macro add_product_to_basket(main_class="cart-indicator") %}
{% macro add_product_to_cart(main_class="cart-indicator") %}
<div class="cart-indicator" id="cart-indicator">
<div class="success-msg">
<i class="fa fa-check"></i>
Expand All @@ -19,6 +19,7 @@
url: "{{ url('shuup:xtheme_extra_view', view='basket_partial') }}",
method: "GET",
success: function(basket_html) {
console.log(basket_html);
$("#navigation-basket-partial").replaceWith(basket_html);
}
});
Expand All @@ -43,7 +44,7 @@
handleError(cover);
return;
}
updateNavigationBasket();
window.updateNavigationBasket();
cover.addClass("success");
setTimeout(function() {
// Hide the message
Expand Down

0 comments on commit 220235e

Please sign in to comment.