1 / 3
Caption Text
2 / 3
Caption Two
3 / 3
Caption Three margin testing

Tuesday, November 24, 2009

放个完善的 Zen Cart 模版+运行环境

放个完善的Lightinthebox 模版+运行环境
radnows » 2009年 9月 1日 03:54

1.没有错误没有木马。
2.生成图像没有锯齿。
3.完整windows 运行环境 (apache + php +mysql)。解压到d盘根目录后,运行D:\apache\apache.exe和D:\apache\mysql41\mysqld41- start nolog后即可在浏览器浏览 (如已有apache和mysql运行,先停止其运行)。
4.不得买卖该模板,只限研究交流。 :mrgreen:

忘了说:
后台admin
用户admin
密码admin

-------------------------------------------------------
2009-09-04补充:
大图只有水印那是new_product_preview.php里有函数参数没好少了0 哈哈。补上即可。

D:\apache\htdocs\lightbox\admin\includes\modules\new_product_preview.php里129行
代码: 全选
ImageCopyResampled($im_s,$im, 0, 0, 0,$width,$height,$width_orig,$height_orig );
改为
代码: 全选
ImageCopyResampled($im_s,$im, $wpos, $hpos, 0, 0,$width,$height,$width_orig,$height_orig );
-------------------------------------------------------------------------------------------------------------

图片不居中是ImageCopyResampled($im_s,$im, 0, 0, 0, 0,$width,$height,$width_orig,$height_orig );作怪

改为
代码: 全选
ImageCopyResampled($im_s,$im, $wpos, $hpos, 0, 0,$width,$height,$width_orig,$height_orig );
即可
------------------------------------------------------------------------------------------------------------

批量上传建议下载安装使用txt版本覆盖替代。

运输地址与帐单地址必须一致问题更好解决:
覆盖原版tpl_modules_checkout_address_book.php和tpl_modules_checkout_new_address.php即可

前台搜索不到商品问题:

用原版替换D:\apache\htdocs\lightbox\includes\modules\pages\advanced_search和advanced_search_result目录内容
用原版product_listing.php改名为search_product_listing.php复制到D:\apache\htdocs\lightbox\includes\modules\lightinthebox
修改tpl_advanced_search_result_default.php内容为以下代码:
代码: 全选
<div class="centerColumn" id="advSearchResultsDefault">
<?php
require($template->get_template_dir('tpl_modules_search_product_listing.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_search_product_listing.php');
?>
</div>
新建tpl_modules_search_product_listing.php文件在D:\apache\htdocs\lightbox\includes\templates\lightinthebox\templates目录

内容为:
代码: 全选
<?php
include(DIR_WS_MODULES . zen_get_module_directory('search_product_listing.php'));
?>
<div id="productListing">
<?php
if ($show_top_submit_button == true) {
?>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_ADD_PRODUCTS_TO_CART, BUTTON_ADD_PRODUCTS_TO_CART_ALT, 'id="submit1" name="submit1"'); ?></div>
<br class="clearBoth" />
<?php
}
?>

<?php
require($template->get_template_dir('tpl_list_box_content.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_list_box_content.php');
?>

<?php if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) {
?>
<div id="productsListingBottomNumber" class="navSplitPagesResult back"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></div>
<div id="productsListingListingBottomLinks" class="navSplitPagesLinks forward"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></div>
<br class="clearBoth" />
<?php
}
?>

<?php
if ($show_bottom_submit_button == true) {
?>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_ADD_PRODUCTS_TO_CART, BUTTON_ADD_PRODUCTS_TO_CART_ALT, 'id="submit2" name="submit1"'); ?></div>
<br class="clearBoth" />
<?php
}
?>
</div>

<?php
if ($show_top_submit_button == true or $show_bottom_submit_button == true) {
?>
</form>
<?php } ?>
至于购物流程问题嘛,有人喜欢那样方式有人不喜欢。不喜欢替换为原版即可。

下载地址:
http://drop.io/tawalll/asset/apache-php ... e_download

