Ajeh:
A better solution, and this also removes the price from the Attributes on Call for Price modules is to use:
on the file:
/includes/functions/functions_prices.php
at the bottom of the function zen_get_products_display_price
// If Call for Price, Show it
if ($product_check->fields['product_is_call']) {
if (PRODUCTS_PRICE_IS_CALL_IMAGE_ON=='0') {
$call_tag = '<br />' . PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT;
} else {
$call_tag = '<br />' . zen_image(DIR_WS_TEMPLATE_IMAGES . OTHER_IMAGE_CALL_FOR_PRICE, PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT);
}
}
[B]// bof: block price on call for price
if (zen_products_lookup($products_id, 'product_is_call')) {
$final_display_price = '';
}
// eof: block price on call for price
[/B]
return $final_display_price . $free_tag . $call_tag;
}
>
> On the module:
> /includes/modules/attributes.php
>
> around line 164:
> ```
$products_options_display_price .= $price_onetime;
[B]// bof: block price on call for price
if (zen_products_lookup((int)$_GET['products_id'], 'product_is_call')) {
$products_options_display_price = '';
}
// eof: block price on call for price
[/B]
} // approve
As always, your solution works beautifully :smile: