Jump to content

keat

Member
  • Posts

    1,614
  • Joined

  • Last visited

  • Days Won

    27

Posts posted by keat

  1. In the end I went for a simple aproach.

    I created a new category but have this hidden from the front page.

    In main.php, I removed the 'Featured Product' call, and added in it's place a small amount of html to create a button with hyperlink to the hidden category.

  2. On the featured product box (Popular Products), is there any way to have this show 3 products instead of just one random product.

    At the moment, we have this called Deal of the Week. All products have 'show in featured product' unchecked, apart from one.

    This then sits there static.

    I'd like to show 3 products.

     

    I assume that any changes would need to be made in catalogue.class, but it's beyond my realms

     

     

    Mican Skin by the way

  3. It turned out in the end to be a mis communication.

    I've removed "Featured Product", the boss thought that we could utilise the space where the column would have resided.

    He assumed that he could push a 4th product in the column space.

     

    I thought he wanted to show 4 icons across.

  4. What I found is, it doesn't matter what settings you put in any php files, they are all over ridden by the server default of 20 minutes.

    Although, that 20 minute figure is then influenced by the garbage clean up, which may run later.

    On my server, this equated to about 40 minutes.

     

    Al did some coding work, that would copy this session data and dump it somewhere for safe keeping, although I recall him saying that even this wasn't ideal, as you would need a certain amount of user rights over the server, which most hosted plans don't offer. I don't recall the specifics, maybe speak to Al.

     

    As I have my own server, and it only hosts a few cubecarts, it was easier for me to chnage the server default, than it was to start modifying files etc.

  5. its caused by sessions.gc_maxliftime, and has been the bane of my life for getting on 2 years, until Al and I found it.

    session.gc_maxlifetime

    This value (default 1440 seconds (20 minutes)) defines how long an unused PHP session will be kept alive. For example: A user logs in, browses through your application or web site, for hours, for days. No problem. As long as the time between his clicks never exceed 1440 seconds.

     

     

    • Like 1
  6. I did indeed make the changes in php.ini.

    Having done a lot of fault finding with Al on the sessions.gc_maxlifetime,  it seems that the local value is overwritten by the servers master value, so it doesn't matter what value you put in session class, this will be ignored by the server. The default PHP value being only 20 minutes, and about another 20 miniutes to invoke the session delete. (40 minutes in total)

    This was the ultimate cause of my null orders. Customers leaving the browser window open and the session timing out on the server.

    Al made some changes to cubecart to try and overcome this, which I believe writes information to a temporary file, but I was lead to believe that even this wasn't going to be straight forward, and of course requires a CubeCart update which is a PITA as I have custom mods.

    A mod which gives the customer the option to save his basket, would be another effort to try and curb the habit of leaving the browser window open.

     

  7. I host my own server, so changing these settings is not an issue.

    I modified sessions.gc_maxlifetime to 3 days, but it seems that 3 days is not enough for some folk.

    I've now upped this to 7 days, but no doubt someone will still find a way to break it.

  8. Is there a save basket function or plugin available.

    I still have customers trying to use cubecart as a live ordering system, where they open a browser window, add items to the basket and leave the window open to come back to later.

    I was hoping that increasing sessions.gc_maxlifetime to 3 days would be enough, but it seems not.

     

  9. Just an update on the issue where orders are missing contents.

    We had another instance yesterday, where the order had about 50 items, and the first 30 were missing.

    Considering I reconfigured session.gc.maxlifetime to 3 days, it seems some customers may actually leave thier PC's running and session open.

    I guess I'll never truly get a fix for this.

     

     

    arrrgggggg

×
×
  • Create New...