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)
-   -   How do I get rid of Xcart button and "Save 47%" bu (https://forum.x-cart.com/showthread.php?t=4648)

bluecat 10-06-2003 04:13 PM

How do I get rid of Xcart button and "Save 47%" bu
 
I've searched and searched for these answers. I want to do two things: Remove the little "Powered by Xcart" button (to the bottom right) and remove (or turn off) the little star button that shows up after clicking on an item that's marked down, that is gold and says "Save 33%" or whatever it might be.

Thank you. :)

DogByteMan 10-06-2003 04:35 PM

poweredby.tpl is where you get rid of the x-cart logo.

I don't know the other off hand, if I get time I'll look if no one answers right away.

stryker898 10-06-2003 04:42 PM

Actually if you look in your customer/home.php you'll see this code:

{ include file="news.tpl" }
{if $active_modules.Interneka ne ""}
{ include file="modules/Interneka/menu_interneka.tpl" }
{/if}


{ include file="poweredby.tpl" }


</td>
</tr>
</table>
{ include file="rectangle_bottom.tpl" }
</body>
</html>

Remove the
Quote:

{ include file="poweredby.tpl" }
and that should take if from you home page. To remove it from admin panel take the same file out of single/home.php

DogByteMan 10-06-2003 04:45 PM

True enough, I use it most of the time for other purposes though so I leave it in and just clear it when not being used.

shan 10-06-2003 05:06 PM

you can remove the save % star by removing the cell in product.tpl or by not setting a market price

bluecat 10-06-2003 06:52 PM

Actually shan, can you elaborate? I'm in the main/product.tpl but not sure where to edit.

shan 10-07-2003 03:42 AM

x-cart version ?

bluecat 10-08-2003 04:07 AM

I just (believe it or not, lol) upgraded it to 3.4.8

shan 10-08-2003 04:33 AM

There you go.

Product.tpl without the save xx% star for V3.4.8


Code:

{* $Id: product.tpl,v 1.70.2.3 2003/06/10 11:40:46 svowl Exp $ *}
{literal}
<SCRIPT language=JavaScript1.2>
<!--
var store_language='{/literal}{$store_language}{literal}';

function product_option(name_of_option)
{
{/literal}
for(i=0; i<{$product_options_count|default:"0"}; i++)
  if (document.orderform[i].name.search(name_of_option) != -1)
        return document.orderform[i];
return -1;
{literal}
}

function FormValidation()

{/literal}
{if $javascript_code}
{$javascript_code}
{else}
return true;
{/if}
{literal}
}
-->
</SCRIPT>
{/literal}

{ include file="location.tpl" }
{capture name=dialog}
<table border=0 width=100%>
<form name=orderform method=post action="cart.php?mode=add">
<tr>
<td valign=top align=left rowspan=2 width=100>
{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url}
</td>
<td valign=top>
<span class=>
{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/if}
</span>



<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr><td colspan=2><font class=ProductDetailsTitle>{$lng.lbl_details}</font></td></tr>
<tr><td class=Line height="1" colspan=2>[img]{$ImagesDir}/spacer.gif[/img]</td></tr>
<tr><td colspan=2></td></tr>
{if $config.Appearance.show_in_stock eq "Y" and $config.General.unlimited_products ne "Y" and $product.distribution eq ""}
<tr><td width=30%>{$lng.lbl_quantity}</td><td nowrap>{if $product.avail gt 0}{$product.avail}{else}{$lng.txt_no}{/if} {$lng.txt_items_available}</td></tr>
{/if}
{if $product.weight ne "0.00"}<tr><td width=30%>{$lng.lbl_weight}</td><td nowrap>{$product.weight} {$config.General.weight_symbol}</td></tr>{/if}
{if $active_modules.Extra_Fields ne ""}
{include file="modules/Extra_Fields/product.tpl"}
{/if}
{if $active_modules.Subscriptions ne "" and $subscription}
{include file="modules/Subscriptions/subscription_info.tpl"}
{else}
<tr><td class=ProductPriceConverting>{$lng.lbl_price}:</td>
<td>
{if $product.price ne 0}
<font class=ProductDetailsTitle>{include file="currency.tpl" value=$product.price}</font><font class=MarketPrice> {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.price}</font>{if $config.Taxes.use_vat eq "Y" and $product.vat gt "0"}, {$lng.lbl_including_vat} {$product.vat}%{/if}
{else}
<input type=text size=7 name=price>
{/if}
</td>
</tr>
{/if}
</table>



