Jump to content

Recommended Posts

Hi guys,

 

 

I want to insert a form in blockcart.tpl.

 

It has to be visible only when I add products in the cart.

The problem is I need to refresh the page, after I add a product to display it.

 

On the other hand when I delete the product from the cart it disappears straight away.

 

Here is one input from the form I want to add

 

<input type="text" name="quantity_{$i}" value="{$product.cart_quantity}">

 

Can you help me?

 

 

Thanks

Link to comment
Share on other sites

I managed to insert it in ajax-cart.js like this

 

var content = '<dt class="hidden" id="cart_block_product_' + domIdProduct + '">';

 

content += '<input type="text" name="quantity_'+i+'" value="' + this.quantity + '">';

 

I still have 2 issues:

- update quantity (now only says 1 and when I buy the product again it doesn't update

- increment var i

 

Can somebody help me?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...