How to Add Extra Text for Detailed Images in Product Page of X-cart?

As default, X-cart does not display extra text to describe the big detailed images at product page, it is not good for our customers to know the meaning of the detailed images, and it is very bad for seo purpose. (more…)

Posted in X-Cart. Comments Off on How to Add Extra Text for Detailed Images in Product Page of X-cart? »

X-cart Seo For Nginx

Create a file called xcart.conf, and add the following code in this new file:

if ($uri !~ "^/(payment|admin|provider|partner)/"){
set $rule_0 1$rule_0;
}
if ($request_filename !~ "\.(gif|jpe?g|png|js|css|swf|php|ico)$"){
set $rule_0 2$rule_0;
}
if (!-f $request_filename){
set $rule_0 3$rule_0;
}
if (!-d $request_filename){
set $rule_0 4$rule_0;
}
if ($request_filename !~ "-l"){
set $rule_0 5$rule_0;
}
if ($rule_0 = "54321"){
rewrite ^/(.*)$ /dispatcher.php last;
}

Put this new file under /usr/local/nginx/conf/;

Say your domain name is www.cheapglasses.net, and you have created a fold called www.cheapglasses.net, go to /usr/local/nginx/conf/vhost, and edit www.cheapglasses.net.conf, add a line:
include xcart.conf;

Posted in Nginx, X-Cart. Comments Off on X-cart Seo For Nginx »

How to modify Contact Us meta tags of X-cart 5?

For seo purpose, we need to modify default contact up page meta tags, follow me, and you will know how I have modified this for  www.cheapglasses.net

First, create a file called ContactUs.php, and place it under classes/XLite/Module/XC/CustomSkin/Controller/Customer, add the following content within this file:

<?php
namespace XLite\Module\XC\CustomSkin\Controller\Customer;
/**
* Decorated controller class.
*
* @LC_Dependencies (“CDev\ContactUs”)
*/
class ContactUs extends \XLite\Module\CDev\ContactUs\Controller\Customer\ContactUs implements \XLite\Base\IDecorator
{/**
* Get meta title
*
* @return string
*/
public function getPageTitle()
{
return ‘Contact Cheapglasses.net’;
}
/**
* Get meta description
*
* @return string
*/
public function getMetaDescription()
{
return ‘Discount prices on prescription eyeglasses and sunglasses online.’;
}

    /**
* Get meta keywords
*
* @return string
*/
public function getKeywords()
{
return ‘eyeglasses,sunglasses,eyeglass lenses,eyeglass,glasses,eye glasses,sun glasses,prescription eyeglasses, prescription eye glasses,cheap eyeglasses,cheap eye glasses,eye doctor,eye doctors,eyeglass prescription,eye glass prescription,prescription glasses,cheap glasses,discount eye glasses,discount eyeglasses,discount eyewear,discount glasses,eyeglass frame,eye glass frame,eyeglasses online,eye glasses online,rimless eyeglasses,rimless eye glasses,progressive lens,progressive lenses,prescription sunglasses,prescription sun glasses, prescription sunglass,prescription sun glass,polarized lens,polarized sunglasses,polarized sun glasses,metal eyeglasses,metal eye glasses,plastic eyeglasses,plastic eye glasses,titanium eyeglasses,titanium eye glasses,bendable eyeglasses,bendable eye glasses,kids eyeglasses,kids eye glasses,child eyeglasses,child eye glasses’;
}
}
Second, create a file called Main.php, and place it under classes/XLite/Module/XC/CustomSkin, add the following code with this new file:
<?php
// vim: set ts=4 sw=4 sts=4 et:
/**
* X-Cart
*
* NOTICE OF LICENSE
*
* This source file is subject to the software license agreement
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.x-cart.com/license-agreement.html
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to licensing@x-cart.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not modify this file if you wish to upgrade X-Cart to newer versions
* in the future. If you wish to customize X-Cart for your needs please
* refer to http://www.x-cart.com/ for more information.
*
* @category  X-Cart 5
* @author    Qualiteam software Ltd <info@x-cart.com>
* @copyright Copyright (c) 2011-2015 Qualiteam software Ltd <info@x-cart.com>. All rights reserved
* @license   http://www.x-cart.com/license-agreement.html X-Cart 5 License Agreement
* @link      http://www.x-cart.com/
*/
namespace XLite\Module\XC\CustomSkin;
/**
* Main module
*/
abstract class Main extends \XLite\Module\AModule
{
/**
* Author name
*
* @return string
*/
public static function getAuthorName()
{
return ‘www.cheapglasses.net’;
}
    /**
* Module name
*
* @return string
*/
public static function getModuleName()
{
return ‘Custom Skin’;
}
    /**
* Module description
*
* @return string
*/
public static function getDescription()
{
return ‘Modify Contat Us meta tags’;
}
    /**
* Get module major version
*
* @return string
*/
public static function getMajorVersion()
{
return ‘5.2’;
}
    /**
* Module version
*
* @return string
*/
public static function getMinorVersion()
{
return ‘9’;
}
    /**
* Display settings form
*
* @return boolean
*/
public static function showSettingsForm()
{
return true;
}
}
Third, upload these two files;
Forth, login your admin panel, active this new module, which name is ‘Custom Skin’;
Fifth,  go to ‘System Settings–> Cache management’, and Click ‘Re-deploy the store’.
Done
Many thanks qualiteam gives me the idea how to modify!!!
Posted in X-Cart. Comments Off on How to modify Contact Us meta tags of X-cart 5? »

