Forums / Templates, Stylesheets, Page Layout / how to add a new empty sidebox??

how to add a new empty sidebox??

Locked

Views: 1,317

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
20 Aug 2006, 4:02 AM
#1
zc_newbie avatar

zc_newbie

New Zenner

Join Date:
Aug 2006
Posts:
98
Plugin Contributions:
0

how to add a new empty sidebox??

this is stressing me out... trying to customize one of the default sideboxes.. i renamed "currencies" to something else and trying to remove the content and would get an error when doing this. does anybody know where i can read to find out how to start a new side box?

20 Aug 2006, 4:15 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: how to add a new empty sidebox??

Grab the "paypal verified logo" sidebox contribution as an example of a single new sidebox. Granted, all it does is display an image if certain criteria are met, and does not output any text.

This may also be a helpful reference:
http://www.zen-cart.com/wiki/index.php/Sidebox_and_popup_window_structures

.
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.

20 Aug 2006, 11:46 PM
#3
zc_newbie avatar

zc_newbie

New Zenner

Join Date:
Aug 2006
Posts:
98
Plugin Contributions:
0

Re: how to add a new empty sidebox??

i recently installed the "paypal sidebox mod" i wanted to use the empty side box for something else.. in html you can type info in the <body> and it would show up. i tried typing in something and it owuld not show up only errors. is there a tutorial that explains where to type the info to show up in the sidebox?

21 Aug 2006, 2:51 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: how to add a new empty sidebox??

  1. you want to change the content of the paypal sidebox.
  2. the content definitions for that sidebox are in the language files (see the wiki link posted earlier):
    a. box title:```
    define('BOX_HEADING_PAYPAL_BOX', 'Paypal Verified Seller');

b. box content: if you don't require any multi-language support, you could replace the contents of the $content variable in your tpl_paypal_logo.php file with something like:```
  $content = 'Put my own HTML-marked-up content here';
 
```If you require multi-language support, then you should create definitions in a language file, and use the CONSTANT_NAME in the $content variable portion of the code.


The paypal sidebox is only one of many examples. There's also the "blank sidebox" contribution which operates similarly, but has no content to start with. I think it has a readme that explains how to customize it.

.
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.