Jump to content

roban

Member
  • Posts

    3,238
  • Joined

  • Last visited

Posts posted by roban

  1. In the includes/content/index.inc.php find this line:

    for($i=0;$i<count($latestProducts);$i++){

    Replace with this code

    $across=4;

    $index->assign("TW",100/$across);

    for($i=0;$i<count($latestProducts);$i++){

    if (!(($i+1) % $across)) {

    $index->assign("TXT_TR","</tr><tr>");

    } else {

    $index->assign("TXT_TR","");

    }

    in skins/{insert skin name}/styleTemplates/content/index.tpl replace all code

    between

    <!-- BEGIN: repeat_prods -->

    and

    CODE

    <!-- END: repeat_prods -->

    including those two lines above with this code

    CODE

    <table width="100%" border="0"><tr>

    <!-- BEGIN: repeat_prods -->

    <td width="{TW}%">

    <div style="float: center; text-align: center;">

    <a href="index.php?act=viewProd&productId={VAL_PRODUCT_ID}"><img src="{VAL_IMG_SRC}" alt="{VAL_PRODUCT_NAME}" border="0" /></a>

    <br />

    <a href="index.php?act=viewProd&productId={VAL_PRODUCT_ID}" class="txtDefault">{VAL_PRODUCT_NAME}</a>

    <br />

    {TXT_PRICE} <span class="txtSale">{TXT_SALE_PRICE}</span>

    </div>

    </td>

    {TXT_TR}

    <!-- END: repeat_prods -->

    </tr></table>

    The $across variable is used to specify number products across.

  2. From Bill's instructions. Did you do this?

    This step must be taken first for both standard and manual mod installation.

    We need to add a field to the CubeCart_category table. That can be done simply by entering

    the following line into the SQL box in PHPMyAdmin:

    -------------------------------------------------------------------------------------------

    ALTER TABLE CubeCart_category ADD disp_order INT(16) NOT NULL DEFAULT 9999

  3. I'm not sure this is what you want, but this will make your store a catalogue so that when someone clicks on the new Catalogue link it will display every product in your store.

    ////////////////////////////////////////////////////////////////////////////////////////////////////////////

    // Step 1 : Open includes/content/viewCat.inc.php

    ///////////////////////////////////////////////////////////////////////////////////////////////////////////

    Find :

    } elseif($_GET['catId']=="saleItems" && $config['saleMode']>0) {

    $productListQuery = "SELECT ".$glob['dbprefix']."CubeCart_cats_idx.cat_id, ".$glob['dbprefix']."CubeCart_cats_idx.productId, productCode, quantity, description, image, price, name, popularity, sale_price, stock_level, useStockLevel FROM ".$glob['dbprefix']."CubeCart_cats_idx INNER JOIN ".$glob['dbprefix']."CubeCart_inventory ON ".$glob['dbprefix']."CubeCart_cats_idx.productId = ".$glob['dbprefix']."CubeCart_inventory.productId WHERE sale_price > 0 GROUP BY ".$glob['dbprefix']."CubeCart_inventory.productId";

    After Add:

    } elseif($_GET['catId']=="catalogue") {

    $productListQuery = "SELECT * FROM ".$glob['dbprefix']."CubeCart_inventory";

    $view_cat->assign("LANG_IMAGE",$lang['front']['viewCat']['']);

    Find :

    if(file_exists($GLOBALS['rootDir']."/images/uploads/thumbs/thumb_".$productResults[$i]['image'])){

    $view_cat->assign("SRC_PROD_THUMB",$GLOBALS['rootRel']."images/uploads/thumbs/thumb_".$productResults[$i]['image']);

    } else {

    $view_cat->assign("SRC_PROD_THUMB",$GLOBALS['rootRel']."skins/".$config['skinDir']."/styleImages/thumb_nophoto.gif");

    }

    Replace with :

    if(!$_GET['catId']=="catalogue"){

    if(file_exists($GLOBALS['rootDir']."/images/uploads/thumbs/thumb_".$productResults[$i]['image'])){

    $view_cat->assign("SRC_PROD_THUMB",$GLOBALS['rootRel']."images/uploads/thumbs/thumb_".$productResults[$i]['image']);

    } else {

    $view_cat->assign("SRC_PROD_THUMB",$GLOBALS['rootRel']."skins/".$config['skinDir']."/styleImages/thumb_nophoto.gif");

    }

    }

    Find :

    $view_cat->assign("LANG_IMAGE",$lang['front']['viewCat']['image']);

    Replace with :

    if(!$_GET['catId']=="catalogue"){

    $view_cat->assign("LANG_IMAGE",$lang['front']['viewCat']['image']);

    }

    ////////////////////////////////////////////////////////////////////////////////////////////////////////////

    // Step 2 : Open skins/YOURSKIN/styleTemplates/boxes/categories.tpl

    ///////////////////////////////////////////////////////////////////////////////////////////////////////////

    Find : <li class="bullet"><a href="index.php" class="txtDefault">{LANG_HOME}</a></li>

    After Add : <li class="bullet"><a href="index.php?act=viewCat&catId=catalogue" class="txtDefault">Catalogue</a></li>

  4. You can simply move your files to the root directory and edit your includes global.inc file to update the new path to your store.

    As for backing up from phpMyAdmin, it's quite simple. Open your database and click on the 'Export' button at the top of the main window. make sure you select all of your tables, then scroll down a bit and choose 'save as file'. Leave the default as SQL, then click 'Go'. It will download your database.

    If you ever need to restore your database, you can open your database, select all the tables and 'Drop' them which will empty your database. You can then import your backed up database using the sql command from phpMyAdmin.

  5. Do a Google search for your keywords and contact the web masters of the sites asking for a link exchange. You should have a links page on your site with links to their sites before you ask and let them know that you've linked to them first. Of course you'll want to make sure that they have a link page. Then you'll have to audit your requests and delete the sites that do not link back. There are programs that can help with this task like Aurelis but they are expensive and you can do it yourself.

    There is no visitor to sales ratio that I know of but you can use 3% as a general figure. ROI (return on investment) is a figure that most SEO's use so if you are breaking even on your investment you might say that you are doing well and go up from there.

×
×
  • Create New...