Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2006
    Posts
    385
    Plugin Contributions
    0

    Default Featured Product Price (Side Box)

    I have been trying to find a way of removing the price from the featured products and came across a post that suggested to remove this part of the code . $products_price); from the includes/modules/my_template/featured_products.php However it seems to make no difference to the display of the featured product "price" I then realised that this is for the centre box, is there a similar way of removing the "price" from the side box featured product. Any help would be greatly appreciated.

    Many Thanks
    Renz

  2. #2
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,119
    Plugin Contributions
    6

    Default Re: Featured Product Price (Side Box)

    You're close. It's actually in "includes/templates/YOUR_TEMPLATE/sideboxes/tpl_featured.php"

    Open it up, find this line:

    Code:
    $content .= '<div>' . $featured_box_price . '</div>';
    And comment it out to make it look like this:

    Code:
    //$content .= '<div>' . $featured_box_price . '</div>';
    Hope this helps.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  3. #3
    Join Date
    Jun 2006
    Posts
    385
    Plugin Contributions
    0

    Default Re: Featured Product Price (Side Box)

    Good On you..Thanks...I have a slightly different version...
    */
    $content = "";
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
    $content .= '<a href="' . zen_href_link(zen_get_info_page($random_featured_product->fields["products_id"]), 'products_id=' . $random_featured_product->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $random_featured_product->fields['products_image'], $random_featured_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br />' . $random_featured_product->fields['products_name'] . '</a><br />' . $featured_box_price;
    $content .= '</div>';
    ?>
    So I am thinking perhaps I'll delete . $featured_box_price;
    $content .= '</div>'; or will //. $featured_box_price;
    $content .= '</div>'; work for me...Thanks

  4. #4
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,119
    Plugin Contributions
    6

    Default Re: Featured Product Price (Side Box)

    I think I would try to just comment that line out, as you might want to un-comment it some day.

    Comment the whole line:

    $random_featured_product->fields['products_name'] . '</a><br />' . $featured_box_price;

    So it looks like:

    //$random_featured_product->fields['products_name'] . '</a><br />' . $featured_box_price;

    Hope this helps.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  5. #5
    Join Date
    Jun 2006
    Posts
    385
    Plugin Contributions
    0

    Default Re: Featured Product Price (Side Box)

    Uhmmm I thought we had it cracked then but the damn price is still there
    www.coloushield.com/store (top right) Zen Cart is Vs 1.3.0.2, I tried commenting and deleting...
    Nada Nofink....

  6. #6
    Join Date
    Jun 2006
    Posts
    385
    Plugin Contributions
    0

    Default Re: Featured Product Price (Side Box)

    Ok I done it....kind of....I had to comment out just the last bit, thoug I am left with a small problem the image and description are no longer centred..Uhmm weird...any ideas please.
    Thanks (below is what I commented out)
    $content .= '<a href="' . zen_href_link(zen_get_info_page($random_featured_product->fields["products_id"]), 'products_id=' . $random_featured_product->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $random_featured_product->fields['products_image'], $random_featured_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br />' . $random_featured_product->fields['products_name'] . '</a><br />' . //$featured_box_price;
    $content .= '</div>';
    ?>

  7. #7
    Join Date
    Jun 2006
    Posts
    385
    Plugin Contributions
    0

    Default Re: Featured Product Price (Side Box)

    Eureka.......I finally managed to get it all to work for me and stay Centre.......So I am left with side box featured products (with image & description centred) & the price is removed. the simplest way after trying a few different things with different results was this....
    Find "includes/templates/YOUR_TEMPLATE/sideboxes/tpl_featured.php"
    Change
    <br />' . $random_featured_product->fields['products_name'] . '</a><br />' . $featured_box_price;
    $content .= '</div>';
    ?>
    To
    <br />' . $random_featured_product->fields['products_name'] . '</a><br />' . $featured_box_;
    $content .= '</div>';
    ?>
    Done Hope it helps someone (you have basically removed the word price)

  8. #8
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,119
    Plugin Contributions
    6

    Default Re: Featured Product Price (Side Box)

    Glad to hear you got it fixed. Thanks for posting the solution for this,
    although, not many people are still running that old of a version,
    I don't think. You really should consider an upgrade.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

 

 

Similar Threads

  1. Removing price and product name from Featured Products
    By jackalneo in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 Dec 2010, 06:32 AM
  2. Change colour of 'sponsors' side box / enable 'featured' side box
    By flatlander in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 29 May 2008, 07:26 AM
  3. Replies: 0
    Last Post: 22 Aug 2007, 05:54 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
  •