<table border=0 width=100% cellpadding=0 cellspacing=0>
<tr><td colspan=2>
<font class=ProductDetailsTitle>{$lng.lbl_options}</font>
</td></tr>
<tr><td class=Line height="1" colspan=2>[img]{$ImagesDir}/spacer.gif[/img]</td></tr>
<tr><td colspan=2></td></tr>
{if $active_modules.Product_Options ne ""}
{ include file="modules/Product_Options/customer_options.tpl"}
{/if}
<tr><td height=25 width=30%>{$lng.lbl_quantity}{if $product.min_amount gt 1}
<FONT class=ProductDetailsTitle>{$lng.txt_need_min_amount} {$product.min_amount} {$lng.lbl_items}</FONT>{/if}</td>
<td>
{if $config.General.unlimited_products eq "N" and ($product.avail le 0 or $product.avail lt $product.min_amount)}
{$lng.txt_out_of_stock}
{else}
{if $config.General.unlimited_products eq "Y"}
{math equation="x+1" assign="mq" x=$config.Appearance.max_select_quantity}
{else}
{math equation="x/y" x=$config.Appearance.max_select_quantity y=$product.min_amount assign="tmp"}
{if $tmp<2}
{assign var="minamount" value=$product.min_amount}
{else}
{assign var="minamount" value=0}
{/if}
{math equation="min(maxquantity+minamount, productquantity)+1" assign="mq" maxquantity=$config.Appearance.max_select_quantity minamount=$product.min_amount productquantity=$product.avail}
{/if}
{if $product.distribution eq ""}
<select name=amount>
{if $product.min_amount le 1}
{assign var="start_quantity" value=1}
{else}
{assign var="start_quantity" value=$product.min_amount}
{/if}
{section name=quantity loop=$mq start=$start_quantity}
<option value="{%quantity.index%}" {if $smarty.get.quantity eq %quantity.index%}selected{/if}>{%quantity.index%}</option>
{/section}
</select>
{else}
<font class=ProductDetailsTitle>1</font><input type=hidden name=amount value=1> {$lng.txt_product_downloadable}
{/if}
{/if}
</td></tr>
<tr><td colspan=2>
<input type=hidden name=mode value=add>
{include file="customer/main/product_prices.tpl"}
{if $config.General.unlimited_products eq "Y" or ($product.avail gt 0 and $product.avail ge $product.min_amount)}
{if $js_enabled}
{include file="buttons/add_to_cart.tpl"}

{if $login ne "" and $active_modules.Wishlist ne ""}
{include file="customer/add2wl.tpl"}
{/if}
{else}
{include file="submit_wo_js.tpl" value=$lng.lbl_add_to_cart}
{/if}
{/if}

<input type=image src="{$ImagesDir}/null.gif" width=10 height=10 border=0 align=top>

</td>
</tr></table>
</td>
</tr>
<input type=hidden name=productid value="{$product.productid}">
<input type=hidden name=cat value="{$smarty.get.cat}">
<input type=hidden name=page value="{$smarty.get.page}">
</form>
</table>
{/capture}
{include file="dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog extra="width=100%"}
{if $active_modules.Detailed_Product_Images ne ""}



{include file="modules/Detailed_Product_Images/product_images.tpl" }
{/if}
{if $active_modules.Upselling_Products ne ""}



{include file="modules/Upselling_Products/related_products.tpl" }
{/if}
{if $active_modules.Recommended_Products ne ""}



{include file="modules/Recommended_Products/recommends.tpl" }
{/if}
{if $active_modules.Customer_Reviews ne ""}



{include file="modules/Customer_Reviews/vote_reviews.tpl" }
{/if}


bluecat 10-08-2003 06:11 AM

Hmmm, ok, I've gotten in to edit this file but I can't find a "save" or even the .gif file anywhere in the code. What exactly do I edit out? Thanks.

bluecat 10-08-2003 10:30 AM

sorry, had to bump because I edited my last thread. :lol:

shan 10-08-2003 10:31 AM

nothing. this is a replacement code as you need it

bluecat 10-08-2003 11:21 AM

OUtstanding, thank you very much. :)

bluecat 10-08-2003 11:43 AM

Hate to beat a dead horse, but that didn't work for me. I went into Webmaster mode, replaced the file and save it successfully, but it still comes up. To double check, I went into main/product.tpl under Edit Templates. Is there something I'm doing wrong?

DogByteMan 10-08-2003 11:55 AM

You should highlight and copy the entire code section above.

Open product.tpl using edit templates.

Highlight all code inside of product.tpl.

paste new code over the old code.

Save!

Your Done!

bluecat 10-08-2003 12:34 PM

Yeah, that's what I'm saying, I did that but it didn't work.

