Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adiwillow

Archived
  • Posts

    244
  • Joined

  • Last visited

Posts posted by adiwillow

  1. Well I don't know much about php but when I changed line 1073 from return current page to return return the same as the other lines below everything seems to be working.Maybe somebody knows if this will mess something else up.

    line : 1064 to1073

     

    function requested_page()

    {

    $protocol = ((int) $_SERVER['SERVER_PORT'] === 443)? 'https://' : 'http://';

    $current_page = $protocol . $_SERVER['HTTP_HOST'] . ((!empty($_SERVER['REQUEST_URI']))? $_SERVER['REQUEST_URI'] : '');

    $current_page = substr($current_page, strlen(HTTP_SERVER));

    if (($pos = strpos($current_page, "?osCsid")) !== FALSE)

    $current_page = substr($current_page, 0, $pos).'<br>';

    if ($current_page[0] == "/")

    $current_page = substr($current_page, 1);

     

    Changed commented out // return $current_page;

     

    Now

    return $return;

     

    this kills the redirects, so is no good unfortunately...

     

    does anyone know of another solution (the problem is the 'next page' links dont work on product listings..) ?

  2. jack.. just a quick one if you can help..

     

    All url's etc are working fine on the site, and your redirects work great if you get the url wrong or change names etc. But, the rewrites from the old cName system arent quite working right.

    I was originally using cName for my old url's, but when clicking through from an old link the old url's are getting rewritten as follows:

     

     

    domain.com/index.php?cName=surveyors-ladders (example)

     

    doesnt seem to work right.. the url gets rewritten as

     

    domain.com/?cName=surveyors-ladders

     

    ie it just removes the index.php, and the page shown is the index page.. obviously this is going to cause me probs.. heres my htaccess..

     

    Options +FollowSymLinks

    RewriteEngine On

    RewriteCond %{THE_REQUEST} ^[^/]*/index\.php [NC]

    RewriteRule . / [R=301,L]

    RewriteBase /

     

    RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING

     

    Any ideas?

  3. hi all ! upgraded from the cName version to the rewrite version, and the fix by Jack for the URL problem.

     

    Anyway, the redirect from my old ..

     

    domain.com/index.php?cName=surveyors-ladders (example)

     

    doesnt seem to work right.. the url gets rewritten as

     

    domain.com/?cName=surveyors-ladders

     

    ie it just removes the index.php, and the page shown is the index page.. obviously this is going to cause me probs.. heres my htaccess..

     

    Options +FollowSymLinks

    RewriteEngine On

    RewriteCond %{THE_REQUEST} ^[^/]*/index\.php [NC]

    RewriteRule . / [R=301,L]

    RewriteBase /

     

    RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

    RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING

     

     

    Anyone any ideas?

  4. Hi all, i'm about to ditch my current ultimate SEO mod, as the redirects never worked and i dont like the way the pages are still accesible by altering any of the wording on the url.

     

    eg

    /garden-fountains-c-15.html

    goes to exactly the same page as

    /arse-biscuits-c-15.html

     

    So, i need a decent SEO url's mod, which returns a 404 if ever the page cannot be found (deleted category for example), or a 301 if the name has been changed (renamed category).

     

    any suggestions?

  5. can anyone answer a quick one for me regarding this?

     

    I noticed that with ultimate SEO, you can type anything before the 'c-1.html' . Eg garden-benches-c-1.html? is the same as 'benches-random-c-1.html' , ie both will go to the page. Obviously this isnt good, so does SEO-G do a similar thing?

  6. hi aLL :) got this working now using the downhomeconsulting mod :)

     

    one thing though, when there is an error such as the fraud protection error thrown back from HSBS, and it returns you to the checkout process page, there is the error message displayed in the URL, is there any way to display this in the page itself, or a customer error?

  7. okay.. now got the hashes correct, but whilst adding some debuggin code i'm getting the following error ...

     

    ret=/home/p/l/plough/public_html/cgi-bin//TestHash.e: 11: Syntax error: newline unexpected (expecting ")")

     

    now, is this a server config error, or is it somethingin the module?

     

    Thanks

  8. okay.. can i ask a quick question to everyone?

     

    How does ultimate SEO perform the actual redirects once a category or page name has been changed etc? The redirects aspect of my site doesnt work, even though the script is 100% correct. I think its down to sever settings..

     

    So, does it add a 301 in the htaccess? does it create a page with the old name, but with a 404? help !

  9. hi all,

     

    upgraded from 2.0 to 2.1d, had a bit of trouble the the htaccess but now everything works fine.

     

    BUT the 301 redirect doesnt seem to work? eg I change the name of a category, both the new URL and the old one still work.. the old one doesnt redirect, as i'm presuming it should?

     

    Has anyone come across any possible reasons for this?

  10. hi all, i need to use freecount. It seems to work fine but when you hit the required amount and go to checkout, it doesnt remove the other shipping method from the options? ie it displays as follows.

     

    Free Count

    Best Way £0.00 o

     

    Per Item

    Best Way £80.00 o

     

    anyone know thw workaround?

     

    thanks

    adi

  11. quickie on this...

     

    How do i move the 'purchase without account' on the checkout pages to above the other two account options? .. Ideally i need the purchase without account option to be the first one the customers will see, with the other two underneath it.

     

    Normally moving something like this is fairly simple but i'm a bit stumped.

  12. seeing as no-one seems to know about my earlier question (the one about having wholesale prices marked as being somehow).

     

    Does anyone know if there is a way to tell the customer what customer type they are in an infobox or something?

     

    eg... "You are logged in as a trade customer, all prices indicated are wholesale prices'

     

    ta very muchly... :D

×
×
  • Create New...