Jump to content

keat

Member
  • Posts

    1,614
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by keat

  1. See my screen shots, maybe these will help. It looks like i configured Jersey, Gurnsey and Eire as seperate countries, which could then have thier own tax rate I also note that I have no counties configured for the channel islands, which forces the customer to choose a country.
  2. Lets say that a customer wishes to order a birthday card and have some custom text on the card. Is there any way to have a text box on the product details, that the customer could complete and then this text would be added to the product in has cart and on the admin side ?
  3. You could also remove the link from the skin. The language files would still be there in case you ever needed them, but the option to change the language (on the customer side) would no longer exists. skins/your-skin/templates/main.php Remove the string {$LANGUAGE}
  4. Daren at SemperFi is looking in to this. edit: I now have a mod in place on my test cart, which appears to work exactly as I wanted it to.
  5. public static function validOrderId($order_id) { if(preg_match('#^[CC]{2}[0-9]{6}-[0-9]{6}-[0-9]{4}$#i', $order_id)) { return true; CC being my prefix
  6. Sorry, I think that I already fixed this. I got halfway through updating the thread and then got called away to a breakdown. It's still sitting on my desktop at work, I did something along the lines if(preg_match('#^, [prefix] {2} [0-9]{6}-[0-9]{6}-[0-9]{4}$#i', $order_id)) {
  7. I forgot that V3 had an issue where the order Id no longer complied with what was coded and there was another edit in admin/orders/index.php. So whilst my edit has prefixed my test order, I am unable to do anything with it as a customer. I assume its this line of code on order.class: public static function validOrderId($order_id) { if(preg_match('#^ [0-9]{6}-[0-9]{6}-[0-9]{4}$#i', $order_id)) { return true;
  8. For anyone else wishing to do this Change $this->_order_id = date('ymd-His-').rand(1000, 9999); to $this->_order_id = "your prefix". date('ymd-His-').rand(1000, 9999); You will need to increase the char length in the database though, as it's currently limed to 18.
  9. keat

    Cart Issues

    stl314, try enabling debugging and post the output on here. Jacob, I'm not familiar with V5, so I don't know if this has debugging.
  10. That's the same string as was in V3. Thanks for this.
  11. keat

    Cart Issues

    what cart version ?
  12. No, each store has it's own database. A nightmare to administer. :-)
  13. I considered this with the V3's but never got anywhere. I found that I could in fact appear to run two URL's from the same database, but never progressed with it. The prefix was modified in gateway.inc.php and would just prefix the order number with a few extra initials. CPO for CrimpsOnline, CTO for CableTiesOnline, went along the lines CTO-170203-105422-1234. We can then tell at a glance that CableTiesOnline sold the item. The web sites are not all 100% identical, one might specialise in CableTies and favour CableTie prices, another in CrimpTerminals favouring terminal prices.
  14. Point well spotted CC6 has an 18 char limitation CC3 was 30.
  15. I'm finally in the process of upgrading all my V3 sites to V6. My V3 sites all had the cart_order_id prefixed with an identifier as to which site generated the order. How would I do this on V6 ? A code snippet would be ideal if possible, that way I don't have to modify any core files.
  16. On this exact subject, I notice that my cheap hosting plan is on PHP 5.6.x, and i'm running a number of V3 sites on there. When I've tried to update my dedicated server above PHP 5.3.29 i run in to issues with the V3 sites on this server. Namely this: Starting in PHP 5.4 htmlspecialchars() and htmlentities() assume charset=UTF-8 by default AND WILL RETURN BLANK IF YOUR INPUT IS NOT VALID UTF-8. Any ideas how my cheap hosts got around this issue ??
  17. keat

    Cart Issues

    what skin is this. ? Have you tried (temporarily) changing the skin ?
  18. Hi Noodleman I have a hosting plan that can be tempremental (those other 3 or 4 sites), hence the reason these could move over at some point. My main V6 site and 3 of our better performing V3 sites are all on a dedicated server. This is the server i'm stuck on 5.3.29. I'm currently (as we speak) creating a copy of one of those performing V3's to see how an upgrade to 6.0.10 goes. I might end up having to look at Al's recomendations though.
  19. My V6 site is currently on 6.0.10 (also PHP 5.3.29), I'd like to trial an upgrade on one of my dummy sites, but 6.1.x requires PHP 5.4. Here's my dilemma, my server has at least 3 x V3 sites, (stuck on PHP 5.3.29) with the possibility of at least 3 or 4 others being moved to it in the future. There's a lot of work involved in updating the V3 sites to V6 due to custom mods and lots of tweaks. Furthermore: I'd have to update all the V3's to V6, before I could consider upgrading PHP to 5.4. Before I could then consider upgrading my current development V6.0.10 site to 6.1.4. Only then, if everything was successful, could I consider upgrading my live V6.0.10 site to 6.1.4 So whilst this forum isn't really for V3, is there a way to upgrade PHP to 5.4 but retain functionality of the V3 sites.. (see reasonings below) Something I posted on another CC forum in Sept 15 Starting in PHP 5.4 htmlspecialchars() and htmlentities() assume charset=UTF-8 by default AND WILL RETURN BLANK IF YOUR INPUT IS NOT VALID UTF-8. "In other words, (as I found after a few days of trouble shooting), anything using a specialhtml character ie something like the squared symbol ( ²), will result in a totally blank entry on the product page. We sell things like cable which might be 32mm². Whilst 32mm² appears in the database, it doesn't appear on the end product page, and would in fact delete the whole line."
  20. This is still ongoing for me, the search function almost ruins the experience if I'm being honest. Maybe the search function should have a drop down, where the customer could choose whether he wants to search by Product Code, Title, Description or take his chances, which is what happens at the moment..
  21. I'm betting that the customer clicked the secure checkout button, then went back and changed his order. This happens to us quite frequently and is a PITA
  22. I'm being badgered by the boss for a fix, does anyone think that this is achievable ?
×
×
  • Create New...