Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Psytanium

Members
  • Posts

    531
  • Joined

  • Last visited

  • Days Won

    4

Reputation Activity

  1. Like
    Psytanium got a reaction from arpo in Demo backend design improvements   
    Hi,
    First time to check the OSC4 demo, really interesting features and integrations, can't wait to explore the core structure and codes.
    But i want to add my comment on the backend design / UI, this need real improvement, I suggest you change the colors, reduce text and buttons sizes, align the interface elements, etc...
    Good luck
  2. Like
    Psytanium reacted to osCommerce-Official in Demo backend design improvements   
    Many thanks for your feedback! We'll consider it. 
  3. Like
    Psytanium reacted to matei68 in [Addon] Facebook Pixel   
    Hello.
    Anyone did the implemetation for Facebook Conversion api with this pixel module?
    Or is somewhere a conversion api addon for oscommerce?
    Thank you!
  4. Like
    Psytanium reacted to Jack_mcs in HoneyPot Captcha   
    Then all I can think of is that you didn't make the correct changes in the files. Please compare your files with the ones in the ChangedFiles_Frozen_and_V234 directory, or even use one of those for a quick test.
    Also, having the "Email Addresses Allowed" and "URL's Allowed" options set to true prevents the code from stopping most spam. I suggest you change to false and then try sending an email from your contact us page with an email address or url in the body. If the email isn't blocked, then there is something wrong in your installation and troubleshooting the contact page will be much easier. If it does work, then it means there is a mistake in the create account file.
  5. Thanks
    Psytanium reacted to Jack_mcs in Google XML Sitemap SEO   
    Please try this. In the googlesitemap/index.php file, change this line
    if (defined('SEO_URLS') && SEO_URLS == 'true' || defined('SEO_ENABLED') && SEO_ENABLED == 'true' ) { to
    if (false) {  
  6. Like
    Psytanium reacted to Dan Cole in Newsletters & Subscribers OSC 2.3   
    I think I'm using a real hacked up version of this on a responsive version of osC.  I use a double opted in subscription routine so I don't have this issue but you can probably add some thing like Jack's new HoneyPot Captcha add-on to prevent bots from subscribing.   I think you'll find his code to be fairly easy to add to most forms.  If you are interested in taking a look you'll find it here.
    Dan   
  7. Thanks
    Psytanium reacted to burt in ULTIMATE Seo Urls 5 - by FWR Media   
    It is telling you that sometimes, for unknown reason...
    $text_array is not an array.  A foreach therefore...cannot work.
    Try this;
    foreach ( (array)$text_array as $key => $text ) { Which forces $text_array as an array.
  8. Like
    Psytanium reacted to John W in ULTIMATE Seo Urls 5 - by FWR Media   
    @Psytanium  If this is your live site, you really shouldn't output errors to the screen.  Send them to a file that you can check.
  9. Like
    Psytanium reacted to multimixer in Make a copy of a shipping module to use separate   
    Did you add a "_" into the module name, like zone_1.php and class zone_1 ?
     
    Change it to a name like zone1.
     
    Just a possible issue
  10. Like
    Psytanium reacted to kymation in [Contribution] Products Specifications   
    That will work in most cases. It may fail if you have a GET parameter that is being changed, so that you end up with both the old and new values. I would spend some time testing this before using it in a live store.
    Regards
    Jim
     
  11. Like
    Psytanium reacted to Cary in Google XML Sitemap SEO   
    Anyone get Google XML Sitemap to work with SEO URLs 5? XML links are not SEO URL formatted.
  12. Like
    Psytanium reacted to Jack_mcs in Google XML Sitemap SEO   
    No, that isn't necessary. Once the search engines are aware of the maps they will look at them automatically. Just be sure you have added them to your google and Bing webmaster accounts. But if you want to click on the links, it won't hurt anything.
  13. Like
    Psytanium reacted to raiwa in Optional Related Products, Version 4.0   
    Hello @@Psytanium,
     
    SOrry this is not yet possible from the admin page.
    However you could filter (search) by product ids/ranges in the database table and then delete multiple items.
     
    rgds
    Rainer
  14. Like
    Psytanium reacted to ecommunlimited in Google XML Sitemap SEO   
    @@Psytanium
     
    The sitemapindex.xml list all of the other sitemaps so that is what is recommended to be turned into google and the other search engines.
     
    Also, you should point to it in your robots.txt file as well.
     
    For http protocol:
    sitemap: http://your-domain-name.com/sitemapindex.xml
     
    For https protocol:
    sitemap: https://your-domain-name.com/sitemapindex.xml
     
    Take care
    Bill
  15. Like
    Psytanium reacted to Jack_mcs in Google XML Sitemap SEO   
    @@Psytanium William is correct about the sitemapindex.xml being the only one you need to add. However, if there are errors, they are not easily found just with it. For that reason, I suggest adding all of the ones you want to use. If errors occur, they will show in those files. Also, google will show how many of the links are listed. This isn't anything you use but it is nice to see that they are working on the site.
  16. Like
    Psytanium reacted to Jack_mcs in Google XML Sitemap SEO   
    Something in your account is preventing the index.php from loading. Rename it to something else and then use the url with that new name.
  17. Like
    Psytanium reacted to raiwa in ULTIMATE Seo Urls 5 - by FWR Media   
    Hello @@Psytanium,
     
    Just replace your complete tep_redirect function, but keep this part of your original function:
        if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page       if (substr($url, 0, strlen(HTTP_SERVER . DIR_WS_HTTP_CATALOG)) == HTTP_SERVER . DIR_WS_HTTP_CATALOG) { // NONSSL url         $url = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG . substr($url, strlen(HTTP_SERVER . DIR_WS_HTTP_CATALOG)); // Change it to SSL       }     } This has been updated I believe in 2.3.4 and is not updated in the SEO URL5 instructions.
     
     
     
    Its the same, has been updated in osc2.3.4, just use this for reference.
     
     
    Find:
    $prod_list_contents .= ' <div class="col-xs-6 text-right">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'sort', 'cPath')) . 'action=buy_now&products_id=' . $listing['products_id']), NULL, NULL, 'btn-success btn-sm') . '</div>'; Replace with:
    $prod_list_contents .= ' <div class="col-xs-6 text-right">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'sort', 'cPath', 'products_id')) . 'action=buy_now&products_id=' . $listing['products_id']), NULL, NULL, 'btn-success btn-sm') . '</div>'; regards
    Rainer
  18. Like
    Psytanium got a reaction from radhavallabh in [Contribution] Products Specifications   
    are you going to release new modified version soon ?
  19. Like
    Psytanium reacted to Jack_mcs in Auto Update Currencies   
    I haven't seen that problem yet but thanks for posting the url.
  20. Like
    Psytanium reacted to tgely in ULTIMATE Seo Urls 5 - by FWR Media   
    Temporary fix for mysql cache when updates to v2.3.3.2 with tep_db_connect();
     
    cache_system\mysql.php
     
    find:

    public function store( array $registry_vars = array() ) { if ( false !== self::$cache_on ) { if ( false !== $this->insert ) { $data = serialize( $registry_vars ); // Serialize the registry of data $rawdata = base64_encode( gzdeflate( $data ) ); // encode and deflate $targets = array( ':cache_name', ':cache_data', ':cache_date' ); $replacements = array( tep_db_input( self::$cache_name ), tep_db_input( $rawdata ), date( "Y-m-d H:i:s" ) ); $query = str_replace( $targets, $replacements, $this->insert_query ); Usu_Main::i()->query( $query ); } } }
     
    change:

    public function store( array $registry_vars = array() ) { tep_db_connect(); if ( false !== self::$cache_on ) { if ( false !== $this->insert ) { $data = serialize( $registry_vars ); // Serialize the registry of data $rawdata = base64_encode( gzdeflate( $data ) ); // encode and deflate $targets = array( ':cache_name', ':cache_data', ':cache_date' ); $replacements = array( tep_db_input( self::$cache_name ), tep_db_input( $rawdata ), date( "Y-m-d H:i:s" ) ); $query = str_replace( $targets, $replacements, $this->insert_query ); Usu_Main::i()->query( $query ); } } }
  21. Like
    Psytanium reacted to Jack_mcs in Auto Update Currencies   
    Thanks for posting that. I'm sure it will help others.
  22. Like
    Psytanium reacted to Bob Terveuren in Auto Update Currencies   
    Hi there Jack
     
    @@Psytanium
     
    Here's the code I use on a 2.3.4 site - has the mysqli stuff in there
    <?php /* Auto Update Currencies v 1.0 by Jack_mcs - oscommerce-solution.com osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ ///////CONFIGURABLE VARIABLES/////////// define('DEFAULT_CURRENCY', 'GBP'); define('HOURS_BETWEEN_UPDATES' , '24'); //if more than one day, multiply days by hours so the setting for two days would be 2 * 24 = 48 define('REPORT_NO_UPDATE', true); //if the currencies are not updated since they have already been updated, don't report it. Set to false to always receive this message define('NO_REPORT', 0); define('SCREEN', 1); define('EMAIL', 2); define('SCREEN_EMAIL', 3); $output_report = EMAIL; ///////////////END////////////////////// define('CURRENCY_SERVER_PRIMARY', 'xe'); define('CURRENCY_SERVER_BACKUP', 'oanda'); require_once('includes/configure.php'); require_once(DIR_WS_FUNCTIONS . 'localization.php'); $link = mysqli_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD,DB_DATABASE) or die("Unable to connect to database server!"); //mysql_select_db(DB_DATABASE); $report = ''; $updated = array(); $rate = ''; $today = date("Y-m-d H:i:s"); // The exact time $currency_query = mysqli_query($link,"select currencies_id, code, title, last_updated from currencies" ) or die(mysql_error()); while ($currency = mysqli_fetch_array($currency_query, MYSQL_ASSOC)) { { $quote_function = 'quote_' . CURRENCY_SERVER_PRIMARY . '_currency'; $rate = $quote_function($currency['code']); if (empty($rate)) { $quote_function = 'quote_' . CURRENCY_SERVER_BACKUP . '_currency'; $rate = $quote_function($currency['code']); } if (!empty($rate)) { $updated[] = 'The exchange rate for ' . $currency['title'] . ' <b>WAS</b> successfully updated.' . "\n"; //if ($rate !=1){$rate=$rate*1.02;} mysqli_query($link,"update currencies set value = '" . $rate . "', last_updated = now() where currencies_id = '" . (int)$currency['currencies_id'] . "'"); } else $updated[] = 'The exchange rate for ' . $currency['title'] . ' <b>WAS NOT</b> successfully updated. It was last updated on ' . $currency['last_updated'] . "\n"; } } if ($output_report > NO_REPORT) { $report = 'Currencies Update Report' . "\n\n"; $configuration_query = mysqli_query($link,"select configuration_value as store_name from configuration where configuration_key = 'STORE_NAME' limit 1") or die(mysqli_error()); $configuration = mysqli_fetch_array($configuration_query, MYSQL_ASSOC); $report .= 'Currencies for ' . $configuration['store_name'] . ' updated on ' . date("D M j G:i:s Y") . "\n\n"; foreach ($updated as $changed) $report .= $changed; { echo str_replace("\n", '<br>', $report); } } mysqli_close($link); ?> n.b I have an extra quick and dirty line in there (if ($rate !=1){$rate=$rate*1.02;}) that adds 2% markup on the exchange rate as my payment processor adds that in as their premium over and above the bank rates.
     
    edit: commented out that line but left it in there FYI
  23. Like
    Psytanium reacted to Jack_mcs in Auto Update Currencies   
    It will work with any of the versions that don't use mysqli, which start around 2.3.3, I think. You can try replacing all instance of mysql in that file with mysqli. I haven't looked close enough at it to say if that will work or not but those calls are the problem. The correct fix, and what should have been done initially, is to include application_top and use the tep functions. That's the change I will make once I get to it.
  24. Like
    Psytanium reacted to Jack_mcs in Auto Update Currencies   
    If you are using around 2.3.3 (maybe before), that won't work. The database calls are different for those versions. I'll update this as soon as I can.
  25. Like
    Psytanium got a reaction from opus_uno2001 in File Upload and Display_V2.01.69 for version V 2.3.x   
    I have done this by changing

    if (isset($HTTP_POST_VARS['products_pdfupload']) && tep_not_null($HTTP_POST_VARS['products_pdfupload']) && ($HTTP_POST_VARS['products_pdfupload'] != 'none')) { $sql_data_array['products_pdfupload'] = tep_db_prepare_input($HTTP_POST_VARS['products_pdfupload']); }
    to

    $sql_data_array['products_pdfupload'] = tep_db_prepare_input($HTTP_POST_VARS['products_pdfupload']);
     
    and change

    tep_draw_input_field('products_previous_pdfupload'
    to

    tep_draw_input_field('products_pdfupload'
     
    now to remove an uploaded file, just empty the upload text field.
×
×
  • Create New...