Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted (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 by albatros83
  • 4 weeks later...
Posted
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:

  • 2 weeks later...
Posted

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....

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...