DogByteMan 10-08-2003 12:37 PM

Clear templates_c using the button at the bottom of the summary page. See if that does it.

bluecat 10-08-2003 05:11 PM

Nope, that didn't work either. :(

bluecat 10-09-2003 02:08 PM

Hey shan, or anyone, can you post the code that you edited out?

shan 10-09-2003 05:38 PM

the code i gave you was to replace the product.tpl in version 3.4.8

bluecat 10-09-2003 06:46 PM

Hi. I understand; however, when I did, it didn't change anything for me, but I will play with it further. :cry:

DogByteMan 10-09-2003 06:52 PM

I don't get it bluecat, I've looked over the code and i can't find anything that would make the star still appear. This is strange

DogByteMan 10-09-2003 06:56 PM

I have an Idea.... Paste the code into the file through your site admin control panel or put the code into notepad save it as product.tpl and upload it via ftp. In other words, try not using the edit templates feature in x-cart.

bluecat 10-09-2003 07:05 PM

ok, I'll do that now. :)

bluecat 10-09-2003 07:14 PM

Nope. 8O Here's the folder I ftp'd it to: /public_html/xcart/skin1/main which is where my product.tpl is, I'm lost. I first added it through xcart (after entering webmaster mode), I then tried it directly through my host, then did what you said and created the file (product.tpl) in Notepad and ftp'd it. :x

DogByteMan 10-09-2003 07:16 PM

This is like too weird... I'll look at the code one more time for you.

bluecat 10-09-2003 07:18 PM

I appreciate it. I even have a back up xcart (347) that I kept just in case I screwed up the upgrade and changed the file there as well. :roll:

DogByteMan 10-09-2003 07:20 PM

Give me the address to your x-cart and let me make sure this is not a cache thing or something like that.

bluecat 10-09-2003 07:28 PM

xx

DogByteMan 10-09-2003 07:32 PM

Nope, not a cache problem... that little bugger is definately still there.

What's worse is I can't see where it is in the code that shan posted.

bluecat 10-09-2003 07:36 PM

I don't know a lot about coding, but I do understand how certain pages pull from others, etc, etc. and I can't help but wonder if it's listed somewhere else as well; could be completely wrong, but I'm sure I've done everything correct on my side. 8O

I'll tinker around more, I'm still adding items daily anyway. But thanks for all the effort! :D

DogByteMan 10-09-2003 07:38 PM

I have looked over shan's code 4 times now and I don't see where that star is sneaking in. I think you need someone better than I to take a look at shan's code.... I can't find a problem with it.

bluecat 10-09-2003 07:42 PM

Well thanks again anyway. :)

DogByteMan 10-09-2003 07:55 PM

Quote:

Originally Posted by bluecat
Nope. 8O Here's the folder I ftp'd it to: /public_html/xcart/skin1/main which is where my product.tpl is, I'm lost. I first added it through xcart (after entering webmaster mode), I then tried it directly through my host, then did what you said and created the file (product.tpl) in Notepad and ftp'd it. :x


I found your problem!!!!

Put the code in /public_html/xcart/skin1/customer/main/product.tpl

It was in front of me all along..... Sorry :oops:

Remember to restore the other product.tpl file in /public_html/xcart/skin1/main

bluecat 10-09-2003 08:03 PM

omg, trying that now.

bluecat 10-09-2003 08:09 PM

Thank you, thank you! That was the problem; it works perfect now. :roll: Thanks again. :D

shan 10-10-2003 05:21 AM

good stuff :D

jfinn98 10-18-2003 04:25 AM

Guys, thanks for the code.
 
I didn't use the code yet....but I did gather the ideas from it and cut the code from my current tpl.

first I cut the save % star . that worked.

however, I still see a market price showing and asave 9%.

I tried cutting the market price if/else statement. that didn't apear to work.

the code from Shan doesn't really address this issue so I didn't wan tot try it. Now I will and will repost results.


Thanks,

JFinn

jfinn98 10-18-2003 04:37 AM

No luck removing market price option.
 
I see the code in product.tpl. however removing this section does nothing.
Anyone found this in the forum yet?


Thanks,

jfinn98 10-18-2003 05:07 AM

found it finally. BUT
 
http://forum.x-cart.com/viewtopic.php?t=4966&highlight=market


credit to this post.
products_t.tpl


I was able to find the code and remove the "market price"
however this also removes the product price from display.

can anyone tell me how to have just the "list" price

learning and reading as fast as possible. any help is appreciated.



Thanks,
JFinn


All times are GMT -8. The time now is 05:35 AM.

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