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)
-   -   Couple of Template edits (https://forum.x-cart.com/showthread.php?t=42477)

ibit-matt 09-20-2008 05:26 AM

Couple of Template edits
 
2 Attachment(s)
I am trying to edit a couple of things with my template. I have attached a screenshot of what I am trying to do.


Product change screen. I want to add two more buttons and the text in red will be added to those buttons


Thanks in Advance

JWait 09-20-2008 06:50 AM

Re: Couple of Template edits
 
I have no idea about "Local Authorities" but your other buttons can be added to skin1/customer/ products.tpl or skin1/customer/ products_t.tpl, depending on which you are using. The "More Info" link and text is found in products.tpl (or products_t.tpl)
Code:

<a href="product.php?productid={$products[product].productid}&amp;cat={$cat}&amp;page={$navigation_page}{if $featured eq 'Y'}&amp;featured{/if}">{$lng.lbl_see_details}</a>
You will have to edit it according to what you want, or comment it out by adding {* and *} to the beginning and end of what you want to remove.

Edits in skin1..
TopLabel class for "Search"
VertMenuLeftColumn add "width"
VertMenuRightColumn add "width"

"Advanced Search" uses the default A:link class. You can specifiy a different class for this link in skin1/customer/search.tpl (look for the $lng.lbl_advanced_search label)

ibit-matt 09-23-2008 11:30 AM

Re: Couple of Template edits
 
I am trying to increase the left vertical column and have edited the css like this but it does not work

Code:

.VertMenuLeftColumn {
 VERTICAL-ALIGN: top;
 PADDING-LEFT: 7px;
 PADDING-RIGHT: 20px;
 WIDTH: 300px;



Any Ideas?

ibit-matt 09-27-2008 11:46 AM

Re: Couple of Template edits
 
Can anyone help me with this please

JWait 09-27-2008 12:22 PM

Re: Couple of Template edits
 
In skin1/customer/hometpl, change
<td class="VertMenuLeftColumn">
to
<td width="300px">

ibit-matt 09-27-2008 12:53 PM

Re: Couple of Template edits
 
All that did wa made the left column move down the page 300 pixels

I want to make the left hand column wider.

JWait 09-27-2008 01:14 PM

Re: Couple of Template edits
 
That is strange. Do you have a link? PMif you don't want it public?

ibit-matt 09-27-2008 01:21 PM

Re: Couple of Template edits
 
1 Attachment(s)
See Screen Attached

ARW VISIONS 09-27-2008 02:20 PM

Re: Couple of Template edits
 
in home.tpl you will find a line similar to this...

<img src="{$ImagesDir}/spacer.gif" width="150" height="1" alt="" />


I shouod be at the very end of the left column.

change the width to whatever you want it to be.

ibit-matt 09-27-2008 02:27 PM

Re: Couple of Template edits
 
Thankyou :-)

ibit-matt 09-30-2008 11:31 AM

Re: Couple of Template edits
 
Right I am trying to move the more details links next to the buy now link.

this is the code for the more details link which is in the /customer/main/products.tpl

Code:

<a href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}{if $featured eq 'Y'}&featured{/if}" style="TEXT-DECORATION: underline;">{$lng.lbl_see_details}</a>

Where do I move this code so its next to the buy now button

ibit-matt 10-02-2008 02:04 PM

Re: Couple of Template edits
 
Can anyone help please :-)

ibit-matt 10-05-2008 04:42 AM

Re: Couple of Template edits
 
Anyone please :-)

ARW VISIONS 10-05-2008 08:10 AM

Re: Couple of Template edits
 
Open skin1/customer/main/buy_now.tpl.

Find this line.

<td>{include file="submit_wo_js.tpl" value=$lng.lbl_buy_now}</td>
{/if}

Add this after it.

<td style="padding-left: 20px;"><a href="product.php?productid={$products[product].productid}&amp;cat={$cat}&amp;page={$navigation_p age}{if $featured eq 'Y'}&amp;featured{/if}">{$lng.lbl_see_details}</a>
</td>

