Results 1 to 2 of 2

Removing price listing from "New Products For ..."

This is a discussion on Removing price listing from "New Products For ..." within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I'm setting up a site now and I'm trying to figure out how to remove the price listing from underneath ...

      
  1. #1
    New Member
    Join Date
    Feb 2004
    Posts
    8
    Rep Power
    0


    Default Removing price listing from "New Products For ..."

    I'm setting up a site now and I'm trying to figure out how to remove the price listing from underneath the pictures in the "New Products For ..." and under the "what's new" random item box. I've tried editing some templates for new products listing and in whats_new.php for the "what's new" box but I've had no luck. Any tips? I've also searched the forums and still have found nothing.

    Thanks in advance.

    Justin

  2. #2
    New Member
    Join Date
    Feb 2004
    Posts
    8
    Rep Power
    0


    Default

    I seemed to have come up with a quick and dirty way to do it, although, I don't think it's the best way.

    To remove prices from the "what's new" random item box
    open includes/boxes/whats_new.php

    $whats_new_price = '';

    after the "Separate Price per Customer Mod" section

    --
    To remove prices from "what's new for <insert month>"

    open includes/modules/new_products.php

    $whats_new_price = $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id']));

    $whats_new_price = '';

    after the "Separate Price per Customer Mod" section

    and change this line:
    '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'])));

    to this:
    '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>' . $whats_new_price);

Similar Threads

  1. removing "Other images for this product", image mi
    By deuce in forum osCmax v2 Customization/Mods
    Replies: 11
    Last Post: 01-11-2007, 01:38 PM
  2. "Price" and "Add to Cart" button inside
    By midwestwebsites in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 11-14-2005, 05:13 AM
  3. Removing a "Top Administrator" member - blocked??
    By xpressed in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 07-08-2004, 04:27 PM
  4. Creating "list price" listing category
    By southwestseas in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 06-30-2004, 07:57 PM
  5. Change "Product Listing" header in CPATH to image.
    By ritalcnyc in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 11-22-2003, 02:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •