Jump to content

How To Get A Own Value In Cart.php?


Recommended Posts

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

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...