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

Adding Trust Logo (and) Moving 'update' button

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-31-2005, 07:07 PM
  Tequilaboy's Avatar 
Tequilaboy Tequilaboy is offline
 

Advanced Member
  
Join Date: May 2005
Posts: 45
 

Default Adding Trust Logo (and) Moving 'update' button

I have 2 questions.

1. I want to add my trust logo under the lefthand menu and want to know which file I need to be editing.
I found this thread (http://forum.x-cart.com/viewtopic.php?t=8138) explaining how to actually set up the logo properly, but I want to know which file I should be putting that short line of code into to get the logo to show up where I want it (see image below).

2. I want to move the update button in the cart contents to be under the quantity for each item (amazon.com style) instead of one update button at the bottom of the page. I assume I just copy the code from one tpl file into another tpl file but I don't know which two to screw with.

I am using the Crystal Blue skin template if that makes any difference, (http://www.x-cart.com/skin_template.html?skin=1) with X-Cart Gold v 4.0.13.

http://www.madragzstore.com/cart_modification.gif
__________________
Wicked shirts, and other assorted mayhem.
www.MadRagz.com
-----
X-Cart Gold v 4.0.13
Reply With Quote
  #2  
Old 06-01-2005, 07:26 AM
 
alinticlea alinticlea is offline
 

Member
  
Join Date: Nov 2004
Location: Canada
Posts: 24
 

Default

For your first problem you can put the HTML code for trusted logo in
/skin1/home.tpl

Search for the following code:


<TABLE border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<TR>
<TD width="6"></TD>
<TD width="150" valign="top">
{if $categories ne "" and ($active_modules.Fancy_Categories ne "" or $config.General.root_categories eq "Y" or $subcategories ne "")}
{ include file="customer/categories.tpl" }


{/if}
{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu eq "Y"}
{ include file="modules/Bestsellers/menu_bestsellers.tpl" }
{/if}
{if $active_modules.Manufacturers ne "" and $config.Modules.manufacturers_menu eq "Y"}
{ include file="modules/Manufacturers/menu_manufacturers.tpl" }
{/if}
{include file="customer/special.tpl"}
{ include file="help.tpl" }
[img]{$ImagesDir}/spacer.gif[/img]
</TD>

Enter your code between the last two lines.

Best regards,
Alin
__________________
X-cart v 4.0.11 [live store]
www.beddingtons.com
Reply With Quote
  #3  
Old 06-01-2005, 01:51 PM
  Tequilaboy's Avatar 
Tequilaboy Tequilaboy is offline
 

Advanced Member
  
Join Date: May 2005
Posts: 45
 

Default

There doesn't seem to be a 'skin1/home.tpl' file. There is
- skin1/single/home.tpl
- skin1/customer/home.tpl
- skin1/fulfilment/home.tpl

Should I try and make changes to all three pages?
__________________
Wicked shirts, and other assorted mayhem.
www.MadRagz.com
-----
X-Cart Gold v 4.0.13
Reply With Quote
  #4  
Old 06-01-2005, 03:15 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

skin1/customer/home.tpl is the correct file. Skin1/single/home.tpl is the admin front page.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 06-01-2005, 04:52 PM
 
alinticlea alinticlea is offline
 

Member
  
Join Date: Nov 2004
Location: Canada
Posts: 24
 

Default

Sorry, it was my mistake, it is as balinor said /skin1/customer/home.tpl

Alin
__________________
X-cart v 4.0.11 [live store]
www.beddingtons.com
Reply With Quote
  #6  
Old 06-01-2005, 06:42 PM
  Tequilaboy's Avatar 
Tequilaboy Tequilaboy is offline
 

Advanced Member
  
Join Date: May 2005
Posts: 45
 

Default

So, I'm getting an error and I have a sneaking suspicion that I made the secure_cert.tpl file incorrectly. I've posted my issue in this thread (http://forum.x-cart.com/viewtopic.php?p=92609) but if anybody here has an answer as well, would be awesome.

Also, can anybody help me move the update button?
__________________
Wicked shirts, and other assorted mayhem.
www.MadRagz.com
-----
X-Cart Gold v 4.0.13
Reply With Quote
  #7  
Old 06-02-2005, 05:05 AM
 
alinticlea alinticlea is offline
 

Member
  
Join Date: Nov 2004
Location: Canada
Posts: 24
 

Default

About the second problem, the code for that button is in /skin1/customer/main/cart.tpl

The code for the "Update Cart", "Clear Cart" and "Checkout" buttons is the following one:

{if $js_enabled}
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD>
{include file="buttons/update.tpl" type="input" href="javascript: document.cartform.submit()" js_to_href="Y"}

{include file="buttons/button.tpl" button_title=$lng.lbl_clear_cart href="cart.php?mode=clear_cart"}
</TD>
{if $active_modules.Special_Offers}
{include file="modules/Special_Offers/customer/cart_checkout_buttons.tpl"}
{/if}
<TD align="right">
{include file="buttons/button.tpl" button_title=$lng.lbl_checkout style="button" href="cart.php?mode=checkout"}
</TD>
</TR>
</TABLE>
{else}
<INPUT type="hidden" name="mode" value="checkout">
{include file="submit_wo_js.tpl" value=$lng.lbl_checkout}
{/if}

You will have to move a part of this code inside of
{section name=product loop=$products}

{/section}
because I understand that you want only the update button repeted on each product line.

I hope this helps you to solve the problem.
Please let me know if you have problems in doing this.

Best regards,
Alin
__________________
X-cart v 4.0.11 [live store]
www.beddingtons.com
Reply With Quote
  #8  
Old 06-02-2005, 05:08 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Tequilaboy, please don't double post. I answered in the other thread before I realized you posted here as well.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 06-02-2005, 08:41 PM
  Tequilaboy's Avatar 
Tequilaboy Tequilaboy is offline
 

Advanced Member
  
Join Date: May 2005
Posts: 45
 

Default

I guess I was under the impression that the error I was getting with the trustlogo was a different question then trying to locate the position I wanted to put it at.
__________________
Wicked shirts, and other assorted mayhem.
www.MadRagz.com
-----
X-Cart Gold v 4.0.13
Reply With Quote
  #10  
Old 06-02-2005, 09:39 PM
  Tequilaboy's Avatar 
Tequilaboy Tequilaboy is offline
 

Advanced Member
  
Join Date: May 2005
Posts: 45
 

Default

Thanks alinticlea, moved update button no prob.
__________________
Wicked shirts, and other assorted mayhem.
www.MadRagz.com
-----
X-Cart Gold v 4.0.13
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 10:13 AM.

   

 
X-Cart forums © 2001-2020