Results 1 to 10 of 25

Hybrid View

  1. #1
    Join Date
    Mar 2011
    Location
    Ireland
    Posts
    286
    Plugin Contributions
    0

    Default Re: Styling the Special Product Listing

    yes I did change to -6 and no difference at all but my codes looks slightly different?

    // show only when 1 or more
    if ($num_products_count > 0) {
    if ($num_products_count < SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS || SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS == 0 ) {
    $col_width = floor(100/$num_products_count)-6;
    } else {
    $col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS)-6;
    }

  2. #2
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: Styling the Special Product Listing

    Quote Originally Posted by jagall View Post
    yes I did change to -6 and no difference at all but my codes looks slightly different?
    I copied it from your first post!
    Anyhow try this

    $col_width = floor(90/$num_products_count);
    } else {
    $col_width = floor(90/SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS)

    and add to .specialsListBoxContents
    margin-right: 5px !important;

  3. #3
    Join Date
    Mar 2011
    Location
    Ireland
    Posts
    286
    Plugin Contributions
    0

    Default Re: Styling the Special Product Listing

    Thank you Keneso, I tried exactly what you said but it hasn't changed anything really. I have been looking at the SNAF thread and posted there as I have the column grid layout installed so that module is an update on that but not sure if I need to install it to achieve what I am trying to do, ahhh wish I was better at css. Cheers for your all your help.

  4. #4
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: Styling the Special Product Listing

    You're welcome, sorry I couldn't do more, Niccol is far more expert than I am, and very kind I may add, you'll be fine at the SNAF support.

  5. #5
    Join Date
    Mar 2011
    Location
    Ireland
    Posts
    286
    Plugin Contributions
    0

    Default Re: Styling the Special Product Listing

    Cheers I'll post the solution if I get to it.

  6. #6
    Join Date
    Mar 2011
    Location
    Ireland
    Posts
    286
    Plugin Contributions
    0

    Default Re: Styling the Special Product Listing

    Hi Guys,

    I am back on about this, I am trying to change the specials to appear something like this:
    Name:  specials.jpg
Views: 469
Size:  42.6 KB

    Niccol advised me to place the following code in the product_listing.php:

    $list_box_contents[$rows][$column] = array('params' => 'class="centerBoxContentsProducts centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
    'text' => '<div class="innerColumn">'.$lc_text.'</div>');

    But not sure where to go from here, I have altered the CSS alright but I am not getting the ribbon to appear on each of the specialsListBoxContents, I can get it wrap the entire centre box which is no good, so any help here would be greatly appreciated. Cheers.

  7. #7
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: Styling the Special Product Listing

    From Niccol's code
    <div class="innerColumn">'.$lc_text.'</div>
    Add the .innerColumn class in your stylesheet, and style it

  8. #8
    Join Date
    Jul 2012
    Posts
    2
    Plugin Contributions
    0

    Default Re: Styling the Special Product Listing

    I got this right by simply:

    and add to .specialsListBoxContents
    margin-left: -5px !important;

 

 

Similar Threads

  1. Product Listing page , need help with styling
    By BuRocKNRoLL in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Jan 2012, 12:25 PM
  2. How to truncate the product name of the special listing in centercolummn?
    By blueflu in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Jul 2011, 06:34 PM
  3. Product listing table css styling
    By bigmo337 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 17 Jun 2010, 09:53 AM
  4. how to add freeshipping listing as new product listing and special listing
    By zeme_09g in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 15 Apr 2010, 10:35 AM
  5. Product listing styling and footer display
    By JackA in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Dec 2007, 05:16 PM

Posting Permissions

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