Jump to content

disco_ii_disco

Member
  • Posts

    115
  • Joined

  • Last visited

Posts posted by disco_ii_disco

  1. Also GoogleBase didn't like the fact that some descriptions were blank.

    I think I've managed to get around this by adding:

    ." Click for more info."

    to the end of line 55 (or 57 if you are using SEF links):

    $googleBaseContent .= $glob['storeURL']."/index.php?_a=viewProd&productId=".$results[$i]['productId']."\t".$name."\t".$desc." Click for more info.";

  2. My CC4 search isn't working as it supposed to be. Let's say I have to products: Apple cider and Apple Juice. When I try to search for 'apple juice' then 'apple cider' also show up in the search result. So, let's say i have 50 items that have the word 'apple' in it then it will show all 50 items in the research result eventhough I was searching 'apple' + "something else". It seems that it's using "OR" instead of "AND" to search.

    I'm trying to fix this as well. Had it sorted it CC3.

    The code in CC4 is proving a lot harder for me to figure out. If I crack it soon I'll let you know.

    I'm struggling with so many things.

    Cheers.

    Chris

  3. I wrote a sitemap generator (hacked from an existing CC file), which I'll be talking to Al about soon to see if he'll integrate it into CC.

    I'm still trying to figure out how to turn a php script into a cron job, so that it can run daily to update without any user-intervention.

    I built a very simple sitemap for v3 that worked well:

    <?php

    /*

    This is a sitemap mod written by Chris Ashwell 2008

    */

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

    // INCLUDE CORE VARIABLES & FUNCTIONS

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

    // initiate db class

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

    $db = new db();

    // query database

    $query = "SELECT productId, productCode, quantity, name, description, image, noImages, price, popularity, sale_price, stock_level, useStockLevel, digital, digitalDir, prodWeight, cat_name, ".$glob['dbprefix']."CubeCart_inventory.cat_id, cat_father_id, cat_image, per_ship, item_ship, item_int_ship, per_int_ship, noProducts FROM ".$glob['dbprefix']."CubeCart_inventory INNER JOIN ".$glob['dbprefix']."CubeCart_category ON ".$glob['dbprefix']."CubeCart_inventory.cat_id = ".$glob['dbprefix']."CubeCart_category.cat_id ORDER BY cat_name, name ASC;";

    $result=mysql_query($query);

    $meta['siteTitle'] = "Caravan and Camping equipment at The Caravan Accessory Shop";

    $meta['metaDescription'] = "Sitemap";

    print "<html><head><title>Caravan and Camping equipment at The Caravan Accessory Shop</title><link href='skins/Chris Killer/styleSheets/style.css' rel='stylesheet' type='text/css' /></head><body><h1>Caravan and Camping Equipment</h1><h2>Caravan Accessory Shop Sitemap</h2><ul>";

    $header ="";

    while ($row=mysql_fetch_array($result)){

    extract($row);

    if ($header==$cat_name){

    echo "<li><a href='index.php?act=viewProd&productId=$productId'>$name</a></li>";

    $header=$cat_name;

    }

    else

    {

    echo "<h2>$cat_name</h2>";

    echo "<li><a href='index.php?act=viewProd&productId=$productId'>$name</a></li>";

    $header=$cat_name;

    }

    }

    print "</ul><p><a href='index.php'>&lt;&lt; Back to Home</a></body></html>";

    ?>

    If anyone could help me adapt it for V4 that would be great.

  4. Thanks for the fast reply.

    Still think it was a bit of an unnecessary change though.

    I did put the SEO links on for a start but then realised that if I ever move a product to a different category or re-structure the categories I will be facing the same problem.

    I've always appeared at the top of Google for my most popular products so hope I've not messed things up by upgrading.

    Incorrect links are being re-directed to the home page so I don't suppose that is a complete disaster.

    Cheers,

    Chris

  5. Hi,

    Just upgraded to V4.

    Instead of

    http://www.caravanaccessoryshop.co.uk/inde...p;productId=268

    product links are now:

    http://www.caravanaccessoryshop.co.uk/inde...p;productId=268

    This means that all the links I have to products from other websites are now incorrect and the search engines will be pointing to incorrect pages until they re-index them. I'm going to lose out on a lot of business over the weekend because of this.

    Is there anyway of getting the links back to how they were?

    Cheers,

    Chris

  6. Hi,

    My shipping prices are calculated on weight using the 'by weight mod' v3.7.

    I currently display the prices in a box on the right of my homepage: www.caravanaccessoryshop.co.uk.

    What I would like to do now is include the variables from the mod in this box, so that it updates each time I change the shipping prices.

    Hope this make sense and that someone can point me in the right direction.

    Cheers,

    Chris

  7. I was interested to read your post about the new shop.

    Have you been able to undercut other online retailers? Surely they have such huge buying power that it is difficult to compete. Most of them offer free shipping now anyway (eg play.com, cdwow and amazon).

    Make sure that you're not losing money on the shop either. There are a lot of costs involved: eg. webhosting, domain names, paypal fees, postage, packaging, not to mention a large amount of time. I only make a small profit by selling at full retail prices!

    All the best.

    Chris

  8. First of all sorry for listing in two categories but I think more peopl read the posts in this category.

    Hi all,

    Have finally got round to upgrading to v3.0.8 after I realised people were searching for me on Google with the term "powered by CubeCart 3.0.6" (!).

    Anyway, have overwritten all files and now the cart is not working from Step 3 onwards:

    www.caravanaccessoryshop.co.uk

    At step 3, instead of the despatch address automatically showing as the invoice address, each field has an "A" in it and the country shows as Afghanistan!

    When you click continue I get the following error message:

    Warning: Invalid argument supplied for foreach() in /home/access/public_html/includes/content/cart.inc.php on line 123

    Warning: Cannot modify header information - headers already sent by (output started at /home/access/public_html/includes/content/cart.inc.php:123) in /home/access/public_html/includes/content/cart.inc.php on line 101

    Another problem I having is that all products are being shown in all categories! i.e all 400 products are being shown in every category. Can anyone give me a quick fix for this.

    Thanks for any help anyone can provide.

    Cheers,

    Chris

  9. Hi all,

    Have finally got round to upgrading to v3.0.8 after I realised people were searching for me on Google with the term "powered by CubeCart 3.0.6" (!).

    Anyway, have overwritten all files and now the cart is not working from Step 3 onwards:

    www.caravanaccessoryshop.co.uk

    At step 3, instead of the despatch address automatically showing as the invoice address, each field has an "A" in it and the country shows as Afghanistan!

    When you click continue I get the following error message:

    Warning: Invalid argument supplied for foreach() in /home/access/public_html/includes/content/cart.inc.php on line 123

    Warning: Cannot modify header information - headers already sent by (output started at /home/access/public_html/includes/content/cart.inc.php:123) in /home/access/public_html/includes/content/cart.inc.php on line 101

    Can anyone shed any light on this.

    Cheers,

    Chris

  10. Cheers evilhomer.

    Just spotted that the javascript folder had not been uploaded! Hopefully that will fix it.

    What other security measures should I take to make sure I don't get hacked again.

    I have updated the admin/filemanager/upload.php file already and changed permissions on some files.

    Can anyone provide a list of the correct file permissions for the files that are changed at installation stage.

    Cheers.

  11. Hi all,

    Having a bit of trouble getting Google to crawl my website (built with cubeCart v3): www.caravanaccessoryshop.co.uk.

    So far only the home page has been indexed: site:www.caravanaccessoryshop.co.uk

    I have uploaded a site map to the homepage but I don't think Google likes the dynamic pages or the page addresses.

    Has anybody out there had any success with the search engines?

    Please don't ask me to try the SEO mod unless anybody has actually had any success with it!

    Cheers,

    Chris

×
×
  • Create New...