-------------
radnows » 2009年 9月 28日 14:40
gueston 写道: 首页“Recent Orders”栏目里内容有重叠,看不清,如下图,是否能帮忙解决下,谢谢。
请自行编辑tpl_order_history.php文件去掉
代码: 全选
ship to '.$customer_orders[$i]['customers_state'].','.$customer_orders[$i]['customers_country'].
即可

------------
radnows » 2009年 10月 13日 07:51
gueston 写道:
Jack 写道:本站搜索下如何重置管理员密码
这个模版好像没有品牌(制造商)的选择了了,像我这样的目录就有必要用到品牌的筛选了http://cbwp.us 。
我有尝试在前台布局里吧manufactory打开,但没有显示,所以在此求助,
希望达到的效果:
页面的搜索栏都有品牌选择,在搜索栏种类(Categories)后面为品牌做同样的下拉选项,最好再把页面宽度增加点。
或者沿用原汁原味的高级搜索,原版的高级搜索里有这个选项。
修 改tpl_index_categories.php,在require(DIR_WS_MODULES . zen_get_module_directory('sideboxes/categories.php'));下增加 require(DIR_WS_MODULES . zen_get_module_directory('sideboxes/manufacturers.php'));

修改sideboxes/manufacturers.php,把$column_box_default改为'tpl_box_default_left.php'

---------
radnows » 2009年 10月 13日 07:53
kingking 写道:现在的producttag只是把产品的名称列出来了,和lightinthebox的不一样,light是列出来些tags
代码: 全选
Product Tags:
'.strtoupper($letter).' ';
}
echo '0-9 ';
echo 'WishList ';
?>

18 Great Shopping Carts to Power Your Online Store

18 Great Shopping Carts to Power Your Online Store

by Sean P Aune

The ecommerce boom shows no signs of slowing down any time soon, and each year the amount spent during the holiday season continues to increase. The question of getting into the market is a fairly easy one if you have products to sell, but how do you even begin to sort through the hundreds of shopping cart options that are in the space?

We've helped you out a little bit by gathering up 18 choices that represent the best of the free and fee-based options out there. Read about each one very carefully, though, as they all have their pros and cons.

Free Shopping Carts

AgoraCart: AgoraCart offers a free version of its software with all of the usual bells and whistles, but if you upgrade to the gold version you will get access to more modules and support.

Batavi: Batavi was born in 2007 by osCommerce core-team members and ICEshop over frustration that osCommerce 3.0 seemed to be going nowhere. This cart is based on that unfinished version of 3.0, but is completely rewritten. It offers customer- and group-specific pricing, payment and shipping modules, related products for crossselling and upselling, product price rules for pricing large product volumes and many other features that make it very friendly for business-to-business selling.

Magento: Magento was originally envisioned as a branch of osCommerce, but as development began they decided to code something original from the ground up and that is how this shopping cart was born. Built on the Zend framework, the system is PHP-based and is available as an open source option with extra modules that can be installed, or as an Enterprise edition, for a fee, for larger companies needing a shopping solution. For additional information, check out the SitePoint podcast with Roy Rubin of Magento.

OFBiz: Apache OFBiz is a solution for a multitude of enterprise business needs, but can be rolled out as an ecommerce solution easily for businesses of any size.

OpenCart: OpenCart is another in the long line of open source shopping carts in the marketplace, but this seems to offer a bit more options than most of them. It supports a full templating system, support for over 20 payment gateways, over 8 different payment gateways, unlimited categories and products and more.

osCommerce: Probably the best known of the free cart solutions, osCommerce has been around for several years and features a constantly growing developer community that continues to develop new plugins to make this shopping cart do everything but clean the windows. The front end of the cart is highly customizable, but it comes with a fluid-width template that is fairly decent on its own. Due to the number of installs it has become quite common and instantly recognizable. The biggest drawback at this point is the exceedingly long time version 3.0 has been in development. It is PHP-based and uses MySQL databases.

