Jump to content

Adding extra boxes on left or right side


Guest DutchJam

Recommended Posts

Guest DutchJam

Greetings,

I would love to have some more boxes on the left or right side, to get more content there.

So, is it possible to add such thing like that (i.e. below the 'popular products' box on the right, or below the 'mailing list' box on the left)?

Thanks!

Link to comment
Share on other sites

Greetings,

I would love to have some more boxes on the left or right side, to get more content there.

So, is it possible to add such thing like that (i.e. below the 'popular products' box on the right, or below the 'mailing list' box on the left)?

Thanks!

I added two boxes on the left in myskin/templates/main.php and also modified the Newsletter Subscription box. So I guess the question is - what do you want the boxes to do?

http://dirtybutter.com/plushcatalog/

Link to comment
Share on other sites

Guest DutchJam

I added two boxes on the left in myskin/templates/main.php and also modified the Newsletter Subscription box. So I guess the question is - what do you want the boxes to do?

http://dirtybutter.com/plushcatalog/

Thanks for your reply.

The boxes should display static text and/or images for now.

I jus want to know how to add extra boxes. Is it a hard job?

Link to comment
Share on other sites

I added two boxes on the left in myskin/templates/main.php and also modified the Newsletter Subscription box. So I guess the question is - what do you want the boxes to do?

http://dirtybutter.com/plushcatalog/

Thanks for your reply.

The boxes should display static text and/or images for now.

I jus want to know how to add extra boxes. Is it a hard job?

That shouldn't be hard to do at all. Here's my code for the two static boxes I added:

<div>

<h3>Embroidery Available</h3>

</br>

<a href="http://dirtybutter.com/plushcatalog/embroidery-of-name-up-to-10-characters.html">Custom Embroidery</a>

</div>



<div>

  <h3>Optional Gift Card</h3>

<br/>

<center>

<p class="image">

	<a href="http://dirtybutter.com/plushcatalog/optional-gift-card-available.html" title="Order a Gift Card with Your Purchase">

	  <img src="http://dirtybutter.com/plushcatalog/images/cache/giftcardfront.138.jpg" alt="Order a Gift Card with Your Purchase" />

	</a>

  </p>

</center>

  <a href="http://dirtybutter.com/plushcatalog/optional-gift-card-available.html">Order a Gift Card with Your Purchase</a>

   </div>

Link to comment
Share on other sites

Guest DutchJam

I added two boxes on the left in myskin/templates/main.php and also modified the Newsletter Subscription box. So I guess the question is - what do you want the boxes to do?

http://dirtybutter.com/plushcatalog/

Thanks for your reply.

The boxes should display static text and/or images for now.

I jus want to know how to add extra boxes. Is it a hard job?

That shouldn't be hard to do at all. Here's my code for the two static boxes I added:

<div>

<h3>Embroidery Available</h3>

</br>

<a href="http://dirtybutter.com/plushcatalog/embroidery-of-name-up-to-10-characters.html">Custom Embroidery</a>

</div>



<div>

  <h3>Optional Gift Card</h3>

<br/>

<center>

<p class="image">

	<a href="http://dirtybutter.com/plushcatalog/optional-gift-card-available.html" title="Order a Gift Card with Your Purchase">

	  <img src="http://dirtybutter.com/plushcatalog/images/cache/giftcardfront.138.jpg" alt="Order a Gift Card with Your Purchase" />

	</a>

  </p>

</center>

  <a href="http://dirtybutter.com/plushcatalog/optional-gift-card-available.html">Order a Gift Card with Your Purchase</a>

   </div>

Looks not that rough...

I have to add this code into the main.php file?

Link to comment
Share on other sites

I added two boxes on the left in myskin/templates/main.php and also modified the Newsletter Subscription box. So I guess the question is - what do you want the boxes to do?

http://dirtybutter.com/plushcatalog/

Thanks for your reply.

The boxes should display static text and/or images for now.

I jus want to know how to add extra boxes. Is it a hard job?

That shouldn't be hard to do at all. Here's my code for the two static boxes I added:

<div>

<h3>Embroidery Available</h3>

</br>

<a href="http://dirtybutter.com/plushcatalog/embroidery-of-name-up-to-10-characters.html">Custom Embroidery</a>

</div>



<div>

  <h3>Optional Gift Card</h3>

<br/>

<center>

<p class="image">

	<a href="http://dirtybutter.com/plushcatalog/optional-gift-card-available.html" title="Order a Gift Card with Your Purchase">

	  <img src="http://dirtybutter.com/plushcatalog/images/cache/giftcardfront.138.jpg" alt="Order a Gift Card with Your Purchase" />

	</a>

  </p>

</center>

  <a href="http://dirtybutter.com/plushcatalog/optional-gift-card-available.html">Order a Gift Card with Your Purchase</a>

   </div>

Looks not that rough...

I have to add this code into the main.php file?

Yes - myskin/templates/main.php

Link to comment
Share on other sites

Guest DutchJam

Yes - myskin/templates/main.php

Got it...

One more question: is it possible tot add javascript in such a box?

Sorry. I can't answer that.

No problem :)

Thanks for your help anyway, I appreciate it. I now know how to add extra boxes, so you helped a lot!

Thanks again

Link to comment
Share on other sites

One more question: is it possible tot add javascript in such a box?

Yes. You can add javascript anywhere in the template files. It needs to go between {literal} smarty tags, like this:


{literal}

<script type="text/javascript">



your javascript



</script>

{/literal}

Link to comment
Share on other sites

Guest DutchJam

One more question: is it possible tot add javascript in such a box?

Yes. You can add javascript anywhere in the template files. It needs to go between {literal} smarty tags, like this:


{literal}

<script type="text/javascript">



your javascript



</script>

{/literal}

Works perfect! Never heard of the {literal} tag before, but it's easy to use.

Thanks Viola :)

Link to comment
Share on other sites

Works perfect! Never heard of the {literal} tag before, but it's easy to use.

{literal} is a smarty thing:

http://www.smarty.net/docs/en/language.function.literal.tpl

Link to comment
Share on other sites

  • 3 months later...
Guest cigaramerica.net

Hi, I am looking at the main.php source code, but I can't tell from the dynamic code which is the sidebar and where I could add

a static div with content similar to yours?


{$CATEGORIES} {$SALE_ITEMS} {$MAIL_LIST}

{$SHOPPING_CART} {$RANDOM_PROD} {if isset($POPULAR_PRODUCTS)}{$POPULAR_PRODUCTS}{/if}

{include file='templates/box.errors.php'} {if isset($CHECKOUT_PROGRESS)}{$CHECKOUT_PROGRESS}{/if} {$PAGE_CONTENT}



{if isset($SKIN_SELECT)}{$SKIN_SELECT}{/if} {$SITE_DOCS}



{$COPYRIGHT} {if isset($DEBUG_INFO)}{$DEBUG_INFO}{/if} {include file='js/common.html'} {if isset($JANRAIN)}{$JANRAIN}{/if} {if isset($LIVE_HELP)}{$LIVE_HELP}{/if} {foreach from=$JS_SCRIPTS key=k item=script} {/foreach}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...