Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Size & number or right side menus

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-25-2009, 06:11 AM
  SCUBA1609's Avatar 
SCUBA1609 SCUBA1609 is offline
 

Advanced Member
  
Join Date: May 2009
Posts: 48
 

Default Size & number or right side menus

I input two new menu boxes in the right side. Unfortunately, this pushed the Authentication and News menus down & off the right side completely. It appears as if a blank Authentication menu is immediately below the Featured Products and is equally as wide. The News menu has disappeared completely.

I have assumed this is a wrap around issue. What file(s) do I adjust and what coding needs to be corrected?

Thanks Chris
__________________
4.4.3
Xmail Chimp
www.eHandCrankRadio.com/radiostore

4.2.1
AOM
Magnifier
Special offers

www.KeySleepAids.com
Reply With Quote
  #2  
Old 07-25-2009, 06:58 PM
 
steve.thompson steve.thompson is offline
 

eXpert
  
Join Date: Feb 2009
Location: Sydney, Australia
Posts: 302
 

Default Re: Size & number or right side menus

Hi Chris.

You don't say how you've added the new box.
The way I've added a box to show my SSL is:

Create new file skin1/secure.tpl
Code:
{capture name=menu}   <!-- GeoTrust QuickSSL [tm] Smart Icon tag. Do not edit. --> <center> {literal} <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" SRC="//smarticon.geotrust.com/si.js"></SCRIPT> {/literal} </center> <!-- end GeoTrust Smart Icon tag -->   {/capture} {include file="customer/menu_dialog.tpl" title="Site Secured by" content=$smarty.capture.menu}

Then edit skin1/customer/home.tpl
Towards the bottom of the file, you'll find a line which includes
Code:
<div id="right-bar">
This is the start of the right side box area.

I've added a call to the secure.tpl file here, below the authentication box:
Code:
{include file="customer/menu_cart.tpl" } {if $login eq "" } {include file="customer/auth.tpl" } {else} {include file="customer/authbox.tpl" } {/if} {include file="secure.tpl" }

Steve.
__________________
X-Cart Gold 4.2.1 / 4.4.2
X-AOM, X-SpecialOffers
Download Expander 2.1.3 / 2.2.0
Reply With Quote
  #3  
Old 07-26-2009, 07:44 AM
  SCUBA1609's Avatar 
SCUBA1609 SCUBA1609 is offline
 

Advanced Member
  
Join Date: May 2009
Posts: 48
 

Question Re: Size & number or right side menus

Steve,

First, I created a file in skin1/modules for the new right side "SSL Seal" menu box. Then I included code in skin1/customer/home.tpl. Everything appeared ok so, I repeated this action for a "My Guarantee" menu box. This caused the lower menu boxes disappeared.

To see if the extra box caused the problem, I commented out {* *} the "MY Guarantee" line of code in home.tpl and the lost boxes reappeared. I replace the guarantee coding and commented out the SSL coding and the lost boxes remained visable. Therefore, I assumed, my problem was not my coding.

There must be a size adjustment contained in a file. I just can't find it. Would your approach result in the same problem?

Chris
__________________
4.4.3
Xmail Chimp
www.eHandCrankRadio.com/radiostore

4.2.1
AOM
Magnifier
Special offers

www.KeySleepAids.com
Reply With Quote
  #4  
Old 07-26-2009, 01:51 PM
 
steve.thompson steve.thompson is offline
 

eXpert
  
Join Date: Feb 2009
Location: Sydney, Australia
Posts: 302
 

Default Re: Size & number or right side menus

Hi Chris.

I've made 2 new boxes and added them to the right side. Also moved a couple of boxes from the left side to the right side, because my category list is quite long. None of the existing boxes disappeared.

Post the code for one of your boxes and the segment of home.tpl where youve called up the box.

Another thought, we're both running 4.2.1 with AOM and Special Offers. You're also running Magnifier. Try turning that off.

Yet another thought, I've recently had a problem with a template that only showed up on IE7. Try you site using IE8 or FireFox or Opera.

Are you using a default template or a 3rd party template?

Steve.
__________________
X-Cart Gold 4.2.1 / 4.4.2
X-AOM, X-SpecialOffers
Download Expander 2.1.3 / 2.2.0
Reply With Quote
  #5  
Old 07-26-2009, 02:24 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Size & number or right side menus

Quote:
Originally Posted by steve.thompson
<center>

Steve,

The center element was deprecated in HTML 4.01.

http://www.w3schools.com/TAGS/tag_center.asp

For a 4.2.x store, you should really be using CSS/XHTML

You may have your reasons to use <center> - but just in case others are reading this, it's worth mentioning.

Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #6  
Old 07-27-2009, 07:08 AM
  SCUBA1609's Avatar 
SCUBA1609 SCUBA1609 is offline
 

Advanced Member
  
Join Date: May 2009
Posts: 48
 

Question Re: Size & number or right side menus

Steve & Jeremy

I turned off MAGNIFIER and checked FF & IE7. The problem still exists.

I created a file in skin1/modules/yoursecurity.tpl :

