Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

sackling

Members
  • Posts

    304
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by sackling

  1. I added all the code manually this time. I am still having to refresh the checkout_confirmation to get the coupon to show.

     

    This happens with debug mode on or off.

     

    The refresh codes for some reason bring me back to my sites homepage instead of just refreshing the page. I am not sure why. Very frustrating, I know this is hard to recreate and for the life of me I do not know why it is happening as it is working perfectly on another site of mine.

  2. Did you give option 3 a go?

    Also option two must be called from an onload event. I forgot to mention that, sorry.

     

    I gave a few other options I found around the internet a go. the ones that worked always lead me back to login.php and after logging in to the cart which show it empty.

     

    I think this could be an indication of where the problem lies.

  3. Thanks for the refresh code Jason. It is very weird that both of us are experiencing this same issue. I installed it with the autoinstaller do you think that could have an effect on this problem?

     

    I just tried the first two refresh scripts. the first one redirected to the index page. the second one did not work.

     

    Just a little more info on the coupon code refresh problem as well:

     

    once the user logs in and refreshes the confirmation page and the coupon shows up, if they then go back to shopping add products and do the checkout procedure again the coupon code works perfectly no refresh needed (with the updated amount too because new products were added and I am using a %age base coupon).

     

    I'm pretty sure that can be indicative of where the problem lies but I am not familiar enough with either oscommerce or DCC code to be able to say where.

     

    I would much rather have this work properly then use a refresh page script obviously so just trying to provide as much info as I can.

  4. I have not been able to reproduce this problem. Believe me before I took this contribution with all of my modifications to the production server last night I tried to reproduce it to make certain I wasn't going to have a problem with it. I settled on version 3.32 as it had the fewest bugs and customizations for me to make, so I have no idea why you are having this problem. I would tripple check to make sure you didn't miss anything in the installation.

    After that if you still want to solve the issue by refreshing the page consider that there are about a dozen different ways to do this that I can think of off the top of my head, but they will get you stuck in a loop. You can set a delay so the user has time to move through the checkout process, but then they may continue on before the first refresh. I can only think of a few solutions that may solve your problem from a refresh approach that will not put your visitor in a refresh loop (think stock ticker that constantly refreshes with new data).

     

    JavaScript Solution 1 (probably the most cross-browser compatible, though I have tested much):

    if(window.location.search.indexOf('reload')<0)

    window.location.replace(window.location.href+'?reload');

     

    JavaScript Solution 2 (works by storing a reloaded variable in the navigator DOM level and then checked on reload to see if another reload is necesarry. simply change the < 1 to however many times you want to reload.):

    function loaded(){

    if (!navigator.reloaded){

    navigator.reloaded=0

    }

    if (navigator.reloaded < 1){

    navigator.reloaded = ++;

    location.reload();

    }

    }

     

    JavaScript Solution 3 (the simplest solution I know, but likely the least cross-browser compatible):

    if(name!='reload')

    {

    name = 'reload';

    window.location.replace(window.location.href);

    }

     

     

    Test those out and let me know which seems the most cross-browser compatible. BTW the second solution can be called from an onLoad.

    -Jason

     

    Thanks for the refresh code Jason. It is very weird that both of us are experiencing this same issue. I installed it with the autoinstaller do you think that could have an effect on this problem?

  5. I've had the same problem with v 3.32, tried everytihing and searche everywhere with no luck. It only shows up in checkout_confirmation.php if the page is refreshed. Is there a command line to make the page refresh automatically? Placing that in the code may solve the problem.

     

    I have the exact same issue. I have 2 websites. on one the code works perfectly and on the other I have to refresh the page on checkout confirmation then it works perfectly.

     

    Why would I have to refresh? I can't seem to figure it out. I thought it might be because the session id was being lost maybe? I added this code:

     

    if (!tep_session_is_registered('coupon')) tep_session_register('coupon');
     if (tep_not_null($HTTP_POST_VARS['coupon'])) {
           $coupon = tep_db_prepare_input($HTTP_POST_VARS['coupon']);
     }

     

    But it did nothing.

     

    Any help would be extremely appreciated.

  6. Hello,

     

    I have had a working easy populate for a couple years now. But last night something happened to make it stop working. Now when I try to upload my catalog file it simply refreshes the page with no error/message or anything just a blank page as if I just clicked on utility import export.

     

    Here is what I did last night which led to the problem. I am not sure which specifically has caused this:

     

    1)automatic install of contribution "discount coupon codes" (also tried the automatic uninstall from the backup files which did not fix the problem, though the discount codes module does seem to work perfectly. Note** before the automatic install worked it said I needed to have version 5.2.0 I believe of php installed on the server. I thought I did but I went to look around my server panel. I think that after doing #2 below it allowed me to automatically install even though I am pretty sure that has nothing to do with the php version on the server...)

     

    2) Was puttsing around in my server's panel (dreamhost) and turned on PHP Cache. and then disabled it.

     

    3) had to change file permissions of includes/configure.php from 644 to 444 as I was receiving error in cart this fixed the error as I read it would in these forums.

     

    That is it. Any help/thoughts/ideas/anything is greatly appreciated. I need easy populate to be working else I cannot add new products to my site. Thank you so much.

     

    I figured out the problem. I had somehow upgraded my php to php5 which it was not before.

  7. Hello,

     

    I have had a working easy populate for a couple years now. But last night something happened to make it stop working. Now when I try to upload my catalog file it simply refreshes the page with no error/message or anything just a blank page as if I just clicked on utility import export.

     

    Here is what I did last night which led to the problem. I am not sure which specifically has caused this:

     

    1)automatic install of contribution "discount coupon codes" (also tried the automatic uninstall from the backup files which did not fix the problem, though the discount codes module does seem to work perfectly. Note** before the automatic install worked it said I needed to have version 5.2.0 I believe of php installed on the server. I thought I did but I went to look around my server panel. I think that after doing #2 below it allowed me to automatically install even though I am pretty sure that has nothing to do with the php version on the server...)

     

    2) Was puttsing around in my server's panel (dreamhost) and turned on PHP Cache. and then disabled it.

     

    3) had to change file permissions of includes/configure.php from 644 to 444 as I was receiving error in cart this fixed the error as I read it would in these forums.

     

    That is it. Any help/thoughts/ideas/anything is greatly appreciated. I need easy populate to be working else I cannot add new products to my site. Thank you so much.

  8. I have been using this contribution for a long time without a hitch.

     

    today however I am not sure what I changed but the sorting of the columns no longer works. It stays stuck on Last name Descending no matter which column title I click.

     

    The url does change to reflect the click. however nothing changes. Any ideas on what I may have done to cause this??

  9. Hello. I recently posted this in general help as I did not see this topic.

     

    Hoping to get a little more help help.

     

    I recently installed this contribution using the automatic installer

     

    The problem I am having is that the first time the user clicks continue after entering the coupon code, nothing shows up. it merely goes to the checkout confirmation page. Only if the user goes back a page and click continue again with the code entered will the coupon code register.

     

    any subsequent time the user goes through the checkout process while still in the same login session the code works. It is only the first time after login that it does not which is also very important.

     

    Any ideas off the top that you could think of to fix this?

  10. working without any issues here, re-check the installation.

     

    hmmm i did the automatic installer. really seamed so easy so I thought maybe there would be a fix seeing that it is working just takes 2 clicks.

     

    maybe I will have to reinstall manually.

  11. Hello,

     

    I recently installed the contribution "discount coupon codes"

     

    The problem I am having is that the first time the user clicks continue after entering the coupon code, nothing shows up. Only if the user goes back a page and click continue again will the coupon code register.

     

    Any ideas off the top that you could think of to fix this? This would look pretty bad on my part.

  12. Hello,

     

    I have the giftwrap module installed and it all appears to be working correctly. The problem is on confirmation and the final order the gift wrap option shows up as selected (and shows the $5.00 cost) in the subtotal however it does not add the $5.00 to the final total.

     

    Any help would be greatly appreciated!

  13. Hello,

     

    I am using this contribution:

    http://addons.oscommerce.com/info/1462

     

    -I am shipping out of canada

    -none of my shipments really exceed 1lb

    -all of my products are set at 0lbs

    -my package tare weight is set at 1 lb

     

    When I add products to the order the price should not change seeing as they weigh 0lbs however the shipping price seems to change according to the price??

     

    any ideas what is going on here?

  14. I have still been trying to do this and have made no progress at all.

     

    Im going to try to further explain a little bit just in case I said something wrong.

     

    All of the product pages on my site are located outside of the catalog file folder of oscommerce.

     

    the only way I link the product pages to oscommerce is through a buy now button which contains the link information to add a product to a cart. once clicked this brings you to the shopping cart which is working fine with STS templates.

     

    What I can't seem to figure out is how to use the STS codes in my product page outside of the catalog folder. I thought that using php include on the product page of file called reviews.php.html which I made and put into the STS template folder would do the trick. This however only displays the code in text on my products page. In other words STS is not recognizing it as a page to interpret.

     

    I included the:

     

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    <html $htmlparams>

    <!--$headcontent-->

     

    in the correct fashion Yet still can't figure out how to get this to work.

     

    The main goal of this is to show the reviews of a given product from oscommerce reviews on my product page.

     

    Any further help is massively appreciated.

  15. OK. I was making a lot of assumptions I guess. You will of course have to add in the code that is needed in the template that lets STS know that this is in fact a STS template.

     

    I would assume that you have at least the following in your template:

     
    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    
    <html $htmlparams>
    
    <head>
    
    <!--$headcontent-->
    
     <link rel="stylesheet" type="text/css" href="$templatedir/stylesheet.css">
    
    </head>

     

    The tags necessary above would be the $htmlparams and <!--$headcontent--> tags. The link to the stylesheet is up to you.

     

    I tried this and feel like I'm missing something integral as I am still just getting the $reviewsbox text on my site and not the actual review box. Here is what I did.

     

    for the template page I have this simple code:

     

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    
    <html $htmlparams>
    
    <head>
    
    <!--$headcontent-->
    
     <link rel="stylesheet" type="text/css" href="../../../../../site_files/stylesheet.css">
    
    </head>
    
    <body>
    $reviewsbox
    </body>
    </html>

     

    and then on the product html page I have just this:

     

    <?php include("../../catalog/includes/sts_templates/full/content/product_reviews.php.html"); ?>

     

    I have php enabled on the product html page via htaccess. If I go directly to the product_reviews.php.html template I see the $reviewsbox text and nothing else. the same happens if i go directly to the templates that I have working in the shopping cart though so that doesnt really mean much i suppose. What am I missing here?

  16. I'm not following you here but just so you know, STS allows you to create a template for specific pages in your site. If you follow the correct naming syntax as explained in the STS User Manual, STS will know when to use it automatically.

     

    For example, you can create a template for product_reviews.php ( named: product_reviews.php.html) or product_reviews_write.php (named: product_reviews_write.php.html).

     

    Ok so i made the file product_reviews.php.html with only $reviewsbox written in it. I put that file in the /catalog/includes/sts_templates/full directory.

     

    I included this file on the page i want it on but I am only seeing the $reviewsbox text. as in its not being recognized as the sts file. How do I get it to be recognized? Is it in the wrong directory?

  17. Hello,

     

    I currently use sts templates on my html/css site only for shopping cart purposes.

     

    recently i decided i would like to add product reviews to the bottom of the product pages by using a php include at the bottom of the page of the product reviews page like so:

     

    <?php include("../../catalog/product_reviews_write.php?products_id=179"); ?>

     

    Now I am currently facing 2 problems.

     

    1) I am able to access the page however when I try to include it i receive the error:

     

     

    Warning: main(../../catalog/product_reviews_write.php?products_id=179) [function.main]: failed to open stream: No such file or directory in

     

    2) The sts template that is being used for that page is the same as I use in my shopping cart. therefore the entire html menu system that i insterted in the sts_template file so that the shopping cart looks consistent with the rest of my site will appear on the page that already has the html menu.

     

    is there a way to make it a second template only for the reviews that would be pretty much blank? how do i tell sts to do this?

  18. Hello,

     

    I currently use sts templates on my html/css site only for shopping cart purposes.

     

    recently i decided i would like to add product reviews to the bottom of the product pages by using a php include at the bottom of the page of the product reviews page like so:

     

    <?php include("../../catalog/product_reviews_write.php?products_id=179"); ?>

     

    Now I am currently facing 2 problems.

     

    1) I am able to access the page however when I try to include it i receive the error:

     

    Warning: main(../../catalog/product_reviews_write.php?products_id=179) [function.main]: failed to open stream: No such file or directory in

     

    2) The sts template that is being used for that page is the same as I use in my shopping cart. therefore the entire html menu system that i insterted in the sts_template file so that the shopping cart looks consistent with the rest of my site will appear on the page that already has the html menu.

     

    is there a way to make it a second template only for the reviews that would be pretty much blank? how do i tell sts to do this?

  19. One more point which may seem harsh but really I'm just uninformed.

     

    What is the point of this contribution? why have all the back end code and trouble? Can't I just make a simple page with a bulleted list linking to all the pages? Or is there something else going on behind the scenes that makes this more pleasing to search engines?

     

    I get the feeling that for a site that is not enormous it may just be easier to make my own page?

  20. Hello there. I'm having a few problems with this contribution. I have it installed correctly i believe and formatted to look the way I want it.

     

    Here is where the problems start.

     

    1) in box control I am only able to select information.php

    2) in page control if I select an exclude box and click update it unchecks it again after refreshing though it does seem to have an effect on the sitemap.

    3) even if I exclude everything all the links still show. if i uncheck them all I get some doubles.

    4) many of the links are wrong for the product categories. is there a way to change the link?

×
×
  • Create New...