Results 1 to 3 of 3

how do i add a line break before the buy now button

This is a discussion on how do i add a line break before the buy now button within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; the buy now button on this page if too close to the price. how do i add a line break. ...

      
  1. #1
    New Member
    Join Date
    Dec 2003
    Posts
    15
    Rep Power
    0


    Default how do i add a line break before the buy now button

    the buy now button on this page if too close to the price. how do i add a line break. What file do i need to edit.

    http://proper-designs.com/catalog/index.php?cPath=25

  2. #2
    Active Member red_fraggle's Avatar
    Join Date
    Feb 2004
    Location
    wilmington, NC
    Posts
    343
    Rep Power
    8


    Default

    I am assuming your getting the buy now buttons from a mod?

    If so tell me which one so i can look at it and ill reply with the fix.


    Red Fraggle

  3. #3
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    Hi,

    Just edit line 88 of /includes/modules/product_listing_col.php

    The original line is:
    Code:
                $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> ';
    Just add a line break at the beginning of the $lc_text string:

    Code:
                $lc_text = '<br><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> ';
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

  1. add to cart button and detail button show on main page
    By jikey in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 01-14-2007, 05:13 PM
  2. Break <br> tag don't break line
    By kestas in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 01-16-2006, 08:30 PM
  3. Price Break Integration
    By ganast in forum osCMax v1.7 General Mods Discussion
    Replies: 3
    Last Post: 12-22-2004, 01:47 PM
  4. price-break-1.11 with ms2-max 1.5.5
    By fridgemags in forum osCMax v1.7 General Mods Discussion
    Replies: 3
    Last Post: 06-03-2004, 06:47 AM
  5. Automatically break a results set over multiple pages
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 04-02-2004, 12:27 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
  •