X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   X-Cart Smart Template v4.4.x (https://forum.x-cart.com/showthread.php?t=55088)

cflsystems 02-05-2011 08:38 PM

Re: X-Cart Smart Template v4.4.x
 
@ Soft-Seller post 228

The iframe you have is inside a table. Keep the width=100% for the iframe and add same (width="100%") for the table container

Soft-Reseller.com 02-05-2011 08:55 PM

Re: X-Cart Smart Template v4.4.x
 
Quote:

Originally Posted by cflsystems
@ Soft-Seller post 228

The iframe you have is inside a table. Keep the width=100% for the iframe and add same (width="100%") for the table container


Hello

Thank you for your reply.

where I will find this table container. I have tried but didnt find anywhere.

regards
Kashif

JacksmithxD 02-06-2011 04:10 AM

Re: X-Cart Smart Template v4.4.x
 
Quote:

Originally Posted by open
HI,
We all purchased xcart also and over 218,400 posts for help in the forums do show that asking and reading will get you the solution and improved features you are looking for. Then you can help other new users with your experiences. When researching what cart system to use the forum real life help files available will make a difference as to people's software choice. Keep up the super support people.

Read what I posted, I said template aka this template not xcart itself. People are expecting to much of Phil.

cflsystems 02-06-2011 04:58 AM

Re: X-Cart Smart Template v4.4.x
 
Quote:

Originally Posted by Soft-Reseller.com
Hello

Thank you for your reply.

where I will find this table container. I have tried but didnt find anywhere.

regards
Kashif


It's the one you are inserting the iframe in

<table cellspacing="0" cellpadding="0" summary="Description">
<tbody><tr>
<td class="descr"><iframe height="1500" frameborder="0" align="center" width="100%"

PhilJ 02-06-2011 05:02 AM

Re: X-Cart Smart Template v4.4.x
 
I use this script for IFRAME's - it auto resizes the frame height according to the content, so no need for fixed height...

http://www.phpmix.org/iframe_height_auto_resize

http://www.phpmix.org/iframe_height_auto_resize/iframe_height_auto_resize_the_code

Example usage...

Code:

{* IE7 Compatibility *}
{literal}
<style type="text/css">
.my_iframe {
 position:relative;
 left:0px;
 top:0px;
 z-index:0;
 width:100%;
 height:auto;
 opacity:1.0;
 -moz-opacity:1.0;
}
</style>
{/literal}
{* /IE7 Compatibility *}
<div class="my_iframe"><iframe src="PATH_TO_CONTENT.html" onload="DYNIFS.resize('my_iframe')" id="my_iframe" name="my_iframe" allowtransparency="true" frameborder="0" scrolling="no" style="background-color:transparent; margin:0px; padding:0px; border:0px; width:100%; height:auto;">Sorry, your browser doesn't support iframes.</iframe></div>


Soft-Reseller.com 02-06-2011 07:11 AM

Re: X-Cart Smart Template v4.4.x
 
Quote:

Originally Posted by cflsystems
It's the one you are inserting the iframe in

<table cellspacing="0" cellpadding="0" summary="Description">
<tbody><tr>
<td class="descr"><iframe height="1500" frameborder="0" align="center" width="100%"



Hello

In my post

http://forum.x-cart.com/showpost.php?p=309710&postcount=228

I raised a problem I was facing. I write the problem again so it may help anybody facing the same.

---------------------------------------------------------------------------------------------

In detail description of a product I am using iframe.

The details with simple details shows in full Tab space.

http://www.soft-reseller.com/eshop/WinRAR.html
http://demos.soft-reseller.com/x-cart/forum_pics/description_without_Iframe.png

and where I use iframe and call a webpage there it shows like this

http://www.soft-reseller.com/eshop/AVG-PC-TuneUP-2011.html
http://demos.soft-reseller.com/x-cart/forum_pics/description_with_Iframe.png

---------------------------------------------------------------------------------------------


I want to say Thanks to cflsystems who helped me and gave me idea to solve the problem.

in File "tabs.tpl" in "custom" Folder line No. 55

"<table cellspacing="0" cellpadding="0" summary="{$lng.lbl_description|escape}">"

add width="100%" i.e

"<table cellspacing="0" cellpadding="0" width="100%" summary="{$lng.lbl_description|escape}">"

this will solve the problem.

Thanks cflsystems for help.

And PhilJ really great Template I love it there are some issues initially and that might be due to my very little knowledge in php but I know this Template will give my site a very impressive look.

Best Regards to both of you.
Soft-reseller.com

sparker2 02-06-2011 08:15 AM

Re: X-Cart Smart Template v4.4.x
 
Hello, can someone please tell me how to resize this drop-down list that I am using below. Someone was so kind to share this code to create this drop list for my product categories but for some reason it will not re-size the width automatically to show the full category names and the names are being cut off on the right hand side. List works great, just needs to be wider and I have no idea where to start.


<select name="listCategories" onchange="window.location=this.options[selectedIndex].value">
<option value=""><font class="VertMenuItems">Select A Product Category</font></option>
{foreach from=$categories_menu_list item=c name=categories}
{if $c.order_by < 899 && $c.product_count ne 0}
<option value="home.php?cat={$c.categoryid}">{$c.category} </font></option>
{/if}
{/foreach}
</select>







I created a template called dropdown_categories.tpl and I have placed it here on my header page:

<div id="st_menu_container">
<div id="st_menu">
{if $config.Smart_Template.st_horiz_menu eq "Y"}
{include file="custom/horiz_categories.tpl"}
{else}
{include file="custom/dropdown_categories.tpl"}
{/if}
</div>
</div>

--------------------------------------------------------------------
Inside my css the style is set to:

#st_menu_container { float: left; width: 42%; }
#st_menu { margin-right: 0px; }

These settings do nothing for the size though.

Thank you for your help and time. Shareen

PhilJ 02-06-2011 09:09 AM

Re: X-Cart Smart Template v4.4.x
 
Code:


<select name="listCategories" onchange="window.location=this.options[selectedIndex].value" style="width:100%">
<option value=""><font class="VertMenuItems">Select A Product Category</font></option>
{foreach from=$categories_menu_list item=c name=categories}
{if $c.order_by < 899 && $c.product_count ne 0}
<option value="home.php?cat={$c.categoryid}">{$c.category} </font></option>
{/if}
{/foreach}
</select>

You can adjust the % value or use a fixed pixel value - style="width:200px"

sparker2 02-06-2011 09:20 AM

Re: X-Cart Smart Template v4.4.x
 
Phil, Thank you so much! You have made my day because I have been stuck on this for weeks. Thanks again! Take Care!

sparker2 02-06-2011 12:49 PM

Re: X-Cart Smart Template v4.4.x
 
I would like to know if there is a way to increase the size of the logo field and drop everything else down a bit. I would like to use a logo that does not fit in the current logo space at the moment and everything up there seems to be bunched up and crowed. I would like to change my logo and and more space between logo and main page area.


All times are GMT -8. The time now is 07:26 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.