PrestaShop: PrestaShop runs on PHP and MySQL and makes extensive use in the admin panel. The system allows you to have orders placed for out of stock items, package tracking, merchandise return and a lot more. Many expansion modules are available for free, but there are some paid ones and templates available in the PrestaStore.

Satchmo: Originally designed in Python to try to overcome some of the shortcomings of PHP, Satchmo now is using the Django web application framework. It includes many features such as PDF invoice generation, automatic thumbnail generation, inventory tracking and a whole lot more.

Ubercart: Developed to work with Drupal, Ubercart fully integrates with your site and community on any server that can run PHP and MySQL. It seems best suited for people or companies with a limited number of items to sell.

VirtueMart: Starting life as a plugin named mambo-phpShop, VirtueMart changed its name when Mambo became Joomla, and it still requires Joomla to function as it is incapable of running on its own. It runs on PHP and MySQL, and is capable of supporting an unlimited number of products and categories, but is recommended for light to medium traffic sites.

Zen Cart: Zen Cart is a branch off from osCommerce that adds features such as a templating system and includes some popular osCommerce plugins in its core coding such as the gift certificate module. It is PHP-based and uses MySQL databases.

Fee-Based Shopping Carts

Avactis: Avactis offers all of the usual bells and whistles of a PHP/MySQL shopping cart such as real-time shipping calculation, multiple currencies, sales reports, marketing and so on. The program offers a tag based cart system that allows you to add the system to any web site of your choice, whether it's a static site or not. They offer a free trial with limited functionality that you can install and test.

CubeCart: CubeCart runs on PHP and MySQL and is template driven, offers tax by state/zone or country, inventory control, gift certificates and more. The company also offers free updates for life and more modules for additional functionality.

Magellan Commerce: Magellan is a bit limited in its scope, but it is still very serviceable depending on the needs of the retailer. It offers over 30 templates, real time shipping calculators, order and inventory tracking and a lot more.

ProductCart: ProductCart is written in ASP and relies heavily on AJAX to speed up the consumer experience with their shopping cart. The system can also integrate with your current site if you prefer to building one totally on top of the cart.

ShopSite: This shopping cart solution allows you to add buttons to an existing site, or you can build an entire site with their wizard. This would be a great solution for those who want complete control of their design without being encumbered by the limitations of a complete shopping cart site. ShopSite offers three levels of subscription to its shopping cart system, or you can pay one time fees for the top two tiers of service.

ViArt: A PHP-based shopping cart that is offered in multiple flavors so that you can choose the one that best suits your needs. There is a free version, but it is so limited that it would only be suitable for the smallest of online stores. ViArt also provides you with a full CMS and Help Desk that can be integrated into the online store.

X-Cart: X-Cart offers different versions of its software to match the different needs of merchants. From the most basic version on up it features a CSS-based layout for customization, MySQL databases, search engine friendly and more.

WinFF – GUI for the command line video converter FFMPEG

WinFF – GUI for the command line video converter FFMPEG | Ubuntu Geek
(Failed to install on Ubuntu 8.10, HL)

Install Winff in Ubuntu

sudo apt-get install winff

Or click on the following link

apt://winff

Using WinFF

You can open winff from Applications—>Sound & Video—>WinFF

1

Once it opens you should see similar to the following screen

2

1. The File List
2. Add/Remove Videos
3. Output Details
4. Play Video
5. Start Converting
6. Additional Options
7. Menus

Monday, November 23, 2009

How to view CHM (Microsoft Compiled HTML Help) files in Ubuntu

How to view CHM (Microsoft Compiled HTML Help) files in Ubuntu | Ubuntu Geek
(I used xchm, HL)
Microsoft Compiled HTML Help is a proprietary format for online help files, developed by Microsoft and first released in 1997 as a successor to the Microsoft WinHelp format.

You can use either kchmviewer or gnochm or xchm.

kchmviewer from KDE

kchmviewer is a CHM (Winhelp) files viewer written in Qt/ KDE. It can be build as a stand-alone Qt-based application or a KDE application. The main point is compatibility with non-English CHM files, including most international character sets. It has the features set of standard viewer: search (including non-English CHMs), bookmarking, font size changing, index/content browsing, codepage support, and more.

