Jump to content

roban

Member
  • Posts

    3,238
  • Joined

  • Last visited

Posts posted by roban

  1. First of all your store must be in the root directory of your server. Now it resides in a folder called 'shop' so you must move it. To get rid of the index.php part, Markscarts has created a tutorial on this called 'Change Links' and you should be able to find it at cubecart.org. If not, PM me.

  2. ===============================================================================

    FILE: skins/{yourskin}/styleTemplates/content/viewProd.tpl

    ===============================================================================

    +++--------------------------------------------------------------------------

    FIND this code

    +++--------------------------------------------------------------------------

    <!-- BEGIN: prod_true -->

    <strong>{LANG_DIR_LOC}</strong> {CURRENT_DIR}

    +++--------------------------------------------------------------------------

    INSERT this block AFTER it

    +++--------------------------------------------------------------------------

    <p class="notify">{CART_FEEDBACK}</p>

    ===============================================================================

    @@@ END @@@ Save and close skins/{yourskin}/styleTemplates/content/viewProd.tpl

    ===============================================================================

    ===============================================================================

    FILE: includes/content/viewProd.inc.php

    ===============================================================================

    +++--------------------------------------------------------------------------

    FIND this line of code around line 68

    +++--------------------------------------------------------------------------

    $view_prod->assign("TXT_PRODTITLE",validHTML($prodArray[0]['name']));

    $view_prod->assign("TXT_DESCRIPTION",$prodArray[0]['description']);

    +++--------------------------------------------------------------------------

    INSERT this block AFTER it

    +++--------------------------------------------------------------------------

    //Cart Feedback

    if (isset($_GET['added'])){

    $view_prod->assign("CART_FEEDBACK",$lang['front']['viewProd']['cart_notify']);

    } else {

    $view_prod->assign("CART_FEEDBACK", "");

    }

    //Cart Feedback

    ===============================================================================

    @@@ END @@@ Save and close includes/content/viewProd.inc.php

    ===============================================================================

    ===============================================================================

    FILE: includes/boxes/shoppingCart.inc.php

    ===============================================================================

    +++--------------------------------------------------------------------------

    FIND this line of code around line 77

    +++--------------------------------------------------------------------------

    // prevents refresh adding extras to the basket

    header("Location: index.php?act=viewProd&productId=".$_POST['add']);

    exit;

    +++--------------------------------------------------------------------------

    REPLACE WITH

    +++--------------------------------------------------------------------------

    // prevents refresh adding extras to the basket

    header("Location: index.php?act=viewProd&productId=".$_POST['add']."&added=true");

    exit;

    ===============================================================================

    @@@ END @@@ Save and close includes/boxes/shoppingCart.inc.php

    ===============================================================================

    ===============================================================================

    FILE: language/en/lang.inc.php

    ===============================================================================

    +++--------------------------------------------------------------------------

    FIND this code

    +++--------------------------------------------------------------------------

    'prod_opts' => "Product Options:",

    'prod_not_found' => "That product could not be found.",

    +++--------------------------------------------------------------------------

    INSERT this line AFTER it

    +++--------------------------------------------------------------------------

    'cart_notify' => "Item successfully added to your cart",

    ===============================================================================

    Save and close language/en/lang.inc.php

  3. This has been covered many times and a search would have brought you to the answer. Here it is again.

    To change your password:

    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.

    To change your email address you can either do it directly in your database or use the editconf.php. Copy the following text to notepad and save it as editconf.php. Upload to your server and execute it as in www.yoursite.com/editconf.php

    <?php

    /*

    +--------------------------------------------------------------------------

    | CubeCart v3.0.3

    | ========================================

    | by Alistair Brookbanks

    | CubeCart is a Trade Mark of Devellion Limited

    | &copy; 2005 Devellion Limited

    | Devellion Limited,

    | Westfield Lodge,

    | Westland Green,

    | Little Hadham,

    | Nr Ware, HERTS.

    | SG11 2AL

    | UNITED KINGDOM

    | http://www.devellion.com

    | UK Private Limited Company No. 5323904

    | ========================================

    | Web: http://www.cubecart.com

    | Date: Thursday, 25 August 2005

    | Email: info (at) cubecart (dot) com

    | License Type: CubeCart is NOT Open Source Software and Limitations Apply

    | Licence Info: http://www.cubecart.com/site/faq/license.php

    +--------------------------------------------------------------------------

    | editconf.php

    | ========================================

    | Config recovery tool

    +--------------------------------------------------------------------------

    */

    if(!isset($_GET['c'])){

    header("Location: editconf.php?c=config");

    exit;

    }

    include_once("includes/ini.inc.php");

    include_once("includes/global.inc.php");

    include_once("classes/db.inc.php");

    $db = new db();

    include_once("includes/functions.inc.php");

    include_once("admin/includes/functions.inc.php");

    if(isset($_POST['data'])){

    //$config = fetchDbConfig($_GET['c']);

    $msg = writeDbConf($_POST['data'],$_GET['c'], $config, $_GET['c']);

    }

    $config = fetchDbConfig($_GET['c']);

    ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

    <title>CubeCart - Config Recovery Tool</title>

    <script language="JavaScript" type="text/JavaScript">

    <!--

    function MM_jumpMenu(targ,selObj,restore){ //v3.0

    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

    if (restore) selObj.selectedIndex=0;

    }

    //-->

    </script>

    <style type="text/css">

    <!--

    body,td,th {

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

    }

    .code {

    font-family: "Courier New", Courier, mono;

    color: #000000;

    }

    .redText {color: #FF0000}

    -->

    </style></head>

    <body>

    <span class="redText"><?php if(isset($msg)) { echo $msg; } ?></span>

    <h1>Config Recovery Tool</h1>

    <p><strong>Devellion Ltd & CubeCart provide this script without any warranty of any kind and by proceeding you are doing so entirely at your own risk.</strong></p>

    <p>This tool is designed to edit your config file if for some reason your store becomes corrupt due to incorrectly changing your settings.</p>

    <p>Example: If you have switched on SSL mode and your store has become broken. Select "config" from the dropdown menu below and set

    $config['ssl']

    to 0. No test to see if your store has been fixed and if so delete this file from the server. </p>

    <p class="redText"><strong>IMPORTANT:</strong> You must NOT leave this file on your server as it is a VERY high security risk!</p>

    <p><a href="index.php" target="_blank">View Store Front</a> - (Opens in New Window)<br />

    <a href="admin/" target="_blank">View Store Admin</a> - (Opens in New Window)</p>

    <p>Select Config to edit:

    <?php

    $query = "SELECT * FROM ".$glob['dbprefix']."CubeCart_config";

    $results = $db->select($query);

    ?>

    <select name="menu1" onchange="MM_jumpMenu('parent',this,0)">

    <?php for ($i=0; $i<count($results); $i++){ ?>

    <option value="?c=<?php echo $results[$i]['name']; ?>" <?php if($_GET['c']==$results[$i]['name']) { echo "selected=\"selected\""; } ?>><?php echo $results[$i]['name']; ?></option>

    <?php } ?>

    </select>

    </p>

    <form name="form1" id="form1" method="post" action="editconf.php?c=<?php echo $_GET['c']; ?>">

    <table border="1" cellspacing="0" cellpadding="2">

    <tr>

    <td><strong>Variable name: </strong></td>

    <td><strong>Current Value: </strong></td>

    <td><strong>New Value: </strong></td>

    </tr>

    <?php foreach($config as $key => $value) { ?>

    <tr>

    <td class="code"><?php echo "\$".$_GET['c']."['".$key."']"; ?></td>

    <td class="code"><?php echo $value; ?></td>

    <td>

    <textarea name="data[<?php echo $key; ?>]" cols="30" rows="2"><?php echo $value; ?></textarea>

    </td>

    </tr>

    <?php } ?>

    <tr>

    <td> </td>

    <td> </td>

    <td><input type="submit" name="Submit" value="Update Config" /></td>

    </tr>

    </table>

    </form>

    </body>

    </html>

  4. The SSL (and TLS) protocol is the Web standard for encrypting communications between users and SSL (secure sockets layer) e-commerce sites. Data sent via an SSL connection is protected by encryption, a mechanism that prevents eavesdropping and tampering with any transmitted data. SSL provides businesses and consumers with the confidence that private data sent to a Web site, such as credit card numbers, are kept confidential. Web server certificates (also known as secure server certificates or SSL certificates) are required to initialize an SSL session.

    Customers know when they have an SSL session with a website when their browser displays the little gold padlock and the address bar begins with a https rather than http. SSL certificates can be used on webservers for Internet security and mailservers such as imap, pop3 and smtp for mail collection / sending security.

    Your SSL session begins when you place an order.

  5. topHeader is a jpg, not a gif unless you've changed it in layout.css

    Make sure there is no 'repeat' statement 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;

  6. For your Site Doc text look in 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;

    As for your seal you might consider a side box by adding the following code to index.tpl where you'd like it to appear:

    <div class="boxTitleRight">Your head-line</div>

    <div class="boxContentLeft">

    Use the code you wish to add for your seal

    <border="0" >

    </div>

    <div class="boxFootRight"> </div>

×
×
  • Create New...