Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Sidebox layout consistency

    I am sure this is simple but can not figure it out. I want to limit the number of characters to display from the products name in the new, featured and specials sideboxes.

    Any suggestions?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Sidebox layout consistency

    You can customize each of the sideboxes and limit the length of the products_name that is displayed ...

    Example, using your templates and overrides, you could customize the specials sidebox for the tpl_specials.php by changing the:
    Code:
        $content .= '<br />' . $random_specials_sidebox_product->fields['products_name'] . '</a>';
    to use:
    Code:
        $content .= '<br />' . substr($random_specials_sidebox_product->fields['products_name'],0,5) . '</a>';
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Sidebox layout consistency

    That is so cool, Thank you!

    Sorry for sending the private message but I figured if anyone could figure it out you could.

    Thanks Again

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Sidebox layout consistency

    You are most welcome ... thanks for the update that this works for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Sidebox layout consistency

    update!

    For some reason it make the name disappear in the featured side box. Any Suggestions!

  6. #6
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Sidebox layout consistency

    I figured it out.

    With the featured sidebox, you need to remove "sidebox"

    change this:
    Code:
        $content .= '<br />' . substr($random_featured_sidebox_product->fields['products_name'],0,5) . '</a>';
    to this:
    Code:
        $content .= '<br />' . substr($random_featured_product->fields['products_name'],0,5) . '</a>';
    Thanks again Ajeh

 

 

Similar Threads

  1. v151 Adjust Featured Sidebox Layout to Match Bestsellers Sidebox Layout
    By gaffettape in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 12 Apr 2013, 03:36 AM
  2. Buy Now button consistency
    By finlander in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 17 Jan 2011, 04:13 PM
  3. EZ Pages/Define_Pages Consistency
    By cpking in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Sep 2007, 12:11 PM
  4. consistency in layout
    By cspsgl in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 26 Jan 2007, 02:42 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