Jump to content

Mort-lemur

Members
  • Content count

    2,398
  • Joined

  • Last visited

  • Days Won

    29

Reputation Activity

  1. Like
    Mort-lemur got a reaction from radhavallabh in Recover Cart Sale for CE   
    will probably need a change to ensure you only email people who have agreed to newsletters - GDPR etc............ I stopped using recover carts for this reason.....
  2. Like
    Mort-lemur reacted to ruden in Paypal not registering Customer Name   
    It seems that given_name and family_name is no longer working
    My fix
    In includes/modules/content/login/cm_paypal_login.php
    After
    $force_login = false; Add
    // fixme if (!isset($response['given_name']) && !isset($response['family_name'])) { //code to extract firstname and lastname from name $name = explode(' ', $response['name']); $response['given_name'] = tep_db_prepare_input($name[0]); $response['family_name'] = tep_db_prepare_input((isset($name[count($name)-1]) ? $name[count($name)-1] : '')); } Before
    tep_db_perform(TABLE_CUSTOMERS, $sql_data_array); Add
    // fixme if ($this->hasAttribute('date_of_birth') && isset($response['birthday']) && !empty($response['birthday'])) { $sql_data_array['customers_dob'] = tep_db_prepare_input($response['birthday']); }  
  3. Thanks
    Mort-lemur got a reaction from oscMarket in Paypal not registering Customer Name   
    @wHiTeHaT No I dont seem to have problems like you mention, but my customers seem to all have quite short names...   
     
     
     
  4. Like
    Mort-lemur got a reaction from oscMarket in Paypal not registering Customer Name   
    I have noticed recently that an increasing number of customers are not having their name recorded when either logging in with paypal or checking out using paypal express.
    The name is captured in the Shipping Address and Billing Address  but not under the Customer Address.
    Has something changed recently ?
    Im using 2.3.4 with the latest version of the paypal app and paypal express.
    attached is a screenshot showing the blanks from today and part of yesterday.
    Any ideas?
    Many thanks

  5. Like
    Mort-lemur got a reaction from vampirehunter in More talk about the future of osCommerce   
    @@burt I just think that everyone wants 2.3.4BS to be downloadable from the OSC site as the latest official version
  6. Like
    Mort-lemur got a reaction from negara in Happy Holidays!   
    Happy Christmas Everyone and Hope you all have a great year in 2017.
     
    Take a few seconds to remember those no longer with us, then raise a glass to them and have a great time, Remember we may be the ones not here this time next year!!!
     
    And stop being so miserable - where are all the xmas hats this year ???
  7. Like
    Mort-lemur reacted to Harald Ponce de Leon in osCommerce Online Merchant v2.4.0 Joli Beta   
    We're extremely proud to announce the next osCommerce Online Merchant release series is rolling out now starting with the beta release of v2.4.0 Joli! This is a developers release that has a rapid weekly release schedule to finalize the framework API and to build on to the v2.x series with quality production ready releases.
     
    v2.4.0 Joli Beta includes the community led effort by Gary Burton to modernize the frontend with a responsive Bootstrap template called Sail. This not only aims to improve the customer experience on the site frontend to encourage and improve sales, but also on the site backend with a more user intuitive interface to work with the business side of sales.
     
    The OSC\OM framework that was introduced in the v3.0 developer series has been backported and invites developers to start migrating their add-ons to the new self-contained App infrastructure that not only allows for more secure and easier installations of third-party software, but also online installations and updates through the Administration Dashboard (coming in a later beta release). This involves a tight integration into our new App Marketplace that will be launched in the near future.
     
    v2.4.0 will be the only public release of the v2.4 beta series - all weekly updates during the beta phase will be delivered through the online update feature to get the online update feature tested on as many server configurations as possible.
     
    There are still a lot of changes planned during the beta phase that will break the framework API and is the reason for the beta release series. All changes between releases will be documented to keep developers up-to-date and to help them finalize their Apps for the production ready release.
     
    We're committed to Open Source and are continuing our goal of moving from the GPL license to the MIT license. This is the first release in the v2.x series to be completely licensed under the MIT license.
     
    osCommerce Online Merchant v2.4.0 Joli Beta can be downloaded at:
     
    https://www.oscommerce.com/Products
     
    The PayPal for osCommerce Online Merchant App is bundled with this release. The Braintree for osCommerce Online Merchant App can be downloaded separately at:
     
    https://apps.oscommerce.com/?Download&paypal&Braintree&2_4_0
     
    It will be possible to install and upgrade Apps directly in the Administration Dashboard in an upcoming beta release.
     
    Documentation for this release series is available at:
     
    https://library.oscommerce.com/Online&oscom_2_4
     
    Discussions on this release series can be found at:
     
    http://forums.oscommerce.com
     
    Known issues and bug fixes can be found at:
     
    https://github.com/osCommerce/oscommerce2/issues
     
    An online demonstration of v2.4.0 Joli Beta can be found at:
     
    https://demo.oscommerce.shop/24/
     
    We’d like to thank the community for helping us out with the development of this release and for their continued dedication and support, and especially thank Joli for the good times he shared with all of us in the community. This release series is dedicated to you pal, you will always be remembered.
  8. Like
    Mort-lemur got a reaction from multimixer in 2334BS - Enhanced Contact Us   
    @@burt Does that mean Im officially "Normal" ?? (w00t)
  9. 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.
  10. 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
  11. Like
    Mort-lemur reacted to bruyndoncx in Paypal App - Duplicate Tables - Please confirm   
    Added to tips and tricks
  12. 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
  13. Like
    Mort-lemur got a reaction from 14steve14 in Gold / Edge - Is this post still good?   
    Thanks henry, That should clarify it for new members of the community who may be considering using OSC
     
    My view:
    OSC Great product Developed over years by a great community the community is helpful and caring and tolerant Ideas and suggestions can be bounced around The Reality?:
    OSC is a Great Product (although the greatest is well hidden and unofficial - which is the major moan of us winers) The community is shrinking - many great people have left or been thrown out? The community in some cases is now like a wolves hunting ground where people with limited php skills are made to feel tiny Ideas and suggestions are now (in my view) frowned upon - after all what do we, the users know about what we need? You say this is not a democracy? Look around the world - how many non democratic countries do well?
  14. Like
    Mort-lemur got a reaction from 14steve14 in Gold / Edge - Is this post still good?   
    Thanks Henry,
     
    But just had to have a say, because as well as wining, another of my flaws is that I have never been able to stand by and watch bullies intimidate people
  15. Like
    Mort-lemur got a reaction from katapofatico in Upcoming Changes   
    Hello....
     
    First this is meant to be a positive comment from me - so please read it as such....
     
    Will this be the 2.4 standard of OSC when completed? If not will it be another #community version that whilst it is developed and supported on the #community forum is not available as an "official" osc download? but lives instead on GitHub
     
    Is it not time to bite the bullet and agree that 2.3.4BS is the current "offical" version and that this new development that you plan out above will be the new 2.4BS version the project is aiming towards?
  16. Like
    Mort-lemur got a reaction from vampirehunter in More talk about the future of osCommerce   
    @@burt I just think that everyone wants 2.3.4BS to be downloadable from the OSC site as the latest official version
  17. Like
    Mort-lemur got a reaction from vampirehunter in More talk about the future of osCommerce   
    @@burt I just think that everyone wants 2.3.4BS to be downloadable from the OSC site as the latest official version
  18. Like
    Mort-lemur got a reaction from vampirehunter in More talk about the future of osCommerce   
    @@burt I just think that everyone wants 2.3.4BS to be downloadable from the OSC site as the latest official version
  19. Like
    Mort-lemur got a reaction from diannecl in PayPal App for osCommerce Online Merchant   
    Started new thread here: http://forums.oscommerce.com/topic/398913-paypal-app-incorporation-of-mods-in-new-adminordersphp/
     
    once I can get back on desktop pc I will post the changes I have made so far
  20. 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
  21. 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/');
  22. Like
    Mort-lemur reacted to burt in 2.3.4BS - An Idiots Guide...   
    http://getbootstrap.com/components/#navbar-fixed-top
     
    Should give all the info you need...
  23. Like
    Mort-lemur reacted to Tsimi in Wish List for osC 2.3.4 BS GOLD   
    @@Dan Cole
     
    Hi Dan
     
    Thanks for the input. :thumbsup:
    Yeah I think so too. Did more research on that print_r matter and it seems like this is mostly used to debbug or test code.
    Probably forgotten by the previous coder. I didn't delete it just deactivated it with // just in case.
    I tested all functions that I can think of and the wish list works just fine on my local and real server now.
     
    I repacked everything and uploaded it to the addons area. This includes the bug fix 1 and 2 and small adjustments to the wishlist.php code.
     
    http://addons.oscommerce.com/info/8665
     
  24. Like
    Mort-lemur reacted to PupStar in How to build a content module   
    This brief guide is for anyone who wants to make their own content module.
     
    The code below shows how to make a 'Call to Action' module as inspired by the template made by Gary
     
    http://www.template.me.uk/responsive-saul/index.php
     
    This particular call to action module displays a checkout message in the header when there are products in the shopping cart prompting the user to finish their order.
     
    Step 1.
    Create a file in catalog/includes/modules/content/header called cm_header_call_to_checkout.php and add the following code to it:
    <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ class cm_header_call_to_checkout { var $code; var $group; var $title; var $description; var $sort_order; var $enabled = false; function cm_header_call_to_checkout() { $this->code = get_class($this); $this->group = basename(dirname(__FILE__)); $this->title = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_TITLE; $this->description = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_DESCRIPTION; if ( defined('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS') ) { $this->sort_order = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER; $this->enabled = (MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS == 'True'); } } function execute() { global $PHP_SELF, $cart, $currencies, $HTTP_GET_VARS, $request_type, $currency, $oscTemplate; $content_width = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH; if ($cart->count_contents() > 0) { $call_to_checkout .= '<div class="alert alert-danger text-center call_to_checkout" role="alert">' . sprintf(TEXT_CALL_TO_CHECKOUT, $cart->count_contents()) . '  ' . tep_draw_button(IMAGE_BUTTON_CALL_TO_CHECKOUT, 'fa fa-thumbs-o-up fa-lg', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary', NULL, 'btn-success') . '</div>'; }else{ } ob_start(); include(DIR_WS_MODULES . 'content/' . $this->group . '/templates/call_to_checkout.php'); $template = ob_get_clean(); $oscTemplate->addContent($template, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS'); } function install() { tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Call to checkout Module', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS', 'True', 'Do you want to enable the call to checkout Box content module?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Width', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH', '4', 'What width container should the content be shown in?', '6', '1', 'tep_cfg_select_option(array(\'12\', \'11\', \'10\', \'9\', \'8\', \'7\', \'6\', \'5\', \'4\', \'3\', \'2\', \'1\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); } function remove() { tep_db_query("delete from configuration where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER'); } } Step 2.
    Create a file in catalog/includes/modules/content/header/templates called call_to_checkout.php and add the following code to it:
    <div class="header col-sm-<?php echo $content_width; ?>"> <?php echo $call_to_checkout; ?> </div> Step 3.
    Create a file in catalog/includes/languages/english/modules/content/header called cm_header_call_to_checkout.php and add the following code to it:
    <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ define('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_TITLE', 'Call to Checkout'); define('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_DESCRIPTION', 'Adds a call to checkout action into the Header Area of your site.'); Step 4.
    Add the following to catalog/includes/languages/english.php
    define('TEXT_CALL_TO_CHECKOUT', '<i class="fa fa-flag fa-lg"></i>  You have %s item(s) in your shopping basket, click to proceed through the checkout'); Then all you need to do is go to your admin and install the module, select the width and the sort order
     
    Hopefully this will give people ideas on how to create further content modules.
     
    Mark
  25. 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
×