Install kchmviewer Using the following command

sudo aptitude install kchmviewer

gnochm from Gnome

GnoCHM is a CHM file viewer for GNOME. It is implemented in Python, using the PyCHM bindings for chmlib.

Install gnochm Using the following command

sudo aptitude install gnochm

xchm

xCHM is a cross-platform GUI front-end to chmlib, with borrowed bits from Pabs' chmdeco project.
Originally written for UNIX systems (Linux, *BSD, Solaris), xCHM has been since ported to Mac OS X and Windows.

xCHM can show the content tree if one is available, print pages, change font face and size, remember bookmarks, display a searchable index, and search for words in the current page and the whole book.

Install xchm Using the following command

sudo aptitude install xchm

Opera 10.10 with Unite and Turbo now available

Opera 10.10 with Unite and Turbo now available

Paul O'Brien (RSS feed) Nov 23rd 2009 at 12:00PM


Opera have released version 10 of their browser, now with Opera Unite and Opera Turbo included.

Opera Unite gives your web browser the ability to deliver content as well as consume it. The standard download includes a number of Unite applications, with more available for download from the application directory. The bundled applications include a file sharing server that allows you to make files available to the world (as well as allowing the world to upload content to your machine), a virtual fridge door for you to share notes with friends and family (pictured), a media player that allows you to play content from your Unite equipped machine remotely, an instant messaging server, a photo sharing application and a web server for serving your own web content.

The inclusion of Opera Turbo in the new browser marks the migration to the desktop of a technology that has long been a key feature of Opera's Mini product. Opera Turbo speeds up your browsing session by compressing content at Opera proxy servers before delivering it to your machine - particularly useful for those on low bandwidth connections.

Opera 10.10 is available free from www.opera.com for Windows, Mac OS X and Linux.

Friday, November 20, 2009

Copy MySQL database from one server to another remote server

Copy MySQL database from one server to another remote server

by Vivek Gite · 22 comments

Usually you run mysqldump to create database copy:
$ mysqldump -u user -p db-name > db-name.out

Copy db-name.out file using sftp/ssh to remote MySQL server:
$ scp db-name.out user@remote.box.com:/backup

Restore database at remote server (login over ssh):
$ mysql -u user -p db-name < db-name.out

How do I copy a MySQL database from one computer/server to another?

Short answer is you can copy database from one computer/server to another using ssh or mysql client.

You can run all the above 3 commands in one pass using mysqldump and mysql commands (insecure method, use only if you are using VPN or trust your network):
$ mysqldump db-name | mysql -h remote.box.com db-name

Use ssh if you don't have direct access to remote mysql server (secure method):
$ mysqldump db-name | ssh user@remote.box.com mysql db-name

You can just copy table called foo to remote database (and remote mysql server remote.box.com) called bar using same syntax:
$ mysqldump db-name foo | ssh user@remote.box.com mysql bar

This will not just save your time but you can impress your friend too ;). Almost all commands can be run using pipes under UNIX/Linux oses.

Thursday, November 19, 2009

Handle rar Files on Ubuntu

Handle rar Files on Ubuntu : MAYUonline.com

(I did it this way on my Ubuntu 8.10, HL)

Have u ever tried to open RAR files on Ubuntu??? I did and found that Ubuntu Archive manager can't handle RAR files. Reason is by default it is not activated in Ubuntu as it has proprietary issue.

To activate RAR support in Ubuntu run the following command on terminal (Applications → Accessories → Terminal)

sudo apt-get install unrar-free

Now try and open rar files in ubuntu, it'll work like magic

Featured Post

Windows和Ubuntu双系统完全独立的安装方法

http://www.ubuntuhome.com/windows-and-ubuntu-install.html  | Ubuntu Home Posted by Snow on 2012/06/25 安装Windows和Ubuntu双系统时,很多人喜欢先安装windows,然...