Thank you again rbaorbour
Thatīs the solution , but I did little changes... What i want exactly is to hide the "SOLD OUT" label and replace it with a "COMONG SOON" when there are no price setted up or the price is zero so...
I did this changes
Edited the file: /includes/templates/template_default/templates/tpl_modules_products_new_listing.php
originally:
PHP Code:
$the_button = $link;
$products_link = '<a href="' . zen_href_link(zen_get_info_page($products_new->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($products_new->fields['master_categories_id']) . '&products_id=' . $products_new->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
$display_products_button = zen_get_buy_now_button($products_new->fields['products_id'], $the_button, $products_link) . '<br />' . zen_get_products_quantity_min_units_display($products_new->fields['products_id']) . str_repeat('<br clear="all" />', substr(PRODUCT_NEW_BUY_NOW, 3, 1));
} else {
inserted this code:
PHP Code:
$products_link = '<a href="' . zen_href_link(zen_get_info_page($products_new->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($products_new->fields['master_categories_id']) . '&products_id=' . $products_new->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
if ($products_price == ''){
$display_products_button = ' Proximamente';
} else {
$display_products_button = zen_get_buy_now_button($products_new->fields['products_id'], $the_button, $products_link) . '<br />' . zen_get_products_quantity_min_units_display($products_new->fields['products_id']) . str_repeat('<br clear="all" />', substr(PRODUCT_NEW_BUY_NOW, 3, 1));
}
} else {
Now the new products without price present a test that say "proximamente" (coming soon in english)
The last step is to load a button that say "coming soon" instead of the "proximamente" text
Bookmarks