lynnmcdee
-
Posts
76 -
Joined
-
Last visited
-
Days Won
1
Posts posted by lynnmcdee
-
-
Sorry, miss-read where to add the meta information. All completed now
-
Thank you Brian, it worked :yeahhh: :yeahhh: :yeahhh:
Do you have any ideas how I can add the meta info to the sale page?
-
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?
-
Hi Brian,
Thank you for your reply. That would be excellent - I am more than happy to experiment
-
Hi Duncan,
Thank you for your reply.
Yes, hopefully this will be added to future versions.
I would be grateful if anyone has managed to solve this issue or can advise.
Regards
Lynn
-
Hi,
When I changed:
function httpredir($destination = '', $anchor = '', $meta_refresh = false, $status = 302) to
function httpredir($destination = '', $anchor = '', $meta_refresh = false, $status = 301)
This caused a redirect loop.
Is there a way to change the 302 redirects to 301's without causing a 301 redirect loop?
-
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
-
Hi,
Yes, I have tried in on my computer, laptop and ipad.
I have cleared the browsing data from the beginning of time and the redirect loop is still occurring.
-
Thank you Bsmither. I have checked the time and it is the same, if a couple of seconds difference.
-
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 loopI 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 ChromeThe website is working in Firefox and Internet ExplorerThanks in advance
-
I would like to add meta titles and descriptions to the following pages/urls:
I could not see the facility in admin
-
Thank you, but unfortunately it didn't work
-
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?
-
Thank you. I tried the following,
{if $SECTION_NAME=='category'}
<meta name="robots" content="noindex, follow" />
{/if}but it is still showing duplicate pages:
-
Thank you for your reply. I want to add a meta robot tag to the category pages (to stop the duplication), but not the homepage. Is this possible?
-
Where is the file located, so that I can add code to the head section of the category pages?
-
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?
-
Excellent, thank you
I have another query! Should I open a new topic/post?
-
Thank you. Should I change the 302 to 301?
function httpredir($destination = '', $anchor = '', $meta_refresh = false, $status = 301)
-
I have recently run a report and it is showing a lot of 302 redirects. I need to change them to 301's, but they are not showing in the .htaccess file. Is there somewhere else I can look?
-
I have attached the screenshot.
Screenshot attached.
-
Thank you, that has solved my problem
-
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.
-
Worked out how to do this
Add meta titles and decription
in Technical Help
Posted
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