I have a field of item kind (tecnica) and can access it with the "arrow" operator
if(!empty($product->tecnica)){...}
but with product kind don't know how to.
I have added a product custom field named "test" of type text to a product, and modified
hikashop_product_price_for_quantity_in_cart in custom_price.php
function hikashop_product_price_for_quantity_in_cart(&$product){
$currencyClass = hikashop_get('class.currency');
$quantity = @$product->cart_product_quantity;
if(empty($product->prices)){
$price= null;
$price->price_currency_id = hikashop_getCurrency();
$price->price_min_quantity = 1;
$product->prices = array($price);
}
if(!empty($product->test)) {
foreach($product->prices as $k => $price){
$product->prices[$k]->price_value == 100;
$product->prices[$k]->price_value_with_tax == 118;
}
}
$currencyClass->quantityPrices($product->prices,$quantity,$product->cart_product_total_quantity);
but it's not working.