Jump to content


  • Content count

  • Joined

  • Last visited


About ken0306

  • Birthday 11/01/1979

Profile Information

  1. ken0306

    CSS Button Control file

    @ArtcoInc My application currently running on the Bootstrap 3 framework, and the button is the only part I can't replace CSS with the image.
  2. ken0306

    CSS Button Control file

    @JcMagpie The input with type="image" button work, but the second one input type="submit" doesn't work.
  3. ken0306

    CSS Button Control file

    still on older version 2.2CR2a
  4. ken0306

    CSS Button Control file

    Hi there, I trying to upgrade my site with CSS button to replace with the old images button. I wondering which file to edit the button function or add new button function. I try Ultimate Buttons for OSCommerce, and other css buttons that I can find from the add on section. They all since like adding or adjusted the tep_image_submit under the includes/functions/html_output.php page. But I still unable to make it work. I trying to directly insert the images button code on my products_info.php page <input type="image" src="includes/languages/english/images/buttons/button_in_cart.png" border="0" alt="Add to Cart" title=" Add to Cart " name="submit_cart" class="btn btn-primary"> it works, product added to my cart. but I change to the following <input class="single_add_to_cart_button button " type="submit" name="submit_cart" value="Add To Cart"> and the add to cart button is not adding the product to my cart any more. so if there any other files that control the button function? thank you ken
  5. Hi there, My website currently has 2 difference languages, so is there any google sitemap allow me to create multiple languages XML and submit to google? Are there any benefits for submitting multiple language sitemap to google? According to google multiple languages help section, the header tag should look like this <head> <title>Widgets, Inc</title> <link rel="alternate" hreflang="en-gb" href="http://en-gb.example.com/page.html" /> <link rel="alternate" hreflang="en-us" href="http://en-us.example.com/page.html" /> <link rel="alternate" hreflang="en" href="http://en.example.com/page.html" /> <link rel="alternate" hreflang="de" href="http://de.example.com/page.html" /> <link rel="alternate" hreflang="x-default" href="http://www.example.com/" /> </head> If a website has multiple languages. I try on different header tag addon, but none of them allows me to create the header link like the google simple. thank you in advanced. ken
  6. ken0306

    SEO Friendly Urls - a new approach

    Hi @gadlol, Do you know which header tag is compatible with it on this? I originally have Ultimate SEO URL 5 with Header Tags SEO V 3.0 install on my site, and I uninstall the Ultimate SEO URL 5 and install upgrade to the SEO Friendly url pro. Now the index page header tag works fine, but the product info page doesn't really work. The header tag will load If the SEO Friendly url is off. So, is there any other Header Tag addon I should use for with SEO Friendly URL Pro? thank you ken
  7. ken0306

    SEO Friendly Urls - a new approach

    Hi there, I change my site from the Ultimate SEO URL 5 to the SEO Friendly urls, so the urls structures are totally changed. my question is how to forward my old urls to the new urls. thank you
  8. ken0306

    SEO Friendly Urls - a new approach

    cool, I will get the pro version and get it a try.
  9. ken0306

    SEO Friendly Urls - a new approach

    HI there, I just test on my site with this add on, the url looks good, but a little bit slow loading compared with the Ultimate SEO URL 5. Is that because it is the free version? thank you ken
  10. ken0306

    2.2RC1 and PHP7

    @ I am upgrading my OLD v2.2RC1 to working with php7 now. Here is what I got so far. (NOTE: My previews application was running on PHP 5.6. ) Files you need to edit. store side: includes/classes/shopping_cart.php includes/classes/shipping.php includes/classes/packing.php includes/functions/database.php includes/functions/html_output.php admin side: admin/includes/functions/database.php I change the functions/database.php mysql connection function from mysql_fetch_row to mysqli_fetch_array and the application will be able to run under php7. 1.23. 1. replace function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { global $$link; if (USE_PCONNECT == 'true') { $$link = mysql_pconnect($server, $username, $password); } else { $$link = mysql_connect($server, $username, $password); } if ($$link) mysql_select_db($database); return $$link; } function tep_db_close($link = 'db_link') { global $$link; return mysql_close($$link); } with function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { global $$link; if (USE_PCONNECT == 'true') { $server = 'p:' . $server; } $$link = mysqli_connect($server, $username, $password, $database); if ( !mysqli_connect_errno() ) { mysqli_set_charset($$link, 'utf8'); } @mysqli_query($$link, 'set session sql_mode=""'); return $$link; } function tep_db_close($link = 'db_link') { global $$link; return mysqli_close($$link); } 2 replace $result = mysql_query($query, $$link) or tep_db_error($query, mysql_errno(), mysql_error()); to //$result = mysqli_query($query, $$link) or tep_db_error($query, mysqli_errno(), mysqli_error()); $result = mysqli_query($$link, $query) or tep_db_error($query, mysqli_errno($$link), mysqli_error($$link)); 3 replace function tep_db_fetch_array($db_query) { return @mysql_fetch_array($db_query, MYSQL_ASSOC); } function tep_db_num_rows($db_query) { return mysql_num_rows($db_query); } function tep_db_data_seek($db_query, $row_number) { return mysql_data_seek($db_query, $row_number); } function tep_db_insert_id($link = 'db_link') { global $$link; return mysql_insert_id($$link); } function tep_db_free_result($db_query) { return mysql_free_result($db_query); } function tep_db_fetch_fields($db_query) { return mysql_fetch_field($db_query); } to function tep_db_fetch_array($db_query) { // return @mysql_fetch_array($db_query, MYSQL_ASSOC); return @mysqli_fetch_array($db_query, MYSQLI_ASSOC); } function tep_db_num_rows($db_query) { // return mysql_num_rows($db_query); return mysqli_num_rows($db_query); } function tep_db_data_seek($db_query, $row_number) { // return mysql_data_seek($db_query, $row_number); return mysqli_data_seek($db_query, $row_number); } function tep_db_insert_id($link = 'db_link') { global $$link; // return mysql_insert_id($$link); return mysqli_insert_id($$link); } function tep_db_free_result($db_query) { // return mysql_free_result($db_query); return mysqli_free_result($db_query); } function tep_db_fetch_fields($db_query) { // return mysql_fetch_field($db_query); return mysqli_fetch_field($db_query); } You should be able to run the application on PHP 7 with some error. Since you can bring up the application, you will be able to patch each addon on your shopping cart to make it works. I holp this will help good luck. ken
  11. it works, thank you. the error is gone. This error also in the osc 2.3.4 defult package.
  12. Hi there, My website recently got the PCI SQL Injection Severity problem with the advanced_search_result.php page, here is the error WAS Payload keywords=%25%25&search_in_description=1&submit=Search&categories_id=98&inc_subcat=1&manufacturers_id=&pfrom=1e309&pto=&dfrom=&dto= What happens is when I adding the following code after advanced_search_result.php?keywords=%25%25&search_in_description=1&submit=Search&categories_id=98&inc_subcat=1&manufacturers_id=&pfrom=&pto=1e309&dfrom=&dto= The MySQL error print out on the screen. 1054 - Unknown column 'INF' in 'where clause' select count(distinct p.products_id) as total from products p left join manufacturers m using(manufacturers_id) left join specials s on p.products_id = s.products_id, products_description pd, categories c, products_to_categories p2c where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p2c.products_id = p.products_id and p2c.products_id = pd.products_id and (p2c.categories_id = '98' or p2c.categories_id = '99' or p2c.categories_id = '104' or p2c.categories_id = '106' or p2c.categories_id = '111' or p2c.categories_id = '114' or p2c.categories_id = '117' or p2c.categories_id = '123' or p2c.categories_id = '125' or p2c.categories_id = '289') and ((pd.products_name like '%%%%' or p.products_model like '%%%%' or p.products_UPC like '%%%%' or p.products_MPN like '%%%%' or m.manufacturers_name like '%%%%' or pd.products_description like '%%%%') ) and (IF(s.status, s.specials_new_products_price, p.products_price) <= INF) I trying the since script on demo site from oscommerce.com, the search result also shows the same error. Any idea how to fix this problem with the script? thank you in advance. ken
  13. ken0306

    Contact Us Form Not Working Correctly?

    you should recheck on your smtp mail addon, most of the webmail like outlook, or gmail will require for sever setup the spf correctly. Test your mail server first by sending email to your own gmail account or hotmail account, and look at the source code. there will be more information about your smtp mail server setup and your spf setup for the email address you using for your store.
  14. ken0306

    Clearance Price addon

    This can be a temporary solution. But when we decide to extend so deals, this will not really work. Also if I removed the items during the promotions period, there will be additional data inserted into the special table. thank you ken
  15. ken0306

    Clearance Price addon

    I am currently using the advanced specials to apply for my promotions too. However, my shop currently has over 10,000 items, and there are over 1000 items on clearance. During the holidays season, we often have a storewide sale, that is what the problem coming from after the sale. All price are going back to regular price and we need to spend a lot of time to find the correct price on the clearance items again. So, I wonder if there is any clearance price addon I can use the base for this kind of scenario. thank you ken