Jump to content

disco_ii_disco

Member
  • Posts

    115
  • Joined

  • Last visited

Everything posted by disco_ii_disco

  1. The third-party skin is one I wrote. Works perfectly on 5.2.14 - and have only made cosmetic changes for the new upgrade. Would be grateful to hear your findings, when you get a chance.
  2. Thank you for your reply. When at the addressbook, the address input fields are not already filled in. (Only the first and last name fields). When at the addressbook, the description is autofilled as 'Billing Address' but neither of the 'Billing Address' or 'Default Delivery Address' boxes are autochecked. When looking at the database, only the delivery address is saved. 'Default' has a value of 1 and 'Billing' has a value of 0. After saving a new address from the addressbook, the address is saved and the 'Default' and 'Billing' fields are correctly changed to the new address, if appropriate. I was hoping to be able to move away from hacking around with the core code with this upgrade!
  3. HI all, I have been working on upgrading my store from 5.2.14 to 6.1.14 and I am now in the testing phase. However, when I submit an order and: choose the delivery address to be the same as the invoice address enter a password and choose to register an account at the same time ... I am then taken to the address book page to add a billing address. Cubecart is not recognising that the billing address is the same and, when looking in the database, only the delivery address is saved. Does this sound like a Cubecart issue or could something be missing from my skin (something that needs to be present in new versions)? I have already searched the foundation skin for clues - but all the inputs seem the same.
  4. I built my own 'add order screen' which searches after each piece of data is entered. I find that taking a customer's telephone number first works best - as easy to mis-spell an email address. So many customers don't mention that they have ordered before - or forget they have ordered before! This approach saves us hours - it now takes an average of 2 minutes for me to take an order.
  5. Is this still happening on the new version of Cubecart? I have experienced this problem for years on my older version of Cubecart. For us: it sometimes happens when a guest customer chooses a delivery option for a quote, which is then no longer available in the dropdown once they have entered their delivery address. e.g. "UK Courier delivery" for overseas customers or "Free delivery" (orders over £75) if a customer deletes something out of their basket after selecting this option. I am about to upgrade to the latest version and assumed this had been fixed. I will file a bug report if not.
  6. I would imagine this code snippet could be adapted for this purpose: https://www.cubecart.com/extensions/code-snippets/minimum-order-quantity I am going to use it to make a minimum and maximum order quantity mod.
  7. I have just done a similar thing and the tweak you require is in the classes/seo.class.php file. Around line 47, remove the.html text from: private $_extension = '.html'; Or even better though, add the following code snippet in admin > manage hooks > code snippets. <?php $this->_extension = ''; ?> with the trigger set to: class.seo.construct
  8. Customers are receiving a blank page after payment on my v5 store so I am trying to locate the payment confirmed page too. Where is this page generated: /index.php?_g=rm&type=gateway&cmd=process&module=SagePay&cart_order_id=????
  9. DityButter: I think you will have make a small change to classes/sanitze.class.php around line 31. I have: private static $exempt = array('description', 'offline_content', 'doc_content','content_html', 'content_text', 'cat_desc', 'copyright', 'maillist_format', 'store_copyright', 'htaccess-data', 'NotificationData', 'php_code'); This offers a more helpful error message but I am now working on a much better fix. I do not want a customer to receive any error message if they have entered valid data. Error messages = abandoned baskets.
  10. Hi Toucan, thanks for your reply. I must admit, I was a little confused when posting my original question. Looking in the database, I thought customer type 2 was a registered user and type 1 was a guest! I made the change you suggested but it has not solved the problem entirely. The situation I have now: A GUEST (or ghost) user CAN place another order as a GUEST A GUEST (or ghost) CAN register during the checkout - when placing a second order - but they do not automatically get logged in so get re-directed to the log in page I have traced it so far to around line 1084 of cubecart.class.php // Log in if (isset($_POST['register']) && $_POST['register']==1 && !$GLOBALS['user']->authenticate($_POST['user']['email'], $_POST['password'], false, false, false, false)) { //chris debugging //$GLOBALS['gui']->setError('Login error - redirection prevented'); httpredir('index.php?_a=login'); } A REGISTERED user can not re-order as a GUEST so instead I give them this more helpful message: $error_messages[] = 'This email address is already in use. Please <a href='index.php?_a=login'>log in</a> or use this <a href='index.php?_a=recover'>forgot password link</a>';
  11. Have just tested the process on my old site and a guest can then register at a later date - without throwing up an error. It hasn't been in an issue in 10 years of trading so will make my new site act like this too. (I'm struggling with the ajax solution at this moment in time) This is too big of an issue to not fix before launching my store. (I have around 15,000 guest customers who would find it very difficult to reorder!)
  12. When shopping online with an electrical store the other day, the site asked me for my e-mail address first. It was then able to determine that I already had an account (which I didn't realise) and gave me the options to log in or checkout as a guest. Very easy process. If it had thrown up errors - saying I couldn't use that e-mail address - I would have probably left the site! Yes, don't want other users hi-jacking a guest users' account so the "recover password" feature could be used. It doesn't work at the moment for guest users but could easily be changed. The passwordRequest function - line 562ish user.class.php - just looks for customers of type 1 at the moment. I think the best temporary solution is to create an ajax look up on the customer e-mail field (I have moved this to be the first field in the checkout.confirm page). If the e-mail address is in the database a prompt to log in appears. (Could maybe hide the password boxes if a guest too). Have done the php part no problem, but am not very good with javascript/ajax/jquery!
  13. I am working on the latest version of Cubecart so no, hasn't been fixed in 5.2.14. I am going to dive in and try to fix it - I really don't want error messages like this putting customers off from completing their purchase (especially when it won't be obvious what they have done wrong)!
  14. Hi all, Close to launching my new site but have just found what I think may be another bug. If you place an order as a guest and then try to register at a later date, you get the error message: The following errors were detected: Invalid Username and/or Password This could be quite annoying. Is there a reason why guests shouldn't be able to register or shall I go ahead and make changes so that they can? Cheers, Chris
  15. Brilliant. Would be a great feature to be built in to Cubecart, It saves me so much time. I no longer have to keep checking the order screen for new orders, I get a simple "ping" on my phone. You can set quiet times too - so you don't get the notifications during the evening or on days off. Keep up the good work!
  16. Sorry, couldn't figure out a fix to this the other day - which is why I posted the question. Came at it with a different angle this evening and fixed in 2 seconds. Added `pendingEmailSent` as a tiny integer field in the `order_summary` table; Edited this code (near to the bottom of modules/gateway/print_order_form/gateway.class.php); //CHRIS EDIT - check if pending e-mail has already been sent if ($order_summary['pendingEmailSent']==0) { Mailer::getInstance()->sendEmail($order_summary['email'], $content); //CHRIS EDIT - update e-mail sent status so we don't resend another e-mail $GLOBALS['db']->update('CubeCart_order_summary', array('pendingEmailSent' => 1), array('cart_order_id' => $order_summary['cart_order_id'])); }
  17. Have been asking for a lot of help recently with various issues - now time to give something back!! On my old Cubecart 4 store, I got push notifications to my phone by signing up with Pushover (for literally a couple of quid) and then doing a bcc on the order processing e-mail to a special pushover e-mail address. For my new Cubecart 5 store I have a slightly more elegant solution which sends order values to my phone. I added this code to class/order.class.php around line 250 (after the order confirmation e-mail has been sent to customer): //CHRIS EDIT - Pushover notifications curl_setopt_array($ch = curl_init(), array( CURLOPT_URL => "https://api.pushover.net/1/messages.json", CURLOPT_POSTFIELDS => array( "token" => "YOURPUSHOVERTOKEN", "user" => "YOURPUSHOVERUSERID", "message" => "Order: ".$this->_order_summary['total'].". Customer: ".$this->_order_summary['last_name'].". Postcode: ".$this->_order_summary['postcode_d'], ), CURLOPT_SAFE_UPLOAD => true, )); curl_exec($ch); curl_close($ch); //END CHRIS EDIT .. and it worked first time! Cheers, Chris
  18. Just wondered if anyone else sees this as a problem, or should I not waste my time on this one?
  19. Hi all, Just fixing various bugs in the checkout system and just need some advice on this one: If you choose print order form as the payment option, you get a confirmation e-mail. If you then refresh the page you get another e-mail. Would I be right in thinking Cubecart should check if an e-mail has already been sent before sending another one. I could add a `e-mailed` field in the `order_summary` table then perform a look-up against this column before sending the e-mail. Or does anyone else have any brighter ideas?
  20. I don't have a copy of Cubecart 3, but in Cubecart 4 (which should be similar) you could edit the value in the onclick event of the "shipToday" checkbox. In Cubecart 4 you can find it in admin/sources/orderBuilder.inc.php around line 500: <input name="shipToday" type="checkbox" id="shipToday" value="checkbox" onclick="findObj('ship_date').value = '<?php echo strip_tags(date($config['dateFormat'], time()+$config['timeOffset'])); ?>';" />
  21. With the new store I am hoping to drastically reduce phone calls by making things as foolproof as possible. We currently take so many phone calls having to talk customers through the checkout; telling them where to find product codes etc. etc. We get made up company names entered in the company box (becuase people don't want to leave it blank)! This causes issues with deliveries. We get people cramming all their address in the box that says "address" rather than also using the 2nd box - which doesn't have a label! We get Aberdeenshire entered constantly as a county because people change the Country and the select box details change. Shouldn't happen in CC5 but I have moved the country to be the first option none the less.
  22. Can anyone offer any opinions on which of these is better? Do the placeholders help customers enter the correct information or will they just confuse some of my customers??!
  23. Many thanks, I was thinking content.receipt.php was the actual printed receipt. Silly me!
  24. Just a quick one, does any one know which skin template is used for the index.php?_a=vieworder&cart_order_id=blahblahblah page? Have spent too long searching for it! Need to make a few alterations: Customer's can print a receipt for a pending order from this page - so that definitely needs removing. Have also found that, when customer's get redirected to this page after cancelling payment process, they get the message "Many thanks for your order, your order will be probably be updated to processing shortly"!! I use SagePay so will have to look in to this bug with them but for now I'll change the message for orders that are still pending. Total tax is showing as £0 because vat is included in my prices - therefore I will do a reverse calculation to show vat included.
  25. Cracked it. My categories now sort in a logical order - with "in stock" products being shown first. And the normal sort function remains intact. I made the adjustment that you suggested BSmither, then made this change to the getProductData() function: if (isset($order['price']) && $GLOBALS['config']->get('config', 'catalogue_sale_mode')) { if(!empty($page) && is_numeric($page)){ $query = 'SELECT *, IF(`sale_price` > 0, `sale_price`, `price`) AS price_sort FROM '.$GLOBALS['config']->get('config', 'dbprefix').'CubeCart_inventory WHERE '.$where.' ORDER BY `price_sort` '.$order['price'].' LIMIT '.$per_page.' OFFSET '.(int)($page-1)*$per_page; } else { $query = 'SELECT *, IF(`sale_price` > 0, `sale_price`, `price`) AS price_sort FROM '.$GLOBALS['config']->get('config', 'dbprefix').'CubeCart_inventory WHERE '.$where.' ORDER BY `price_sort` '.$order['price']; } $result = $GLOBALS['db']->query($query); //CHRIS edit - 29/11/14 } elseif (isset($order['stock_level'])){ $result = $GLOBALS['db']->select('CubeCart_inventory', false, $where, "`CubeCart_inventory`.`stock_level`=0,`CubeCart_inventory`.`popularity` DESC", $per_page, $page); } else { $result = $GLOBALS['db']->select('CubeCart_inventory', false, $where, $order, $per_page, $page); }
×
×
  • Create New...