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)
-   -   Adding Trust Logo (and) Moving 'update' button (https://forum.x-cart.com/showthread.php?t=14284)

Tequilaboy 05-31-2005 07:07 PM

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

alinticlea 06-01-2005 07:26 AM

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

Tequilaboy 06-01-2005 01:51 PM

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?

balinor 06-01-2005 03:15 PM

skin1/customer/home.tpl is the correct file. Skin1/single/home.tpl is the admin front page.

alinticlea 06-01-2005 04:52 PM

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

Alin

Tequilaboy 06-01-2005 06:42 PM

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?

alinticlea 06-02-2005 05:05 AM

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

balinor 06-02-2005 05:08 AM

Tequilaboy, please don't double post. I answered in the other thread before I realized you posted here as well.

Tequilaboy 06-02-2005 08:41 PM

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.

Tequilaboy 06-02-2005 09:39 PM

Thanks alinticlea, moved update button no prob.


All times are GMT -8. The time now is 02:05 PM.

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