{capture name=menu}
<span id="siteseal"><script type="text/javascript" src="https://isp.com/getSeal?sealID=12345abcde"> </script><br /><a style="font-family:arial;font-size:9px" href=https://www.isp.com/ispshop/ssl/ssl_opensource.asp target="_blank"> SSL Cert</a></span></div>

{/capture}
{include file="customer/menu_dialog.tpl" title="Shopping Security" content=$smarty.capture.menu}

I made modifications to skin1/customer/home.tpl :

<div id="right-bar">
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/button.tpl"}
{/if}


{if $active_modules.Feature_Comparison && $comparison_products ne ''}
{include file="modules/Feature_Comparison/product_list.tpl" }
{/if}

{include file="customer/menu_cart.tpl" }

{include file="modules/guarantee.tpl"}
{include file="modules/yoursecurity.tpl"}

{if $login eq "" }
{include file="customer/auth.tpl" }
{else}
{include file="customer/authbox.tpl" }
{/if}


{include file="customer/news.tpl" }
{if $active_modules.XAffiliate && $config.XAffiliate.partner_register eq 'Y'}
{include file="partner/menu_affiliate.tpl" }
{/if}


As I said authentic box and news box disappeared.

Chris
__________________
4.4.3
Xmail Chimp
www.eHandCrankRadio.com/radiostore

4.2.1
AOM
Magnifier
Special offers

www.KeySleepAids.com
Reply With Quote
  #7  
Old 07-27-2009, 02:16 PM
 
steve.thompson steve.thompson is offline
 

eXpert
  
Join Date: Feb 2009
Location: Sydney, Australia
Posts: 302
 

Default Re: Size & number or right side menus

I'll defer to the experts here but the first thing that comes to mind is an error with the script loaded from isp.com

You have an unnecessary /div but that shouldn't cause any problem.

Try moving:

{include file="modules/guarantee.tpl"}
{include file="modules/yoursecurity.tpl"}

to:

{if $login eq "" }
{include file="customer/auth.tpl" }
{else}
{include file="customer/authbox.tpl" }
{/if}

{include file="modules/guarantee.tpl"}
{include file="modules/yoursecurity.tpl"}

{include file="customer/news.tpl" }

Does the signin box reappear and is the news box still not appearing?

Is it the yoursecurity box or the guarantee box that's causing the problem? In message #3, you indicated that removing the guarantee line from home.tpl solved the problem? If so, could you post the guarantee.tpl code?

Steve.
__________________
X-Cart Gold 4.2.1 / 4.4.2
X-AOM, X-SpecialOffers
Download Expander 2.1.3 / 2.2.0
Reply With Quote
  #8  
Old 07-29-2009, 04:33 AM
  SCUBA1609's Avatar 
SCUBA1609 SCUBA1609 is offline
 

Advanced Member
  
Join Date: May 2009
Posts: 48
 

Default Re: Size & number or right side menus

Steve

I input your suggestion and moved the code. The Authentication box appeared above my guarantee and security box. I don't know why but it worked. Unfortunately, the news box remains hidden. I'll keep working on it

I can't see how this small move could possibly make a difference.

Thanks for your help.
Chris
__________________
4.4.3
Xmail Chimp
www.eHandCrankRadio.com/radiostore

4.2.1
AOM
Magnifier
Special offers

www.KeySleepAids.com
Reply With Quote
  #9  
Old 07-29-2009, 02:17 PM
 
steve.thompson steve.thompson is offline
 

eXpert
  
Join Date: Feb 2009
Location: Sydney, Australia
Posts: 302
 

Default Re: Size & number or right side menus

In message #3, you indicated that the problem seems to be related to your Guarantee box. Could you post the code for your Guarantee box here?

Steve.
__________________
X-Cart Gold 4.2.1 / 4.4.2
X-AOM, X-SpecialOffers
Download Expander 2.1.3 / 2.2.0
Reply With Quote
  #10  
Old 07-30-2009, 06:41 AM
  SCUBA1609's Avatar 
SCUBA1609 SCUBA1609 is offline
 

Advanced Member
  
Join Date: May 2009
Posts: 48
 

Default Re: Size & number or right side menus

Steve,

This is the code used to create the guarantee box:

{*
$Id: guarantee.tpl, 2009/07/14
created for guarantee logo in Rt sidebar
*}
{capture name=menu}
<img src="{$ImagesDir}/30_day_money_back.gif" alt="30 Day No Quibble Guarantee" / >
{/capture}
{include file="customer/menu_dialog.tpl" title="Your Guarantee" content=$smarty.capture.menu}

Also, I move the coding in skin1/customer/home.tpl for news
{include file="customer/news.tpl" }
to immediately before the guarantee coding. The "News" menu box does not appear. In Webmaster mode I can see a black line on the top of the guarantee box where news is supposed to be.

I'll admit it, I'm lost. It must be something easy I'm missing.

Thanks for the assist.
Chris
__________________
4.4.3
Xmail Chimp
www.eHandCrankRadio.com/radiostore

4.2.1
AOM
Magnifier
Special offers

www.KeySleepAids.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:00 AM.

   

 
X-Cart forums © 2001-2020