Jump to content

Mort-lemur

Members
  • Content count

    2,405
  • Joined

  • Last visited

  • Days Won

    29

Reputation Activity

  1. Like
    Mort-lemur reacted to Tsimi in Create Account and Order Maker   
    @@ArtcoInc
     
    Hi Malcolm
     
    This is something I was working on a while back and might help you.
     
    admin/orders.php
     
    FIND:
    include(DIR_WS_CLASSES . 'order.php'); ADD BEFORE IT:
    // BOF ORDER DATE if(!empty($_POST["date_purchased"])) { $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']); $date_purchased = tep_db_prepare_input($HTTP_POST_VARS['date_purchased']); tep_db_query(" update " . TABLE_ORDERS . " set date_purchased = '" . tep_db_input($date_purchased) . "', last_modified = now() where orders_id = '" . tep_db_input($oID) . "'"); } // EOF ORDER DATE then add the following code there where you want to show/edit the order date.
    <tr> <td class="main"><strong><?php echo ORDER_DATE; ?></strong>  <FORM method="POST"><input value="<?php echo tep_date_short($order->info['date_purchased']);?>" name="date_purchased" id="date_purchased"> <?php echo tep_draw_button('Update');?></FORM></td> </tr> <script type="text/javascript"> $('#date_purchased').datepicker({ dateFormat: 'yy-mm-dd' }); </script> admin/includes/languages/english/orders.php
    define('ORDER_DATE', 'Order Date:'); As always test this on a local shop before using live. You could add this code somewhere inside the order editor page but I didn't try it there so no clue if it actually works. Inside the orders.php it should work just fine.
  2. Like
    Mort-lemur got a reaction from ArtcoInc in Create Account and Order Maker   
    @@ArtcoInc Hi Malcolm,
     
    On the few occasions I have to do this I edit the dates via phpmyadmin in the orders table - seems to work fine
  3. Like
    Mort-lemur reacted to bruyndoncx in Paypal App - Duplicate Tables - Please confirm   
    Added to tips and tricks
  4. Like
    Mort-lemur reacted to bruyndoncx in Paypal App - Duplicate Tables - Please confirm   
    I don't have the paypal app, but have the same symptoms for a few of my settings.
     
    This sql will list duplucate configuration keys
    use phpmyadmin or similar to run the sql query and find out exactly
     

    select configuration_key, count(*) from configuration group by configuration_key having count(*) > 1
  5. Like
    Mort-lemur reacted to kymation in [Addon} Superfish Categories Box   
    I've uploaded a new version to the usual location. There are now two packages -- the stock osCommerce 2.3.x version and the Bootstrap version.
     
    The Bootstrap version has been rewritten to make for an easier install. You only need to upload the files and install. No file modifications. If you installed the old version on a Bootstrap site you'll have to revert the modified files to your backup (or stock osCommerce).
     
    The new version also uses a new version of Superfish that is designed to work with Bootstrap. It doesn't need all of the hacks and code changes that the old jQueryUI version needed to make it compatible. It's a lot easier to work with.
     
    Regards
    Jim
  6. Like
    Mort-lemur got a reaction from LisaBisa in Paypal app   
    @@LisaBisa I would suggest rather than hardcoding the changes in the paypal app files to fix the cause of the problem, as this may cause more problems down the line
     
    your line in includes/configure.php should look something like:
    define('DIR_FS_CATALOG', '/home/username/public_html/catalog/');
  7. Like
    Mort-lemur got a reaction from gadlol in Quick updates   
    @@badcape You may want to look at AAS by @@gadlol instead - It works fine on 2.3.4 and is very well supported by him
  8. Like
    Mort-lemur got a reaction from altoid in Paypal App - Incorporation of mods in new admin/orders.php   
    next to reinstate the ability to call up order editor to edit the order in detail, the following change adds a button next to the invoice button on a particular orders screen which will take you to the order editor - again this assumes that you had the mod fully embodied prior to installing the paypal app.
     
    in admin/orders.php find (around line 204)
    <div style="text-align: right; padding-bottom: 15px;"><?php echo tep_draw_button(IMAGE_ORDERS_INVOICE, 'document', tep_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $HTTP_GET_VARS['oID']), null, array('newwindow' => true)) . tep_draw_button(IMAGE_ORDERS_PACKINGSLIP, 'document', tep_href_link(FILENAME_ORDERS_PACKINGSLIP, 'oID=' . $HTTP_GET_VARS['oID']), null, array('newwindow' => true)) . tep_draw_button(IMAGE_BACK, 'triangle-1-w', tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action')))); ?></div> replace with:
    <div style="text-align: right; padding-bottom: 15px;"><?php echo tep_draw_button(IMAGE_BUTTON_EDIT, 'document', tep_href_link(FILENAME_ORDERS_EDIT, 'oID=' . $HTTP_GET_VARS['oID']), null, array('newwindow' => true)) .tep_draw_button(IMAGE_ORDERS_INVOICE, 'document', tep_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $HTTP_GET_VARS['oID']), null, array('newwindow' => true)) . tep_draw_button(IMAGE_ORDERS_PACKINGSLIP, 'document', tep_href_link(FILENAME_ORDERS_PACKINGSLIP, 'oID=' . $HTTP_GET_VARS['oID']), null, array('newwindow' => true)) . tep_draw_button(IMAGE_BACK, 'triangle-1-w', tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action')))); ?></div> In admin/includes/languages/english.php
     
    add the following before the final ?>
    define('IMAGE_BUTTON_EDIT', 'Edit Order'); Thats all there is to it
  9. Like
    Mort-lemur got a reaction from altoid in Paypal App - Incorporation of mods in new admin/orders.php   
    First change I made was to re-install the admin comments bar, the change detailed below is where I personally like the bar to appear, you may prefer it in a different position. This also assumes that you had the mod fully embodied prior to installing the paypal app.
     
    In admin/orders.php find (around line 343)
    <?php echo tep_draw_form('status', FILENAME_ORDERS, tep_get_all_get_params(array('action')) . 'action=update_order'); ?> add the following code immediately after:
    <!-- Comment Toolbar 3.0 bof //--> <tr> <td><?php include ("comment_bar.php"); ?></td> </tr> <!-- Comment Toolbar 4.0 eof //--> Simples!
  10. Like
    Mort-lemur reacted to gadlol in Alternative Administration System: Categories/Products   
    Hello osCommerce users.
     
    AAS is now "GitHubed". You can find the project here! You are free to report any issues e.t.c.
     
    Plus I give you for free an AAS module "Products Attributes". You can get it http://addons.oscommerce.com/info/9135
    With that module you can easily submit and manage any product's attribute through an easy menu. Search for the product, and jump directly to the innovative Attribute Manager Screen.
     
    John
  11. Like
    Mort-lemur reacted to Harald Ponce de Leon in Looking For Testers: New PayPal App   
    Here are some screenshots of the App :)
     

     

     

  12. Like
    Mort-lemur got a reaction from chrispopp8 in Cross Sell for 2.3.1 (X-Sell)   
    Yes it is but there are changes needed - have a look at page 2 of my post here: http://forums.oscommerce.com/topic/395359-modding-up-a-new-2334-install-documented/
  13. Like
    Mort-lemur got a reaction from bruyndoncx in Wishlist for 2.3 - Last Problem   
    @@AngusD Rene - Thank you, that fix worked a treat - all working now.
     
    Thank You
  14. Like
    Mort-lemur reacted to AngusD in Wishlist for 2.3 - Last Problem   
    Hello,
     
    the problem is the missing "public_id" in the form.
     
     
    Find the "tep_draw_form"-line and change it to:
    <?php echo tep_draw_form('wishlist_form',tep_href_link($PHP_SELF, 'public_id='. (int)$public_id, 'SSL')); ?> Could work. No promisses.
    AD
  15. Like
    Mort-lemur reacted to acidvertigo in Wishlist for 2.3 - Problem with emails   
    A new version of this contrib has been updated today. Do you have the latest version?onvanilla 2.3.4 se ems that works
  16. Like
    Mort-lemur reacted to Harald Ponce de Leon in Paypal Express - Seen New Error - Help Please   
    I just had a look at her files and there was a customization performed in currencies->calculate_price() that rounded the price to 10 decimal points instead of the currency decimal points value.
     
    That would explain the rounding issue.
  17. Like
    Mort-lemur got a reaction from kymation in Paypal Express + MZMT Shipping + Defined Shipping Zones - Urgent   
    OK this is now resolved thanks to help from @Harald Ponce de Leon, for anyone else who finds that customers are being shown a message when using paypal express that your store does not ship to their address please note the following:
     
    Ensure that your shipping zones set up in your store match those that paypal uses.
     
    In my case for example, I had a shipping zone called "Lothian" and the customers registered paypal address was "East Lothian" therefore paypal could not return shipping data from my store and returned the "Does not ship to your address" error.
     
    I guess that this would apply to other countries as well, such as Irish Counties, French Departments and US States
     
    And of course paypal does not seem to have a list of counties than can be used, you need to grab this from the paypal change address page on your paypal account.........
  18. Like
    Mort-lemur reacted to kymation in [Addon] Shopping List   
    This addon provides a Shopping List that your customers can use to keep track of items that they want to reorder periodically, or that they want to save for a future order. It was designed for an osCommerce store that sells consumables, but it works with any type of business that wants to increase repeat business.
    Your customers can create multiple shopping lists, up to a maximum that you set in your store's Admin. Products can be added to a shopping list from a product page or from the shopping cart. Any product in a shopping list can be added to the cart, or the whole list can be added at one time. There are a full set of features that allow your customer to create, modify, delete, and view their shopping lists.

    The tooltips used here are a backport from Bootstrap. I'll modify this to use the real Bootstrap tooltips when osCommerce switches to Bootstrap.
     
    Screenshots:
    Add a product to an existing shopping list.
    Add a product to a new shopping list - step one.
    Add a product to a new shopping list - step two.
    After a product is added to a shopping list (confirmation)
    The shopping list page.
     
    Here's the code.
     
    Regards
    Jim
  19. Like
    Mort-lemur reacted to Harald Ponce de Leon in Paypal Std & Paypal Express   
    None whatsoever :) PayPal Express Checkout is preferred over PayPal Payments Standard, and Express Checkout can also be used with Log In with PayPal.
     
    PayPal Express Checkout also handles guest checkouts nicely - don't forget to enable the Account Set Password content module though otherwise a random generated password will be emailed to the customer.
  20. Like
    Mort-lemur got a reaction from Tsimi in [Contribution] Discount Coupon Codes   
    Hi,
     
    I could never get any of the discount coupon systems to work the way I wanted them - all of them seem very complex and some have issues with certain payment processors, also Google shopping banned me for selling Discount Coupons! - so I went about this a different way:
     
    Paypal itself has the ability to generate gift vouchers, semi-customised to your design, that can be emailed direct to the recipient or printed and mailed by the buyer.
     
    All you need to do is generate the code on paypal, add the code to add the graphic to your site and you are up and running - No need to edit any of the code on your site and the code is entered on the paypal payment page and not your site page.
     
    Simples :)
  21. Like
    Mort-lemur got a reaction from gadlol in Alternative Administration System: Categories/Products   
    @@gadlol Thanks John .... indeed I did find a special with a price of £0.00 although it was inactive.
     
    Deleted it now so all should be good.
     
    Many Thanks
  22. Like
    Mort-lemur reacted to De Dokta in [CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo   
    Very friendly of Hildegard that she has posted my approach here. But she has overlooked a correction which I have added in the German Forum.
    The last two functions should correctly rather be like this:
     

    * Function to fetch the last insertID * @[member='author'] Bobby Easland * @version 1.0 * @[member='Return'] integer */ function InsertID() { return mysqli_insert_id($this->link_id); } /** * Function to free the resource * @[member='author'] Bobby Easland * @version 1.0 * @[member='param'] resource $resource_id * @[member='Return'] boolean */ function Free($resource_id){ return mysqli_free_result($resource_id); } # end function
     
    Regards
    J.J.
  23. Like
    Mort-lemur reacted to weinhexe in [CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo   
    Hello,
     
    De Dokta, a member of the German osc support forum rewrote a part of the seo.class.php:
     
    Lines 63 - 156:
     

    function SEO_DataBase($host, $user, $db, $pass){ $this->host = $host; $this->user = $user; $this->db = $db; $this->pass = $pass; $this->ConnectDB(); //// $this->SelectDB(); } # end function /** * Function to connect to MySQL * @[member='author'] Bobby Easland * @version 1.1 */ function ConnectDB(){ $this->link_id = mysqli_connect($this->host, $this->user, $this->pass, $this->db); if (!$this->link_id) { die('Connect Error (' . mysqli_connect_errno() . ') ' . mysqli_connect_error()); } } # end function /** * Function to select the database * @[member='author'] Bobby Easland * @version 1.0 * @[member='Return'] resoource * function SelectDB(){ return mysqli_select_db($this->link_id, $this->db); } # end function /** * Function to perform queries * @[member='author'] Bobby Easland * @version 1.0 * @[member='param'] string $query SQL statement * @[member='Return'] resource */ function Query($query){ $result = mysqli_query($this->link_id, $query); return $result; } # end function /** * Function to fetch array * @[member='author'] Bobby Easland * @version 1.0 * @[member='param'] resource $resource_id * @[member='param'] string $type MYSQL_BOTH or MYSQL_ASSOC * @[member='Return'] array */ function FetchArray($resource_id, $type = MYSQL_BOTH){ if ($resource_id) { $result = mysqli_fetch_array($resource_id, $type); return $result; } return false; } # end function /** * Function to fetch the number of rows * @[member='author'] Bobby Easland * @version 1.0 * @[member='param'] resource $resource_id * @[member='Return'] mixed */ function NumRows($resource_id){ return @mysqli_num_rows($resource_id); } # end function /** * Function to fetch the last insertID * @[member='author'] Bobby Easland * @version 1.0 * @[member='Return'] integer */ function InsertID() { return mysqli_insert_id(); } /** * Function to free the resource * @[member='author'] Bobby Easland * @version 1.0 * @[member='param'] resource $resource_id * @[member='Return'] boolean */ function Free($resource_id){ return @mysqli_free_result($resource_id); } # end function
     
    De Dokta tested his modification on php 5.4, I tested it on php 5.5 and it seems to work correctly.
     
    Regards
    weinhexe
  24. Like
    Mort-lemur reacted to npn2531 in Mail Manager   
    If you can see the page you are on in the address bar when looking at the blank screen you can use echo statements to find the error. Just open up the page that is blank and then starting from just below the opening <?php mark, type in several places down the page something like:
     
    echo 'line 2'; or echo 'line 50';
     
    As long as you haven't placed them within a 'if then' statement, then the echo statements you add above the error will print on the screen and the echo statements below the error will not print, and you can narrow down exactly where the error is.
  25. Like
    Mort-lemur reacted to gadlol in Alternative Administration System: Categories/Products   
    You're welcome...
     
    P.S.
    Anyone who wants to test 0.2.1 before it gets released, must contact me at my email address or through skype..
×