[FIX] website_sale: fixed some 'add cart' buttons not working
bzr revid: tde@openerp.com-20131121094816-w8ulontnt9kv5zbf
This commit is contained in:
parent
d5ac601823
commit
04818e7584
|
@ -208,7 +208,7 @@
|
|||
|
||||
<template id="add_to_basket" inherit_option_id="website_sale.products_cart" name="Add to Cart">
|
||||
<xpath expr="//div[@class='product_price']" position="inside">
|
||||
<a t-href="./add_cart/?product_id=#{ product.id }" class="js_add_cart_json">
|
||||
<a t-href="/shop/add_cart/?product_id=#{ product.id }" class="js_add_cart_json">
|
||||
<span class="icon-shopping-cart"/>
|
||||
</a>
|
||||
</xpath>
|
||||
|
@ -275,7 +275,7 @@
|
|||
</div><div class="col-sm-5 col-md-5 col-lg-4 col-lg-offset-1">
|
||||
<h1 t-field="product.name">Product Name</h1>
|
||||
|
||||
<form action="./add_cart/" class="js_add_cart_json">
|
||||
<form action="/shop/add_cart/" class="js_add_cart_json">
|
||||
<input type="hidden" t-if="len(product.product_variant_ids) == 1" name="product_id" t-att-value="product.product_variant_ids[0].id"/>
|
||||
<t t-if="len(product.product_variant_ids) > 1">
|
||||
<label label-default="label-default" class="radio" t-foreach="product.product_variant_ids" t-as="variant_id">
|
||||
|
|
Loading…
Reference in New Issue