Browse Source

variable visible en vista individual

Deisy 8 years ago
parent
commit
4b19e0af55
3 changed files with 16 additions and 11 deletions
  1. 3 0
      static/src/css/custom.css
  2. 6 4
      static/src/js/menu.js
  3. 7 7
      views/theme.xml

+ 3 - 0
static/src/css/custom.css

@@ -14,6 +14,7 @@ main {  min-height: 473px;}
 .oe_product .oe_product_image img { z-index: 1}
 .oe_product section { z-index: 1}
 .dropdown-menu  { z-index: 1}
+
 .carousel-indicators  { z-index: 1}
 
 .oe_menu_editor .input-group .input-group-addon { display: table-cell;}
@@ -857,6 +858,7 @@ footer .list-social {margin-left:0 ; text-align: left; position: absolute;}
 .mega-menu.dropdown-menu { border: none;}
 
 
+
 .nav-top .navbar-nav .divider { display: none;}
 
 
@@ -979,3 +981,4 @@ position: relative;
 .owl-carousel {
 position: relative;
 }
+/**/

+ 6 - 4
static/src/js/menu.js

@@ -7,9 +7,11 @@ $(document).ready(function(){
          $('body').toggleClass( "menu-show" );
       });
 
-  /*$(".menu-toggle").unbind('click').bind('click',function(){
+$(".menu-toggle").unbind('click').bind('click',function(){
     $('body').toggleClass( "menu-show" );
-  });*/
+  });
+
+
 
 
 // Cat
@@ -56,7 +58,7 @@ $(document).ready(function() {
             e.preventDefault(); // prevent the default action
             e.stopPropagation(); // stop the click from bubbling
             $(this).parent().toggleClass('selected');
-            $(this).toggleClass('mob_sub_open');
+            $(this).toggleClass('mob_sub_open'); 
         });
 
-});
+});

+ 7 - 7
views/theme.xml

@@ -805,13 +805,13 @@
 							</span>
 							<br/>
 			                <form t-att-action="keep('/shop/cart/update')" class="js_add_cart_variants" method="POST">
-			                  <div class="js_product">
-			                    <t t-placeholder="select">
-			                      <input type="hidden" class="product_id" name="product_id" t-att-value="int(product.product_variant_ids[0]) if len(product.product_variant_ids) == 1 else '0'"/>
-			                      <t t-call="website_sale.variants">
-			                        <t t-set="ul_class" t-value="'nav-stacked'"/>
-			                      </t>
-			                    </t>
+                        <t t-placeholder="select">
+                          <input type="hidden" class="product_id" name="product_id" t-att-value="int(product.product_variant_ids[0]) if len(product.product_variant_ids) == 1 else '0'"/>
+                          <t t-call="website_sale.variants">
+                            <t t-set="ul_class" t-value="'nav-stacked'"/>
+                          </t>
+                        </t>
+                        <div class="js_product">
 			                    <t t-call="website_sale.product_price"/>
 			                    <p t-if="len(product.product_variant_ids) &gt; 1" class="css_not_available_msg bg-danger" style="padding: 15px;">Product not available</p>
 			                    <a id="add_to_cart" class="btn btn-primary btn-lg mt8 js_check_product a-submit" href="#">Agregar al carrito.</a>