X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Product Box (https://forum.x-cart.com/showthread.php?t=13456)

mmaner 04-16-2005 08:24 AM

Product Box
 
I have looked all over the forum for a solution to this. I found a few posts that illustrated the problem but no solution.

What I want to do is create a cell structure that includes a Top Cell, Left Cell, Center Cell (This area would hold all of the product data), Right Cell & Bottom Cell.

I have illustarted the layout with the image below.

http://wittrans.net/prod_box.gif

Creating the cell structure is not a problem, but I can't isolate all the Smarty Tags that need to be in place for the products. Alos, is it product_t.tpl that shows the product?

Any help would be appreciated :)

sportruck 04-16-2005 08:57 AM

/customer/main/product.tpl contains the individual product details. You might want to split your top and bottom images into 3 as well, so you can scale the width as well as the height depending on your layout.

mmaner 04-16-2005 10:19 AM

I editied customer/mail/product.tpl to no avail.

I changed
Code:

<TABLE border="0" width="100%">
to
Code:

<table border="0" width="732" background="{$ImagesDir}/dialog_bg.gif">

It did nothing :( I am rather confused at this point.

balinor 04-16-2005 11:53 AM

Open up product.tpl in Dreamweaver and you will see how the tables are set up. Also, the 'background' tag is a depreciated tag and should not be used. If you want to set a background image, be sure to use CSS.

Also, the overall width of the site is controlled by rectangle_top.tpl, home.tpl, and product.tpl in that order. Changing the table width in product.tpl may not do anything if it is being overridden by a setting higher up in the heirarchy.

mmaner 04-16-2005 01:05 PM

Here's what I have so far, for th elife of me I can figure out how to get the background lined up or get the bottom image in place

http://www.wittrans.net/ecart/home.php?cat=1

I would appreciate any help you guys have to offer. Thanks :)

balinor 04-16-2005 01:08 PM

Ohhhhhh....you aren't talking about the product display, you are talking about the whole site! In that case, you should be working on dialog.tpl, that controls the 'box' around all of the content.....

Jon 04-16-2005 02:26 PM

menu.tpl also for the menu areas.

mmaner 04-16-2005 03:35 PM

finally got it...

Code:

{* $Id: dialog.tpl,v 1.19 2004/06/24 09:53:29 max Exp $ *}
{if $printable ne ''}
{include file="dialog_printable.tpl"}
{else}
<TABLE border="0" cellpadding="0" cellspacing="0" {$extra}>
<TR>
<TD height="15" width="732" class="DialogTitle" background="{$ImagesDir}/dialog_bg_n.gif" valign="bottom">б═б═:: {$title}</TD>
</TR>
<TR><TD class="DialogBorder"><TABLE border="0" cellpadding="10" cellspacing="0" width="732">
<TR><TD class="DialogBox">{$content}
<TR>
<TD height="7" width="732" class="DialogTitle" background="{$ImagesDir}/dialog_bot.gif" valign="top"></TD>
</TABLE>
{/if}


Now I just have to do the buttons, the CSS Text entries, etc :). Thanks for the help

mmaner 04-16-2005 05:39 PM

Does anyone kknow the CSS entry for 'Sort by: ', 'SKU:' & 'Quantity' on the product listing?

I have looked everywhere and if I start drinking cofee this late in the game I might start using cyan and pink :)

balinor 04-16-2005 06:31 PM

There isn't one...it is called via search_sort_by.tpl

mmaner 04-16-2005 06:53 PM

I looked at 'search_sort_by.tpl' and didn't see anything that would allow you to change the text properties.

I'm sorry if I wasn't clear. What I want to do is change the 'Sort by: ', 'SKU:' & 'Quantity' text properties on the product listing page.

You can see it here for more clarification.

http://www.wittrans.net/ecart/home.php?cat=4

Thanks for all the help :)

balinor 04-17-2005 05:05 AM

That's what I mean, there is currently no formatting on that template, so it just displays in the default font. Just add your own class to the css file and use <span> tags to format it.

mmaner 04-17-2005 08:10 AM

Doh! :) I dill give it a try, thanks.

mmaner 04-17-2005 03:30 PM

I am having a real problem identifying the smarty comments that control the marked text in the image below. I would REALLLLLY appreciate any help you guys could provide on this.

http://wittrans.com/2do.gif

thanks :)

balinor 04-17-2005 04:14 PM

Ok, the 'result pages' is controlled by customer/main/navigation.tpl. The sku and the quantity are called in customer/main/products.tpl. Take a look at both and you will see what styles are associated with them.

The sort by is the file I mentioned before: main/search_sort_by.tpl

Also, be sure to use Webmaster Mode, it will help you track down which template is which.

mmaner 04-18-2005 08:05 AM

that did it m8, thanks :)

http://www.wittrans.net/ecart/home.php?cat=87


All times are GMT -8. The time now is 08:12 AM.

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