Jump to content

Button to add Product by reference from Textfield

Recommended Posts



At the moment I try do develop a simple function where I get the Quantity and than the Product reference and add them diretly to the cart.


At the moment though it does nothing


function add_to_cart_custom(){
	var params = $('#add_this_to_cart').attr('data-id');
<input type="text" name="obr_qty" id="obr_qty" placeholder="{l s='Qty' mod='orderbyrefcsv'}">
		<input type="text" name="obr_ref" id="obr_ref" placeholder="{l s='Reference' mod='orderbyrefcsv'}" class="first" style="width:78%;"/>
		<input type="button" id="add_this_to_cart" name="submit" value="Ok" onclick="add_to_cart_custom();"/>

I changed the order by reference or csv module a bit.


could anyone help me maybe?

Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More