Jump to content

roban

Member
  • Posts

    3,238
  • Joined

  • Last visited

Posts posted by roban

  1. EDIT includes/boxes/shoppingCart.inc.php with a text editor.

    FIND these lines of code:

    $basket = $cart->add($_POST['add'],$quantity,"");

    }

    INSERT this block of code AFTER the above lines (being careful to add the code after the curly bracket shown above):

    // start mod: redirect to basket

    if($ccUserData[0]['customer_id']>0)

    {

    header("Location: cart.php?act=step2");

    }

    else

    {

    header("Location: cart.php?act=cart");

    }

    exit;

    // end mod: redirect to basket

    SAVE file and upload to your server.

    Instructions if Text Input Fields for Products has been installed:

    EDIT includes/boxes/shoppingCart.inc.php with a text editor.

    FIND these lines of code:

    } else {

    $basket = $cart->add($_POST['add'],$quantity,"","");

    }

    // end: Text Input Mod

    }

    INSERT this block of code AFTER the above lines (being careful to add the code after the curly bracket shown above):

    // start mod: redirect to basket

    if($ccUserData[0]['customer_id']>0)

    {

    header("Location: cart.php?act=step2");

    }

    else

    {

    header("Location: cart.php?act=cart");

    }

    exit;

    // end mod: redirect to basket

    SAVE file and upload to your server.

  2. Your backgrounds are jpeg images so to change them you can use a graphics editor like Photoshop. They are located in your styleImages/backgrounds directory and are : contentBg and pageBg.

    Your links can be changed using style.css:

    .txtSiteDocs, a.txtSiteDocs {

    font-family: Arial, Helvetica, sans-serif;

    font-size: 70%;

    color: #0B4492;

    text-decoration:none;

    }

    a.txtSiteDocs:hover {

    font-family: Arial, Helvetica, sans-serif;

    font-size: 70%;

    color: #000000;

    text-decoration:none;

    To add a bold attribute, add font-weight: bold;

  3. If you have managed to forget your admin password and for some reason you cannot get the "Reset Password" function to work please follow this process:

    1. Access your database using a tool such as phpMyAdmin and browser the table CubeCart_admin_users. It should contain the list of administrator accounts to access the admin interface of your store.

    2. We need to now create a file to show us what the md5 hash of the password you require should be.

    Using notepad make a file with content:

    <?php

    echo md5("password");

    ?>

    3. Replace password with your desired password.

    4. Save this file as md5.php and upload it to your webserver.

    5. Execute this in your browser and copy the output.

    6. Edit the admin user with phpMyAdmin and paste this output into their password field.

    If done successfully then you should now be able to access the admin interface of your store.

  4. You'll find the control in layout.css:

    #topHeader {

    text-align: right;

    height: 116px;

    margin-bottom: 10px;

    padding-right: 9px;

    padding-top: 0px;

    background-image: url(../styleImages/backgrounds/topHeader.jpg);

    border-bottom: 1px solid #000000;

    You might add:

    background-repeat: no-repeat;

  5. If you have managed to forget your admin password and for some reason you cannot get the "Reset Password" function to work please follow this process:

    1. Access your database using a tool such as phpMyAdmin and browser the table CubeCart_admin_users. It should contain the list of administrator accounts to access the admin interface of your store.

    2. We need to now create a file to show us what the md5 hash of the password you require should be.

    Using notepad make a file with content:

    <?php

    echo md5("password");

    ?>

    3. Replace password with your desired password.

    4. Save this file as md5.php and upload it to your webserver.

    5. Execute this in your browser and copy the output.

    6. Edit the admin user with phpMyAdmin and paste this output into their password field.

    If done successfully then you should now be able to access the admin interface of your store.

  6. I make my living doing SEO and I can say that meta tags don't hold the weight they once used to. Content using your key words and phrases are much more SEO-worthy these days. Plurals are not mandatory but well-researched key words should be your goal. Make sure that your images have 'alt' tags and that those tags reflect your site and key words/descriptions whether they contain the artist or not. This is all 'organic SEO' and will work for your site as it has worked for others.

    Use the Overture Keyword Selector Tool to find out which words and phrases are the most searched for.

  7. The database holds all the information for your store and when someone makes a purchase or looks at a product, all the information on their computer is 'pulled' or 'called' from the database. Most hosting companies support databases and they can be easily set up from your hosting control panel. The database is a set of tables that get populated during the set up process and every time you add a product or an image or a customer registers, the information is stored in the database for use at a later time. The database consists of a database name, a password and a user name. This information you will need for the set up of Cube Cart so call your host and ask them how you set it up.

    After the database is set up, you will go to your browser and type your url followed by /install. It looks like this if your files are in a directory called cubecart. This directory can be called almost anything by the way or the files can just be in your root directory:

    http://www.yoursite/cubecart/install

    If the files are in your root directory, usually a directory on your server called public_html or httpdocs, you would type:

    http://www.yoursite/install

    The installation should begin and you will fill in the blanks with information asked for. As stated above you will need the server name: usually localhost (but ask your host what this is) database name, user name and password.

    If you need more help please PM me and I'll help you further.

  8. Logical as in alphabetical?

    Open /includes/contents/viewCat.inc.php

    Find somewhere @ line 158

    $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 ".$glob['dbprefix']."CubeCart_cats_idx.cat_id = ".$db->mySQLSafe($_GET['catId']);

    Replace it with

    $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 ".$glob['dbprefix']."CubeCart_cats_idx.cat_id = ".$db->mySQLSafe($_GET['catId'])." ORDER BY name ASC";

×
×
  • Create New...