ibit-matt 10-05-2008 10:17 AM

Re: Couple of Template edits
 
Thank you very much Ashley. How do I go about changing the look of the link so it looks like the by now button?

ARW VISIONS 10-05-2008 10:57 AM

Re: Couple of Template edits
 
create a table around the link with the same images as the buy now button.

ibit-matt 10-08-2008 11:49 AM

Re: Couple of Template edits
 
HI there Ashley I have been trying to get the images to show around the more info link

This is the code I have

Code:

<td></td>
    <td><a href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}{if $featured eq 'Y'}&featured{/if}">{$lng.lbl_see_details}</a></td>
    <td></td>


I have been adding some style tags to the td tags to add the images but its not working

can you help me please

ibit-matt 10-18-2008 10:40 AM

Re: Couple of Template edits
 
Can anyone help me please

ibit-matt 10-19-2008 10:06 AM

Re: Couple of Template edits
 
If anyone could help me out with this please I would really appreciate it :-)

ARW VISIONS 10-19-2008 10:09 AM

Re: Couple of Template edits
 
post your URL and I'll take a look.

ibit-matt 10-19-2008 10:35 AM

Re: Couple of Template edits
 
http://www.rapidvisionsystems.com/home.php?cat=19


Thanks

ARW VISIONS 10-19-2008 10:55 AM

Re: Couple of Template edits
 
<td><img src="/skin1/images/but1.gif" class="ButtonSide" alt=""></td>
<td class="Button"><font class="Button"><a href="product.php?productid={$products[product].productid}&amp;cat={$cat}&amp;page={$navigation_p age}{if $featured eq 'Y'}&amp;featured{/if}">More Info</a></font></td>
<td><img src="/skin1/images/but2.gif" class="ButtonSide" alt=""></td>

try this

ibit-matt 10-19-2008 11:02 AM

Re: Couple of Template edits
 
Thats great. Thanks

How do I add a gap between the buttons?

ARW VISIONS 10-19-2008 11:03 AM

Re: Couple of Template edits
 
<td>&nbsp;&nbsp;&nbsp;</td>

ibit-matt 10-19-2008 11:06 AM

Re: Couple of Template edits
 
Thankyou very much Ashley :-)

ARW VISIONS 10-19-2008 11:28 AM

Re: Couple of Template edits
 
check PMs

ibit-matt 10-19-2008 11:52 AM

Re: Couple of Template edits
 
Hi again I have been asked to change the color of the buttons from orange to blue so what I have done it renamed the following images to the name of the orange buttons

but_menu1.gif renamed to but1.gif
but_menu2.gif renamed to but2.gif
but_menubg.gif renamed to butbg.gif

But the images looks a little strange and I also need the link to be white before they click it and after the link have been clicked and when they hover over it

http://www.rapidvisionsystems.com/home.php?cat=19

It not down to me about the template mate other wise I would buy a pre made template :-)

ARW VISIONS 10-19-2008 02:40 PM

Re: Couple of Template edits
 
Are the new images the same size as the old ones? If not you will have to make changes to the CSS to match the new images size. Often they are just a pixel or two of.

To change the link color you need to add a class declaration in the anchor tag.

<a href="product.php?productid={$products[product].productid}&amp;cat={$cat}&amp;page={$navigation_p age}{if $featured eq 'Y'}&amp;featured{/if}" class="white">

Then make a new class.

A.white:link {
COLOR: #ffffff;
TEXT-DECORATION: none;
display:block
}
A.white:visited {
COLOR: #ffffff;
TEXT-DECORATION: none;
display:block
}
A.white:hover {
COLOR: #ffffff;
TEXT-DECORATION: none;
display:block
}
A.white:active {
COLOR: #ffffff;
TEXT-DECORATION: none;
display:block
}

ibit-matt 10-20-2008 05:33 AM

Re: Couple of Template edits
 
Thanks Ashley

I have tried to move the more info button to the left of the buy now button but it did not work.

How would I do this please?


All times are GMT -8. The time now is 09:03 PM.

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