WEBAllrounder Posted March 12, 2016 Share Posted March 12, 2016 Hello modul jquery ajax function: function addMyCard(design_id,qty){ $.ajax({ url: '{if isset($root_path)}{$root_path}{/if}?rand=1452930999029', type: 'post', data: 'add=1' + '&ajax=true' + '&controller=cart' + '&id_product=' + {if isset($product_id)}{$product_id}{/if} + '&id_clipart=56cdc6f8c94f9' + '&qty=' + qty + '&token=' + $("input[name=token]").val() + '&ipa=' + $("#ipa").val(), dataType: 'json', success: function(json) { $("#process_loader").hide(); window.location = '{if isset($root_path)}{$root_path}{/if}index.php?controller=order'; } }); } New Value is id_clipart data: 'add=1' + '&ajax=true' + '&controller=cart' + '&id_product=' + {if isset($product_id)}{$product_id}{/if} + '&id_clipart=56cdc6f8c94f9' + '&qty=' + qty + '&token=' + $("input[name=token]").val() + '&ipa=' + $("#ipa").val(), in the Cart.php (override/classes/order) public function getProducts($refresh = false, $id_product = false, $id_country = null) { $id_clipart = Tools::getValue('id_clipart'); ... } Unfortunately without success Any ideas? Presta 1.6.1.4 greeting Mike Link to comment Share on other sites More sharing options...
WEBAllrounder Posted March 13, 2016 Author Share Posted March 13, 2016 (edited) nobody any idea? Edited March 13, 2016 by WEBAllrounder (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now