X-cart v4: remove home.php

how to remove home.php of v4.6.4 completely?
If you need to change the link of your web-site’s logo, from /home.php to /, just modify this file:

common_files/customer/head.tpl

– find this code:
<code>
<div class=”logo”><a href=”{$catalogs.customer}/home.php”><img src=”{$ImagesDir}/xlogo.gif” alt=”” /></a></div>
</code>

and change it to:

<code>
<div class=”logo”><a href=”{$catalogs.customer}/”><img src=”{$ImagesDir}/xlogo.gif” alt=”” /></a></div>
</code>

For custom skins, you may also need to modify another template files in a similar way, for example:

2-columns/customer/head.tpl
artistictunes_business/customer/head.tpl
vivid_dreams_lotus/customer/head.tpl

For custom skins, you may also need to modify another template files in a similar way, for example:

2-columns/customer/head.tpl
artistictunes_business/customer/head.tpl
vivid_dreams_lotus/customer/head.tpl

2. if you need to change the link from /home.php to / in bread crumbs, just modify this file:

postauth.php

– find this code:
<code>
if (!empty($lbl_site_path)) {
$location[] = array(
$lbl_site_path,
‘home.php’,
);
}
</code>

and change it to

<code>
if (!empty($lbl_site_path)) {
$location[] = array(
$lbl_site_path,
‘./’,
);
}
</code>

 

Posted in X-Cart. Comments Off on X-cart v4: remove home.php »

Extra Block at Left Bar of X-cart V4.7.4

Sometimes we may need to add a block just as Category Block at the left side bar, here let me share the skills on how to do, I will add a block, just under the big Category block. In the new block I will add some useful links.
(more…)

Posted in X-Cart. Comments Off on Extra Block at Left Bar of X-cart V4.7.4 »

X-cart V4.7.1 SEO on Customized URLs

If your x-cart based shoping system has thousands of products or many categories, and you need to add a customized word at the end of a detailed product or category url, for example:
Your category name is: Cheap Glasses, default x-cart seo function will generate: Cheap-Glasses;
your product name is: USA, defautl x-cart seo function will generate: USA. (more…)

Posted in Php Skills, X-Cart. Comments Off on X-cart V4.7.1 SEO on Customized URLs »

How to Let X-Cart Display latest WordPress Posts?

This mod assumes that you use the WordPress blogging software and uses the same database as your xcart software.
If your wordpress and x-cart use separate database then use this code for blog_headlines.php (more…)

Posted in MySQL, Php Code, WordPress, X-Cart. Comments Off on How to Let X-Cart Display latest WordPress Posts? »

Static Pages Link Display

How to stop part of static pages showing at homepage, help section, or both?

1. Not show at homepage only
Open file bottom.tpl, which is under fold of skin/2-columns/customer/, and change the following code:

{foreach from=$pages_menu item=p}
{if $p.show_in_menu eq 'Y'}

  • {$p.title|amp}
  • {/if}
    {/foreach}

    to:

    {foreach from=$pages_menu item=p}
    {if $pages_menu[pg].orderby gt "900"}

  • {$p.title|amp}
  • {/if}
    {/foreach}

    Posted in Php Code, X-Cart. Comments Off on Static Pages Link Display »

    Duplicate content on categories pages with multiple pages of x-cart

    I am working on my x-cart 4.4.5 site aajj.net. One thing I am running into is that I get duplicate content warnings on my categiries pages. For example… I have 200 products in a category with 20 products per page. This breaks the category up into 10 pages. The descriptive paragraph I have for the category is repeated on all 10 pages making a big chunk of duplicate content. (more…)

    Posted in X-Cart. Comments Off on Duplicate content on categories pages with multiple pages of x-cart »

    X-cart v4.4.0 shows Customer Feedback at header

    How to show Customer Feedback at header of detailed product page?
    1. Go to skin/common_files/modules/Customer_Reviews/, creat a filed called vote_reviews_header.tpl, and open it.
    2. Add the following code in vote_reviews_header.tpl: (more…)

    Posted in X-Cart. Comments Off on X-cart v4.4.0 shows Customer Feedback at header »
    12
    King Php Science Welcome, you are from: 23.20.157.174