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

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

 
Reply
   X-Cart forums > Forum FAQs and guides
 
Thread Tools Search this Thread
  #1  
Old 03-04-2006, 07:01 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default 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
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote

The following user thanks shan for this useful post:
motakabber (08-10-2020)
  #2  
Old 03-04-2006, 07:03 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default 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%"}
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 03-08-2006, 05:22 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default 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");
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #4  
Old 03-08-2006, 05:32 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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

Edit skin1/main/prnotice.tpl
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote

The following 6 users thank shan for this useful post:
bostr (12-28-2010), ctroy@infowest.com (05-04-2011), dwpers (08-12-2009), fishx99 (08-06-2012), kwikbazaar (07-18-2012), Marcy (02-06-2012)
  #5  
Old 03-10-2006, 03:58 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default 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" }*}
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #6  
Old 03-17-2006, 04:06 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default 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
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote

The following 9 users thank shan for this useful post:
alinush (02-06-2012), aussie2009 (04-27-2012), chamberinternet (07-11-2012), ElBubano (08-30-2011), manningbrothers (01-28-2011), miek@palmflex.com (09-29-2010), originalwest (05-10-2013), tomijnak (12-31-2009), Warwick (06-20-2011)
  #7  
Old 03-20-2006, 06:29 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default 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
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote

The following 2 users thank shan for this useful post:
julied (04-09-2010), Tonymen (04-07-2011)
  #8  
Old 05-02-2006, 12:36 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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.
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote

The following 3 users thank shan for this useful post:
fogofogo (09-06-2010), greensam88 (01-15-2013), kevfromwiganinlancashire (04-27-2010)
  #9  
Old 10-01-2008, 04:03 PM
 
balinor balinor is offline
 

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

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #10  
Old 10-22-2008, 04:09 AM
 
balinor balinor is offline
 

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

Default 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>
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote

The following 2 users thank balinor for this useful post:
dwpers (08-12-2009), New York (06-24-2014)
Reply
   X-Cart forums > Forum FAQs and guides



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 06:49 PM.

   

 
X-Cart forums © 2001-2020