is possible to introduce the posibility to make an order from category page by introducing the $text_qty?
i want to introduce the quantity input in category page near the order text in category page.
Hello!
in category.tpl
find
replace with
in category.tpl
find
Code: Select all
<div class="cart">
<input type="button" value="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button" />
</div>
Code: Select all
<div class="cart">
<script type="text/javascript">
function addQtyToCart(product_id) {
var qty = $('.item-' + product_id).val();
if ((parseFloat(qty) != parseInt(qty)) || isNaN(qty)) {
qty = 1;
}
addToCart(product_id, qty);
}
</script>
Qty:
<input type="text" value="1" size="2" class="item-<?php echo $product['product_id']; ?>" />
<input type="button" value="<?php echo $button_cart; ?>" onclick="addQtyToCart('<?php echo $product['product_id']; ?>');" class="button" />
</div>
Opencart Templates, Modules, Themes & Custom Development | ShopThemer
good day ...
kindly i do have new theme i tried this in defualt theme and it worked well but i dont know why it is not working in this theme ....
my website is : http://www.5odfekra.com/zomaa/index.php ... path=17_36
thank you and please i need this ..
kindly i do have new theme i tried this in defualt theme and it worked well but i dont know why it is not working in this theme ....
my website is : http://www.5odfekra.com/zomaa/index.php ... path=17_36
thank you and please i need this ..

Who is online
Users browsing this forum: Baidu [Spider], Bing [Bot] and 20 guests