Jump to content

lynnmcdee

Member
  • Posts

    76
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by lynnmcdee

  1. Hi Duncan,

    My file was slightly different:

    In the file /admin/sources/settings.giftcertificates.inc.php

    This was in my file near line 17:
    $GLOBALS['main']->addTabControl($lang['catalogue']['gift_certificates'], 'Certificates');
    $GLOBALS['gui']->addBreadcrumb($lang['catalogue']['gift_certificates'], $_GET);
     
    I changed it to this:
    $GLOBALS['main']->addTabControl($lang['catalogue']['gift_certificates'], 'Certificates');
    $GLOBALS['main']->addTabControl($lang['settings']['title_images'], 'gift_images', null, 'I');
    $GLOBALS['main']->addTabControl($lang['settings']['tab_seo'], 'seo', null, 'S');
    $GLOBALS['gui']->addBreadcrumb($lang['catalogue']['gift_certificates'], $_GET);

    Hope this helps

    Regards

    Lynn
     

  2. So now that we have the meta_data we want for the page of Sale Items, we need to get that fed into the SEO Meta Data function. Luckily, since "Sale Items" is treated exactly like a search (for items that have a legitimate sale price), and the output is shown exactly like a category, we have already nearly all the code in place to show the meta_data for the Sale Items page.

     

    We need to give to the Category dataset this new data. In the file /classes/cubecart.class.php, near line 709, find:

    Was:
    if ($_GET['cat_id'] == 'sale') { dbgClue("Showing the 'saleitems' category.",array(),false);
      $GLOBALS['catalogue']->setCategory('cat_name', $GLOBALS['language']->navigation['saleitems']);
      $GLOBALS['gui']->addBreadcrumb($GLOBALS['language']->navigation['saleitems'], currentPage());
    }
     
    Now:
    if ($_GET['cat_id'] == 'sale') { dbgClue("Showing the 'saleitems' category.",array(),false);
      $GLOBALS['catalogue']->setCategory('cat_name', $GLOBALS['language']->navigation['saleitems']);
      $GLOBALS['catalogue']->setCategory('seo_meta_description', $GLOBALS['config']->get('config', 'catalogue_sale_seo_meta_description'));
      $GLOBALS['catalogue']->setCategory('seo_meta_keywords', $GLOBALS['config']->get('config', 'catalogue_sale_seo_meta_keywords'));
      $GLOBALS['catalogue']->setCategory('seo_meta_title', $GLOBALS['config']->get('config', 'catalogue_sale_seo_meta_title'));
      $GLOBALS['gui']->addBreadcrumb($GLOBALS['language']->navigation['saleitems'], currentPage());
    }

    Note: The proper way to code this is to first check if this data exists:

    $GLOBALS['config']->has('config', 'catalogue_sale_seo_meta_description')

    then, if this returns true, send the data to Catalogue->setCategory(). But let's see how your experiment turns out.

     

    Incidentally, the version of Firefox I am using just shows the page title on a very short tab - not in the window header where there is just the main menu bar at present. (Ok, just now learned how to switch the title bar on.)

    Hi Brian,

     

    Thank you so much for your reply :)

     

    In the file /classes/cubecart.class.php, I have :

     

    if ($_GET['cat_id'] == 'sale') {    

            $GLOBALS['catalogue']->setCategory('cat_name', $GLOBALS['language']->navigation['saleitems']);

            $GLOBALS['gui']->addBreadcrumb($GLOBALS['language']->navigation['saleitems'], currentPage());

     

    with this missing:

     

    dbgClue("Showing the 'saleitems' category.",array(),false);

     

    Should I add the above line?

  3. Yes, you are right :) :) :).  I have changed the redirect back to 302 and the redirect loop has now gone.  Thank you so much..

     

    What can I do about the redirects being 302 instead of 301's?  I would really like them to be 301's

  4. Hi ,
     
     
    My website has developed an issue when using Chrome to add a product to the basket or click on 'view basket' (it happens if you are registered or a guest)
     
    Message in Chrome:
    This web page has a redirect loop
     
    I have looked in the htaccess file and restored an old backup file, but this has not solved the problem.
     
     
    Any hints or tips on where to fix this as obviously my site is currently not able to take orders in Chrome :(
     
    The website is working in Firefox and Internet Explorer
     
    Thanks in advance
  5. Yes, there is the following in the main.php file <meta name="robots" content="index, follow" />.

     

    I only want to noindex the category pages, to stop the duplicate content. 

     

    The other option that has been suggested is to change the canonical!!!

     

    What would you suggest? 

  6. My website is showing some duplicate content in webmaster tools.  One of the category pages currently has 10 pages. 

     

    Also, some products/pages have duplicated three times: eg correct URL, prod_798.html and .html?product_id=798.  The correct URL is currently showing on the website and when I search for that product.  But, webmaster tools is picking up other URL's for the same product.

     

    How can I stop this showing as duplicate content?  

  7. On the mobile version of my website the shopping basket is no longer visible.  When a customer adds a product to the shopping basket, the shopping basket still does not show and they are unable to navigate to the checkout.  Is there a way that the shopping basket will automatically show when something has been added to the basket, or something along this line.

×
×
  • Create New...