X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Forum FAQs and guides (https://forum.x-cart.com/forumdisplay.php?f=30)
-   -   A list of things asked a million times ..... (https://forum.x-cart.com/showthread.php?t=20303)

shan 03-04-2006 07:01 AM

A list of things asked a million times .....
 
A list of things asked a million times .....

This will be as you may have guessed a list of things that keep getting asked in the forum over and over and over and over and over again.

Its a locked thread but if you know something that should go in here let a mod know and well add it

shan 03-04-2006 07:03 AM

Remove Product #ID from product detail title
 
Remove Product #ID from product detail title

How do I remove the id number from my product title in the detail pages.
Current display is: "product name #xxxxxxxx"
I want: "product name"

Open /skin1/customer/main/product.tpl and look for this line (near the bottom):

Code:

{include file="dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog extra="width=100%"}

Change it to:

Code:

{include file="dialog.tpl" title=$product.product content=$smarty.capture.dialog extra="width=100%"}

shan 03-08-2006 05:22 AM

How can I add html tags to certain fields like extra fields
 
How can I add html tags to certain fields like extra fields etc

the reason you cant is because xcart stores a list of trusted variables as a security measure. yuo can add to the list etc by doing the following...

First alter the database tables
The table you want to alter is xcart_extra_field_values.

Change it to text or varchar intead of char(255)

you can do this by running this sql command with phpmyadmin or via the patch update page in your admin
Code:

ALTER TABLE `xcart_extra_field_values` CHANGE `value` `value` TEXT

Then edit the provider/product_modify.php file and add the additional field name in the array: $trusted_post_variables

You'll find this at the top of the file, the field needs to trusted before X-Cart will allow HTML to be entered into the field.

Here is the full code snippet you need to add the field name to:
Code:

$trusted_post_variables = array("product_lng_descr","product_lng_full_descr", "product_new_descr","product_new_full_descr","descr", "fulldescr","posted_data","js_code","javascript_code");

shan 03-08-2006 05:32 AM

Remove "Powered by X-Cart: shopping cart software"

Edit skin1/main/prnotice.tpl

shan 03-10-2006 03:58 AM

How To Remove "Send To Friend
 
How To Remove "Send To Friend"

Goto skin1\customer\main\product.tpl

And look for this code:

Code:

{include file="customer/main/send_to_friend.tpl" }

And just delete that line or uncomment it like:

Code:

{*{include file="customer/main/send_to_friend.tpl" }*}

shan 03-17-2006 04:06 AM

How To Increase or Alter order number
 
How To Increase or Alter order number

go to the patch / upgrade section of your xcart admin area and submit this code via the SQL queries form


Code:

ALTER TABLE xcart_orders AUTO_INCREMENT = xxxxxx;

set xxxxx to be the order number you wish your orders to go from.

ps, make sure this number is bigger then the last order number in your cart

shan 03-20-2006 06:29 AM

How To Move Your Site To The Root Directory
 
How To Move Your Site To The Root Directory

Lets say you have your shop set up as something like this

http://www.yourdomain.com/xcart

and you would rather it were set up more like this

http://yourdomain.com/

########################################

Firstly, set all your images to be stored in the database if they are not already. This will make more sense later, stick with it......

now either by using you FTP client or via SSH copy all the files from the folder that they are currently in back to the root directory of your server. more often then not this will be called something like public_html

next up you need to open your config.php file and look for the section (not far from the top) that asks for the location of your store.

look for

Code:

$xcart_http_host ="yourdomain.com";
$xcart_https_host ="yourdomain.com";
$xcart_web_dir ="/xcart";


and change it to

Code:

$xcart_http_host ="yourdomain.com";
$xcart_https_host ="yourdomain.com";
$xcart_web_dir ="";


now go back to the images location section and set the images to store in the filesystem again.

And thats that......

you can always remove the thumbnails that are stored on the filesystem before moving your files once you have moved them to the database. This is a good way of flushing out all the old unused ones and makes sure there are no duplicates in there wasting space. They will all be replaced once you set the images to store in the filesystem again later

shan 05-02-2006 12:36 PM

How To Change The Default Welcome Text

This is what is there to start with

Quote:

This is a demo store powered by the X-Cart and based on PHP4 template technology and integrated with a SQL database. It is a fully functional store, as a buyer you can browse products, put products into your cart and check out. As an administrator you can add categories, products and change the look and feel of your store. If you have any questions please contact us.

This service is for demo purposes only. No real products. No real prices. No real charges. Please do not submit real credit card information.

Go to your admin panel. Right menu: administration. In that menu you see: languages.
Select English. At the topic section change labels to text:
And search for the following label:
txt_welcome

edit or delete the contents depending on your needs.

balinor 10-01-2008 04:03 PM

Re: A list of things asked a million times .....
 
How To Change The Logo

Simply upload your logo to skin1/images and then edit skin1/head.tpl and update the code with the name of your image.

balinor 10-22-2008 04:09 AM

How to add a unique title to the home page
 
How to add a unique title to the home page only

In customer/home.tpl, replace this:

Code:

<title>{strip}
{capture name=title}
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{if not %position.first%}&nbsp;::&nbsp;{/if}
{$location[position].0|strip_tags|escape}
{/section}
{else}
{section name=position loop=$location step=-1}
{if not %position.first%}&nbsp;::&nbsp;{/if}
{$location[position].0|strip_tags|escape}
{/section}
{/if}
{/capture}
{if $config.SEO.page_title_limit <= 0}
{$smarty.capture.title}
{else}
{$smarty.capture.title|replace:"&nbsp;":" "|truncate:$config.SEO.page_title_limit|replace:" ":"&nbsp;"}
{/if}
{/strip}</title>


with this:

Code:

<title>
{if $main eq "catalog" and $current_category.category eq ""}
Insert your keyword-rich title here
{else}
{strip}
{capture name=title}
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{if not %position.first%}&nbsp;::&nbsp;{/if}
{$location[position].0|strip_tags|escape}
{/section}
{else}
{section name=position loop=$location step=-1}
{if not %position.first%}&nbsp;::&nbsp;{/if}
{$location[position].0|strip_tags|escape}
{/section}
{/if}
{/capture}
{if $config.SEO.page_title_limit <= 0}
{$smarty.capture.title}
{else}
{$smarty.capture.title|replace:"&nbsp;":" "|truncate:$config.SEO.page_title_limit|replace:" ":"&nbsp;"}
{/if}
{/strip}{/if}</title>



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

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