Jump to content

leeofaccy

Member
  • Posts

    276
  • Joined

  • Last visited

Posts posted by leeofaccy

  1. You can change the phrase through the language section in admin:

    Languages > en > Global Common Phrases > misc_free

    Change the phrase and click the 'Modify Language File' button at the bottom.

    If you have tried to edit the file itself you will still need to go into the lang section and the phrase will probably have 'Revert' next to it. Click that then click the 'Modify Language File' button for the changes to take affect.

    Shipping is sorted low > high on the file includes/content/cart.inc.php by this code:

    
    function cmp($a, $ { $b=floatval($b['value']); $a=floatval($a['value']); return $a<$b ? -1 : ($a>$b ? 1 : 0); }
    
    usort($Shipping, 'cmp');
    
    
    
    
    Changing it to the following will sort it high > low:
    
    
    
    
    //function cmp($a, $ { $b=floatval($b['value']); $a=floatval($a['value']); return $a<$b ? -1 : ($a>$b ? 1 : 0); }
    
    //usort($Shipping, 'cmp');
    
    rsort($Shipping);
    
    

  2. I think I can see what is happening. I have a feeling it is something to do with your ssl settings and/or your https paths.

    Have you got 'Force SSL' set to yes, in General Settings? If so, try setting it to NO and see if it makes a difference.

    Lee

  3. Hi

    Try it this way, as it does work....

    Click insert/Edit Image. When the box opens click 'Browse Server'. Next, click 'Browse' at the bottom and locate the image on your pc. Click the 'Upload' button, then click the name of the image in the list and the image should appear in the editor.

    Hope that helps.

    Lee

  4. Hi

    It should remove itself, unless the code has been modified on either includes/boxes/siteDocs.inc.php or skins/YOUR_SKIN/styleTemplates/boxes/siteDocs.tpl

    On the inc file you should have this.....

    ## Build attributes
    
    if ($results) {
    
        $maxi = count($results);
    
        foreach ($results as $i => $result) {
    
            if ($i<$maxi-1) {
    
                $box_content->parse('site_docs.a.sep');
    
            }
    
    
    And on the tpl file, this...
    
    
    
        <!-- BEGIN: a -->
    
        <a class="txtSiteDocs" href="{DATA.doc_url}" {data.doc_url_target}="">{DATA.doc_name}</a>
    
        <!-- BEGIN: sep --><span class="txtSiteDocs">|</span><!-- END: sep -->
    
        <!-- END: a -->

    This adds a seperator to each document except the last one.

    Lee

  5. This is normal with pages using SSL . It looks like you have 'Force SSL' set to Yes, so every page is using SSL. Set it to No and only the pages that require SSL will use SSL and your URL will not be appended on none-SSL pages.

    Lee

  6. Hi

    Try this, it will give you the total value of all in-stock products.

    Open admin/sources/home/index.inc.php and find this code (around line 23)

    require($glob['adminFolder'].CC_DS.'includes'.CC_DS.'header.inc.php');
    
    
    Add underneath...
    
    
    
    require($glob['adminFolder'].CC_DS.'includes'.CC_DS.'currencyVars.inc.php');
    
    
    Just below you will see this...
    
    
    
    // no Products
    
    $query = 'SELECT count(`productId`) as noProducts FROM '.$glob['dbprefix'].'CubeCart_inventory';
    
    $noProducts = $db->select($query);
    
    
    Add this below...
    
    
    
    // total product value
    
    $query = 'SELECT sum(`stock_level`*`price`) as totValue FROM '.$glob['dbprefix'].'CubeCart_inventory WHERE `stock_level` > 0';
    
    $totValue = $db->select($query);
    
    
    Around line 243 find this...
    
    
    
      <tr>
    
        <td width="33%" class="tdText"><span class="tdText"><?php echo $lang['admin_common']['other_no_products'];?></span></td>
    
        <td width="50%" class="tdText"><?php echo number_format($noProducts[0]['noProducts']); ?></td>
    
      </tr>
    
    
    Add this under it...
    
    
    
        <tr>
    
        <td width="33%" class="tdText"><span class="tdText">Total value of in-stock products:</span></td>
    
        <td width="50%" class="tdText"><?php echo priceFormat($totValue[0]['totValue'],true); ?></td>
    
      </tr>

    This could be refined a little more if need be....

    Lee

  7. Open both includes/global/index.inc.php and cart.php (in same folder) and comment them out. For example...

    /*require_once'includes'.CC_DS.'boxes'.CC_DS.'currency.inc.php';
    
    $body->assign('CURRENCY',$box_content);*/

    Do the same for the language and if you do ever decide to re-enable them, just uncomment them again and they will be visible on your site.

    Lee

  8. Hi Andy

    Click View Categories in your admin menu.

    Click the Category Name of the category with the child category in.

    Click Edit of the child category you want to move.

    In the Category Level drop-down, select Top Level, then click the Edit Product button.

    Lee

  9. Hi Neil

    It does look as though your server root path is incorrect.

    You can find it out by creating a page that tells you.

    Create a new php page in an editor, with the following

    <?php
    
    echo $_SERVER['DOCUMENT_ROOT'];
    
    ?>

    Save and name it rootTest.php or whatever. Upload this to the root of your server, then browse to it. This will give you your server root path.

    You should get a result similar to this /home/sites/your-webite/public_html/ If the folder you have uploaded your products is outside the public_html folder (downloads, for example), you will need to put something like this on your product page, for example

    /home/sites/your-webite/downloads/your_product_name.zip

    DELETE THE FILE OFF YOUR SERVER WHEN DONE.

    Lee

×
×
  • Create New...