Jump to content

Edit History

mr_absinthe

mr_absinthe

I tried, the problem is that the function is all comma separated:

function addSpecificPrice($id_product, $reduction_value = 0.00, $reduction_type = 'percentage', $from_date = '0000-00-00 00:00:00', $to_date = '0000-00-00 00:00:00', $id_shop = 0, $tax = 1, $id_shop_group = 0, $id_currency = 0, $id_country = 0, $id_customer = 0, $price = -1, $from_quantity = 1)

I also tried removing it from the function and include it above it, no error but it does nothing

$from_date = date('Y-m-d H:i:s');

function addSpecificPrice($id_product, $reduction_value = 0.00, $reduction_type = 'percentage', $to_date = '0000-00-00 00:00:00', $id_shop = 0, $tax = 1, $id_shop_group = 0, $id_currency = 0, $id_country = 0, $id_customer = 0, $price = -1, $from_quantity = 1) {

So, I guess I change only this line?

addSpecificPrice(4, 0.20, 'percentage', '0000-00-00 00:00:00', '2023-02-18 23:59:59', 1);

 

mr_absinthe

mr_absinthe

I tried, the problem is that the function is all comma separated:

function addSpecificPrice($id_product, $reduction_value = 0.00, $reduction_type = 'percentage', $from_date = '0000-00-00 00:00:00', $to_date = '0000-00-00 00:00:00', $id_shop = 0, $tax = 1, $id_shop_group = 0, $id_currency = 0, $id_country = 0, $id_customer = 0, $price = -1, $from_quantity = 1)

So, I guess I change only this line?

addSpecificPrice(4, 0.20, 'percentage', '0000-00-00 00:00:00', '2023-02-18 23:59:59', 1);

 

×
×
  • Create New...