albatros83 Posted February 6, 2008 Posted February 6, 2008 (edited) Hello, I installed the contrib Featured Products ( http://addons.oscommerce.com/info/651 ) in the index gives me the following error: Warning: Missing argument 3 for display_price() in /home/caraglio/public_html/shopping/includes/classes/currencies.php on line 72 There is someone who helps me to correct the error. Hello Edited February 6, 2008 by albatros83 Quote
SambaMambo Posted March 6, 2008 Posted March 6, 2008 Hello, I installed the contrib Featured Products ( http://addons.oscommerce.com/info/651 ) in the index gives me the following error: Warning: Missing argument 3 for display_price() in /home/caraglio/public_html/shopping/includes/classes/currencies.php on line 72 There is someone who helps me to correct the error. Hello ok i found the error : 3 Changes to do in : open /includes/modules/featured.php find $currencies->display_price add $featured_products['products_id'] This should look like this : $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'class="smallText" width="33%" valign="top"', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $featured_products['products_image'], $featured_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . $featured_products['products_name'] . '</a><br><s>' . $currencies->display_price($featured_products['products_id'], $featured_products['products_price'], tep_get_tax_rate($featured_products['products_tax_class_id'])) . '</s><br><span class="productSpecialPrice">' . $currencies->display_price($featured_products['products_id'], $featured_products['specials_new_products_price'], tep_get_tax_rate($featured_products['products_tax_class_id'])) . '</span>'); } else { $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'class="smallText" width="33%" valign="top"', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $featured_products['products_image'], $featured_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . $featured_products['products_name'] . '</a><br>' . $currencies->display_price($featured_products['products_id'], $featured_products['products_price'], tep_get_tax_rate($featured_products['products_tax_class_id']))); } :thumbsup: Quote
jbastow Posted March 15, 2008 Posted March 15, 2008 This looks like a useful contrib, but is anyone working on a full package? I can't find a complete package in the list even going back a year.... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.