Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

mingomango

Archived
  • Posts

    16
  • Joined

  • Last visited

Profile Information

  • Real Name
    Chaman

mingomango's Achievements

  1. Hi there, I am getting a Fatal error: Call to a member function on a non-object in /home/******/private_html/hsbc_return.php on line 40 I am in Test mode and using valid cc details and the returned POST details look ok (CpiResultsCode = 0). Regarding line 40 ( $hash=$hsbc->getHash($post_2); ) what is this for/ what does it actually do? $order_hash=$_POST['OrderHash']; $hsbc=$GLOBALS['hsbc']; I am finding that $order_hash is ok, but $hsbc is blank. I would have thought that (as the result code was 0 = ok) moving this: $CpiResultsCode=$_POST['CpiResultsCode']; if ($CpiResultsCode=='0') { tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL')); } above line 40 would be ok - any thoughts on this?? Thanks, Chaman btw I had the scientific / e-notation thing for the timestamp but used the following to make it a string: $TimeStamp = time()*1000; //Time has to be in microseconds, hence the *1000 $TimeStamp = sprintf("%f", $TimeStamp); // turn into float $TimeStamp = explode(".",$TimeStamp); $time = $TimeStamp[0]; // ditch the decimals
  2. I too have missing bread crumbs for the articles themselves... I have added the article in the page control and the meta data works ok. The additional code added to the application_top doesn't say where it should sit (if that matters) relative to the HT_SEO code. The supplied file and manual instructions both show position for file without HT_SEO... My HT_SEO code for application_top now looks like this: /*** Begin Header Tags SEO ***/ // add category names or the manufacturer name to the breadcrumb trail if (isset($cPath_array)) { for ($i=0, $n=sizeof($cPath_array); $i<$n; $i++) { $categories_query = tep_db_query("select categories_name,categories_htc_title_tag from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$cPath_array[$i] . "' and language_id = '" . (int)$languages_id . "' LIMIT 1"); if (tep_db_num_rows($categories_query) > 0) { $categories = tep_db_fetch_array($categories_query); if ($categories['categories_htc_title_tag'] == '') { // cdk if no htc title use cat name $breadcrumb->add($categories['categories_name'], tep_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', array_slice($cPath_array, 0, ($i+1))))); } else { $breadcrumb->add($categories['categories_htc_title_tag'], tep_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', array_slice($cPath_array, 0, ($i+1))))); } } else { break; } } } elseif (isset($_GET['manufacturers_id'])) { $manufacturers_query = tep_db_query("select manufacturers_htc_title_tag from " . TABLE_MANUFACTURERS_INFO . " where manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "' LIMIT 1"); if (tep_db_num_rows($manufacturers_query)) { $manufacturers = tep_db_fetch_array($manufacturers_query); $breadcrumb->add($manufacturers['manufacturers_htc_title_tag'], tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $_GET['manufacturers_id'])); } } // add the products name to the breadcrumb trail if (isset($_GET['products_id'])) { $products_query = tep_db_query("select pd.products_head_title_tag from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_id = '" . (int)$_GET['products_id'] . "' and pd.language_id ='" . (int)$languages_id . "' LIMIT 1"); if (tep_db_num_rows($products_query)) { $products = tep_db_fetch_array($products_query); $breadcrumb->add($products['products_head_title_tag'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $_GET['products_id'])); } } // articles manager v1.57 // include the articles functions require(DIR_WS_FUNCTIONS . 'articles.php'); // calculate topic path if (isset($HTTP_GET_VARS['tPath'])) { $tPath = $HTTP_GET_VARS['tPath']; } elseif (isset($HTTP_GET_VARS['articles_id']) && !isset($HTTP_GET_VARS['authors_id'])) { $tPath = tep_get_article_path($HTTP_GET_VARS['articles_id']); } else { $tPath = ''; } if (tep_not_null($tPath)) { $tPath_array = tep_parse_topic_path($tPath); $tPath = implode('_', $tPath_array); $current_topic_id = $tPath_array[(sizeof($tPath_array)-1)]; } else { $current_topic_id = 0; } // end articles manager v1.57 /*** End Header Tags SEO ***/ Is there some extra code changes needed here to make articles appear in the breadcrumb? Does there need to be some extra code on the article_info.php page like on the article.php page? Thanks, Chaman
  3. I have added these fields to the articles_description table: articles_head_title_tag articles_head_keywords_tag articles_head_desc_tag was already there It seems to work now.
  4. Hi Jack, I have just added Article manager 1.57 and I get this error in the admin when I try to add a new article: 1054 - Unknown column 'articles_head_title_tag' in 'field list' select articles_head_title_tag from articles_description where articles_id = '0' and language_id = '1' and sure enough that field doesn't exist in the "articles_description" table. There are also references in the code to "article_head_desc_tag" and "articles_head_keyword_tag", but none of these appear in the SQL file supplied in the v1.57 package. Please let me know the sql for these fields so that I can manually update. Thanks! Chaman
  5. The homepage and the category/product list both use the index.php.html template. I don't think you can easily have a content template for the category lists, so your best bet is to look at changing the colours in the css file, or at worst in the index.php file itself. If anyone else knows better, please let us know. As far as I can see to create a content template for those lists would require reproducing most of the index.php file in the sts_incs folder and using it to create an array of product/cat info and then have a loop in the new content template in order to display all of them... Chaman
  6. Another question, now - advice on which method would be best: I have created a info box which extracts and lists "categories" and "pages" from a WordPress database. These link to two new pages called blog.php and page.php respectively. Using HT SEO I can create a general title and meta data for those two pages in the admin, but additionally I would like to get the blog title, say, into the meta tilte and some of the post into the meta description. (I guess this is a bit like the product_info page as the content is dynamic ) So the question is do you think I can just create a content template (as in 3.11 in STS User Manual) for this or would it be better to create another module (as in 5.4 in STS User Manual). Thanks, Chaman
  7. I upload the new sts_inc/headertags.php file and replaced those naughty <title><?php echo $headcontent; ?></title> with <title><?php echo TITLE; ?></title> again and hey - good news the site works.... However, rolling back the changes doesn't break the site as I expected.....maybe I shouldn't complain, but I would have liked to know why it wasn't working!!
  8. I have used the stc_inc/headertags.php file from the powerpack, only difference being the inclusion of the clean_html_comments.php page and the use of "include_once"instead of just "include". HT SEO comes with a Install_Catalog.txt file which I had implemented, do I need to undo all of those changes as your instructions say "For the catalog side, do NOT follow the HTC instructions"??
  9. Just to add that the $headcontent was already in the template because it is a slightly modified version of the "full" demo template set that comes with STS - shall I post it?
  10. The reason I added $headcontent to the index.php page was because it was already in my sts_template.html and this not outputting anything other than the default store title.... then I noticed this: on the intro here http://www.oscommerce.com/community/contributions,1524 and thought that was what I should have done...... I only did this to the index.php page and that actually made it work!! Yes thats right, sorry should have been more accurate... Is the "HTC step by step" guide valid for Header Tags SEO v3.0.8 or the older Header Tags Controller contrib? Erm, I think it might be... searching the code gives me 4.5.5 as the highest version, but have the downloaded files for later fixes and probably applied them (I had installed the sts bit about 12months ago so can't quite remember...)
  11. Have sorted this out now.... I should have replaced <title><?php echo TITLE; ?></title> with <title><?php echo $headcontent; ?></title> in the souce code as well as using in the sts_template.html file....
  12. ok, I have sorted it. It was sort of an sts thing in that <title><?php echo TITLE; ?></title> has to be replaced by <title><?php echo $headcontent; ?></title> in the source code (ie the original index.php file) as well as appearing in the sts_template.html file. My fault - rtfm... :blush: Chaman
  13. Hi I originally posted this in the Header Tags SEO forum (http://www.oscommerce.com/forums/index.php?s=&showtopic=298099&view=findpost&p=1326022), but Jack suggested I post it here instead (slightly edited so that it makes sense in this forum!): I installed the HT SEO as per the instructions and with STS turned off (and with the header code added to the pages) it works fine. Once I turn on STS and remove the header code (the if statement around the title tag) then all I get is the default store name. I have added the STS only file and the headertags.php filename to the "files for normal template" in sts admin. It seems to me (although I can't get my head around the order things are done in STS) that the capture code in the headertags.php file is not being run, or that the "headertags" output is being overwritten before it is inserted into the "headcontent" output. Any ideas? Another thing is that when you click the "view results" in the page control admin with STS off it shows the correct title/keywords/desc (all in yellow), but once it is on all you get is the default store name (in yellow) and blank keywords/description (in red). I have OSC 2.2rc1, STS v4.5.5 and HT SEO v3.0.8. Many thanks, Chaman
  14. Hi This is another STS one, I'm afraid! I installed the contrib as per the instructions and with STS turned off (and with the header code added to the pages) it works fine. Once I turn on STS and remove the header code (the if statement around the title tag) then all I get is the default store name. I have added the STS only file and the headertags.php filename to the "files for normal template" in sts admin. It seems to me (although I can't get my head around the order things are done in STS) that the capture code in the headertags.php file is not being run, or that the "headertags" output is being overwritten before it is inserted into the "headcontent" output. Any ideas? Another thing is that when you click the "view results" in the page control admin with STS off it shows the correct title/keywords/desc, but once it is on all you get is the default store name....looking at the code for that page it looks like it extracts the data from the actual page (eg specials.php) and because when STS is enabled there is no HTSEO header code on that page it just uses the default title...maybe if sts is enabled it should get the data from the database? I have OSC 2.2rc1, STS v4.5.5 and HT SEO v3.0.8. On the test page I only get the header code missing errors which I believe I should ignore if using STS. Many thanks, Chaman
×
×
  • Create New...