In this section you'll find: examples of commerce web-sites development, content management and automation, SEO for different types of sites and other.
|
|
e-commerce sites
|
|
Written by Roman
|
|
The orangeshug.com is a company in Toronto who sells T-shirts with printing on-line.
I made functional improvements to the web-site, including update to the latest version of the CMS and e-commerce engine, improving front-page design through the new content publication module and revised payment modules.
|
|
e-commerce sites
|
|
Written by Roman
|
|
The Alesya online store designed for the company sells women apparel from Belarussia by retail as well as wholesale.
|
|
e-commerce sites
|
|
Written by Roman
|
|
This is another site for the company sells different finishing materials. It uses clean design template related to natural eco-materials.
I cloned e-commerce engine and Joomla CMS developed for another site of that type, also I restored backup of MySQL database to save time for content filling.
|
|
e-commerce sites
|
|
Written by Roman
|
|
The company sells a verity of finishing materials, so they decided to launch a set of on-line stores dedicated to different type of finishing materials. One are cork materials. I set up e-commerce engine and CMS, and made changes to the site functions and design templates according to client's requirements.
|
|
e-commerce sites
|
|
Written by Roman
|
|
This is on-line store to sell stationeries online. The back-end of the system allows to manage a broad assortment of items in the store. Usually there are thousands of items in a typical stationery store to order.
I chosen widespread CMS Joomla and customized component Virtuemart to build this site.
This on-line store is integrated with accounting system, so the information about prices and goods can be uploaded into the web-store directly from the accounting system back-end.
This is a control panel of the web-store (back-end).
|
|
Интернет-магазин: как сделать на основе open-source
|
|
Written by Roman
|
|
This article is regarding how the virtuemart
displayscategories, if acategory is quite long.
I used version 1.0.6 of virtuemart. You need to change file
ps_product_category.php. It's placed in:
administrator\components\com_virtuemart\classes
Find the function get_category_tree:
function get_category_tree( $category_id=0,
$links_css_class="mainlevel",
$list_css_class="mm123",
$highlighted_style="font-style:italic;" ) {
global $sess;
$margin_left;
$categories = ps_product_category::getCategoryTreeArray();
...
$catname = shopMakeHtmlSafe(
$category_tmp[$row_list[$n]]["category_name"] );
$html .= '
<a title="'.$catname.'" style="display:block;'.$style.'"
class="'. $css_class .'" href="'.
$sess->url(URL."index.php?page=shop.browse&category_id="
.$category_tmp[$row_list[$n]]["category_child_id"])
.'" '.$append.'>'.str_repeat(" ",$depth_list[$n])
. $catname. ps_product_category::products_in_category(
$category_tmp[$row_list[$n]]["category_child_id"] )
.'</a>';
}
}
|
- these word spaces are used to pick out categories.
So, if the name of a category is long it's displayed as a line
folding with spaces in the begging of the category. Like this:

Let's make categories tree more readable:
$catname = shopMakeHtmlSafe(
$category_tmp[$row_list[$n]]["category_name"] );
$margin_left=$depth_list[$n]*10;
/*this will be the indents for a category. We use the
variable $margin_left to put value of the indent of sub-category into
the html code. Each sub-category will be displaced by the 10px amount
relative to it’s parent category.*/
$html .= '
<a title="'.$catname.'" style="display:block;margin-left:'.$margin_left.
'px;'.$style.'" class="'. $css_class .'"
href="'.$sess->url(URL."index.php?page=shop.browse&category_id=".
$category_tmp[$row_list[$n]]["category_child_id"]) .'" '.$append.'>'
//.str_repeat(" ",$depth_list[$n]).$catname
.$catname.ps_product_category::products_in_category(
$category_tmp[$row_list[$n]]["category_child_id"] )
.'</a>';
|
Here will be the indents for a category. We use variable
$margin_left to put value of the indent of sub-category into the
html out-put.
Each sub-category will be displaced by the 10px amount
relative
to it's parent category. As you can see, we commented out string
with spaces: " ",
it's no
more needed.
This is how category looks after changing:
download
file ps_product.php in zip. (Don't forget to make back-up)
|
|