Results 1 to 9 of 9
  1. #1
    Join Date
    Jul 2007
    Posts
    6
    Plugin Contributions
    0

    Default Query: remove side box not using web based "Admin" tools ???

    Hi all,

    Am working my way through the zen cart maze quite happily at the moment.

    Was wondering if there is a way to remove the side boxes etc by using code, instead of relying on the "Admin" system.

    Just to remove a sidebox using the admin system, there are around four page views required.

    If I could modify the php or css to remove the boxes, then upload the modified file, that would be much faster.

    Any help appreciated,

    Regards
    Alf...

  2. #2
    Join Date
    Jan 2004
    Posts
    66,447
    Plugin Contributions
    81

    Default Re: Query: remove side box not using web based "Admin" tools ???

    You can do it strictly in CSS.

    Look at browser source. Find the element. Set it to display:none.

    ie:
    Code:
    <!--// bof: moreinformation //-->
    <div class="leftBoxContainer" id="moreinformation" style="width: 150px">
    in stylesheet, do this:
    Code:
    #moreinformation {display: none; }

    However, if you do it via the admin controls, you'll speed up site processing by causing the server to not have to prepare the contents of those sideboxes.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Query: remove side box not using web based "Admin" tools ???

    Gee - if you'd rather modify code than use the built in functionality - perhaps Zen Cart isn't the right program for you ...
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Jul 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Query: remove side box not using web based "Admin" tools ???

    Hi,

    The CSS is a good tip.

    But if it is more efficient to not load the sideboxes at all.

    Is there a way to do this with PHP code as well...

    Regards
    Alf...

  5. #5
    Join Date
    Jul 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Query: remove side box not using web based "Admin" tools ???

    Hi,

    What are the other "Store" options available. My coding experience is intermediate, so, zen cart is a happy medium of coding and content management. Maybe later I could have a look at the other "Store" options available.

    The CSS: "none" is a good tip, but if it is more efficient to not load the sideboxes at all, can I switch them of in the PHP code... I assume this is what the admin modifies.

    I think that learning this would help understand the structure of Zen Cart more and in the long term is more benificial.

    Regards
    Alf...

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

    Default Re: Query: remove side box not using web based "Admin" tools ???

    You set the sideboxes about once a lifetime ...

    Turn the sidebox off in the Layout Boxes Controller and forget it ...

    Why would you touch code when there is a simple setting to manage this?
    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!

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,537
    Plugin Contributions
    127

    Default Re: Query: remove side box not using web based "Admin" tools ???

    Quote Originally Posted by alfab3 View Post
    I think that learning this would help understand the structure of Zen Cart more and in the long term is more benificial.
    Remember that every file you modify will need to be merged every time you upgrade ... you're getting into a lot of grief here.

    Besides, the real hackerly way to save time changing your sideboxes is to update the layout_boxes table in phpMyAdmin.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  8. #8
    Join Date
    Jul 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Query: remove side box not using web based "Admin" tools ???

    aha, now we are getting somewhere!!!

    "Besides, the real hackerly way to save time changing your sideboxes is to update the layout_boxes table in phpMyAdmin."

    Does this still require modified files to be merged when you upgrade?

    I don't mind making a few mistakes on my site...or getting into trouble, it is how I learn...

    I wouldn't have learned .css if i left things as they were!

    I have a SAMS "Teach yourself PHP in 24 hours" book.

    Any way, swguy, could you elaborate on the phpMyAdmin advice?

    Cheers
    Alf

  9. #9
    Join Date
    Jan 2004
    Posts
    66,447
    Plugin Contributions
    81

    Default Re: Query: remove side box not using web based "Admin" tools ???

    A new interface for managing sideboxes in the admin is in development for v1.4.

    In the meantime, you *should* use the admin interface for making your edits. If you are database-savvy, and have studied the database structure and are sure you know what you're doing and understand what changes affect what results and are dependent on what other settings, you can edit your sidebox details by directly editing the raw database settings in the "layout_boxes" table in the database.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v151 Using an exisiting "customised" web site as the basis for a 2nd and 3rd web site
    By 500N in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 May 2014, 12:30 AM
  2. "New products" side box is not scrolling.
    By Ridgh in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 Apr 2014, 07:02 PM
  3. v150 "Admin Settings" and "Email Welcome" not showing up under Tools Menu
    By chad2012 in forum Installing on a Mac Server
    Replies: 2
    Last Post: 28 Jan 2012, 07:56 PM
  4. Remove "Newsletters" link when logged into "My Account" (not in Admin?)
    By hedron in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 17 Sep 2009, 10:44 PM
  5. Add a new side box like "categories" for company web links
    By btolly in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 24 May 2009, 01:58 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