ezosC v2.1 is a turnkey e-commerce online store business solution based in osCommerce 2.2 RC 2a with a full supported IT and tech support staff.  ezosC v2.1  can be customized for any business’ needs with its open source. We have added additional functionality to this store by adding modules for every business to profit from. You need to have the edge over your competition with modules that will set you apart from the rest.

After years of experience developing and repairing shopping carts, we have developed the functionality of the carts that we have made for the various clients, in one great e-commerce solution. From turnkey apparel e-commerce stores and automotive online stores, to reservation systems e-commerce and book online stores, we have developed the ultimate online shopping experience for your customers. Read more

Click here for more information

 
Call Now 1.800.961.7427

 

Complete eCommerce Solution
Based in osCommerce

Help - Search - Members - Calendar
Full Version: call for pricing
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Templates and Images
dionnekane
I am in the process of manually changing using the call for pricing contribution.

When I get to new_product.php I get an error:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/c/0/e/17098/17098/public_html/shop/osc/includes/modules/new_products.php on line 70


The manual change suggested is as follow:

inside catalog/includes/modules/new_products.php file
locate this code approx line 31;


$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=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])));

change it to

if ($new_products['products_price'] == 999999){
$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=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>'TEXT_CALL_FOR_PRICE);

}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=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])));
}

Here is my code:

<td width=218 valign=center>
<table cellspacing=0 cellpadding=0 width=174 align=center>
<tr><td colspan=2 height=30 valign=middle>
if ($new_products['products_price'] == 999999){
$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=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>'TEXT_CALL_FOR_PRICE);

}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=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])));
}
dionnekane
This is also showing up in cart as 999,999.00? Any ideas.

Also, under product reviews.php the 999,999 shows up.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.
Powered by osCommerce.com | Oscommerce Forum