View Full Version : How to create Categorised stores
Hi with the new version of 'client software' how do you create individual store e.g store showing just Electronics or store showing Ladies fashion etc.
hope someone can point me in the right direction..
Thanks in advance..
Murad
Hello muraduk,
In order to do this go to your constants.inc.php file and then amend the following line:
// limit contents to this category
define('VERTICAL_CATEGORY_ID', CATEGORY_ID);
Regards
Hi I have changed this to 61 which is for PC and software...
But still showing all ceategories...
any asistance..
Murad
Hello,
You have edited the code to 61 and it still shows all of the other categories?
This is a V2 integration?
Seems a little strange as it should not be doing that.
Post your code and we can all have a look (from constants).
Cheers
IntroSites
01-10-08, 17:21
did you remove the # before define?
Hi hee is the coding from the Constant page
==============================================
// the name of the template directory inside templates
define('TEMPLATE_DIR', 'default');
// include adult content
define('ADULT_CONTENT', true);
// limit contents to this category
#define('VERTICAL_CATEGORY_ID', 61);
// rename categories or leave name blank to remove them
define('CATEGORY_MAPPINGS', serialize( array(61 => "Pc's & Software",
97 => "Fashion",
61 => "Pc's & Software",
347 => "Phones & Mobiles",
493 => "Motoring") ) );
// Remove the following terms from the query list
// Simply add strings to array in the format: array("term1", "term2", "termN");
define('QUERY_LIST_POPS', serialize( array( ) ) );
/**
*
* SOAP API
*
*/
define('API_USERID', '83508');
define('API_USERPASS', '364d3574dec2ad983978d656ec2501b248c811a12458a283' );
define('API_USERTYPE', 'affiliate');
define('API_WSDL', 'http://api.productserve.com/v2/ProductServeService?wsdl');
define('API_NAMESPACE', 'http://api.productserve.com/');
define('API_SOAP_ERRORS_REDIRECT_URL', 'http://www.shopwindow.com/index.php?a='.API_USERID);
define('API_SOAP_ERRORS_PRINT', true);
define('API_SOAP_DEBUG_PRINT', false);
// ShopWindow is able to aggregate search terms from all* shops. Set GLOBAL_QUERY_LIST to true to
// enable your tag clouds to be built from this global list. false will ensure any tags displayed
// were made from only your shop.
define('GLOBAL_QUERY_LIST', true);
/**
*
* Boolean values to turn on/off refine by's.
*
*/
define('REFINE_BRAND', true);
define('REFINE_PRICE', true);
define('REFINE_CATEGORY', true);
define('REFINE_MERCHANT', true);
/**
*
* AUTO SYSTEM SETTINGS
* Do NOT edit below this line
*
*/
# Soap extra params
if ( API_SOAP_DEBUG_PRINT === true ) {
define('API_SOAP_TRACE', true);
}
else {
define('API_SOAP_TRACE', false);
}
if (!defined('HOME_PATH')) {
define('HOME_PATH', dirname(__FILE__).'/');
}
# Auto HOME_URL
if (!defined('HOME_URL')) {
$aDirs = explode('/', $_SERVER['SCRIPT_NAME']);
$sHomeUrl = 'http://'.$_SERVER['HTTP_HOST'];
for ( $i=0; $i < count($aDirs)-1; $i++ ) {
$sHomeUrl .= $aDirs[$i].'/';
}
define('HOME_URL', $sHomeUrl);
}
# Smarty cache unique id
$aRequestParams = array_merge($_GET, $_POST);
unset($aRequestParams['search_x']);
unset($aRequestParams['search_y']);
define( 'SMARTY_CACHE_ID', md5( serialize($aRequestParams) ) );
# Template page names
define('P_GOTO', HOME_URL.'goto.php');
define('P_INDEX', HOME_URL.'index.php');
define('P_PRODUCT', HOME_URL.'product.php');
define('P_PRODUCTLIST', HOME_URL.'productlist.php');
define('P_CATEGORY', HOME_URL.'category.php');
# RBs
define('RB_PRICE', 1);
define('RB_BRAND', 2);
define('RB_MERCHANT', 3);
define('RB_CATEGORY', 4);
?>
==============================================
Thanks in Advance
Hello,
// limit contents to this category
#define('VERTICAL_CATEGORY_ID', 61);
You need to remove the # which effectively comments out the line.
Regards
The above was really useful - thanks guys.
Now we've chosen a single Category/Parent, how do we permanently display a vertical list showng all the sub-categories/children & sub-sub-categories/grandchildren?
Also is there any way of choosing more than one category for example 61 for PCs & Software plus 347 for Phones & Mobiles?
Thanks in advance.
:)
I've tried all sorts of things but just can't get more than one category to show.
I suppose I could "blank out" all the unwanted categories in the constants.inc.php file as a get around but that seems like a helluva lot of work.
Can anyone help here?
woomik
Hi woomik,
The Client Software will only allow one category parameter to be input whether it be a parent, child or grandchild.
Regards
George
Many thanks for the definitive response. I can stop trying now!
Looks like I'll be going down the blank item route which, after looking at the category list again, doesn't seem too bad after all. Get rid of the parent categories first then whittle it down further.
Still would like to know how to permanently show all cats/sub-cats/sub-sub-cats if anyone knows?
woomik
IntroSites
07-10-08, 15:15
In category_tree.php
find:
// load env vars into params obj
add before:
// Expand all categories in tree //
$oCategoryTreeParams->bExpandAllBranches = true;
Job Done!
Excellent!
Many thanks for that - worked a treat!
Next problem - how to exclude a specific merchant that's not relevant to the particular site - ie if searching for "mobile" - excluding the merchant selling cot mobiles when you only want merchants offering mobile phones?
woomik
IntroSites
07-10-08, 19:23
If you have limited your site to the mobiles category the results shouldnt include cot mobiles.
If you havent limited to a category then why remove cot mobiles from the search results, they may be looking for them
OK - I accept that but...... example No. 2:
On a lingerie site, I would like to include the category "Fancy Dress" and return items from Lingerie Express, Lingerie-Confidential and other relevant merchants - but NOT from The Early Learning Centre!!!!!!
Somehow it just doesn't look right!!!!
Any ideas?
woomik
Confuscius
08-10-08, 00:59
Why don't you remove / block the ELC from your list of joined merchants in your affiliate management area?
Can I block individual merchants from appearing in one website without completely removing them so that they would appear in other websites?
Hi Guys
Is it possible to limit to multiple child categories - from different parents?
e.g.
Baby Products 599 421
Baby Clothes 142 98
Children's Footwear 614 139
Also, in some case, im dont think the clients categorisation is great and would like to be able to break it up into more specific sub cats of my own choosing..
E.g.
DVDs 235 634
by genre...
I used to do this manually with the datafeed - but always failed to keep them current - Is this possible?
etc....
Thanks