Jump to content

ken0306

Members
  • Content count

    308
  • Joined

  • Last visited

4 Followers

About ken0306

  • Birthday 11/01/1979

Profile Information

  1. HI there, My website send email to my own email. The incoming email name shows EMAIL_TEXT_SUBJECT and the body part shows EMAIL_BODY the incoming email is my admin email. So any idea how to stop this? I already put the recapture on my contact form but it doesn't really stop it. thank you ken
  2. 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.
  3. ken0306

    CSS Button Control file

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

    CSS Button Control file

    still on older version 2.2CR2a
  5. 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
  6. 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
  7. 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
  8. 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
  9. ken0306

    SEO Friendly Urls - a new approach

    cool, I will get the pro version and get it a try.
  10. 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
  11. 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
  12. Hi there, I am trying to setup my shopping cart with table rate and limited by product weight and postcode, and here is so far I can think about. 1. I setup the Table Rate charge by price, 29:8.99,49:6.99,49.01:0.00 so all orders over 49.01 will be free shipping. 2. Because I only want to offer free shipping to a small and medium size package, not the large item. I add the following code to /includes/class/shipping/ table.php change return $this->quotes; to if (($cart->show_weight() < 50 )) { return $this->quotes; } This will limit the shopping cart total weight while they check out. So, how do I change this to each item's weight instant of total cart weight? If customer order 2 x 21 lbs item will give total weight 52 lbs, the free shipping can't apply to order. So how can I change shopping cart total weight to heaviest items on the shopping cart's weight? 3. I also trying to limit the service only available in city area, so I will need to adding the restriction on postcode, if (($cart->show_weight() < 50 ) && $order->delivery['postcode'] != 'v6y 3j8') { return $this->quotes; } so how can I setup multiple valuable for delivery postcode and only check if first 3 characters match? thank you ken
  13. ken0306

    ULTIMATE Seo Urls 5 - by FWR Media

    Hi FWR Media, I saw your post about the Chinese charterer on url around page 138, do you have solution for that problem on the seo urls 5 pro version? thank you ken
  14. ken0306

    Wishlist 2.0 Support Thread

    HI, I have wishlist 2 installed, I add 1 extra field in my customer_wishlist table call categories_id, I want my customer be able to sort the wishlist by categories. I change the insert query from tep_db_query("insert into " . TABLE_WISHLIST . " (customers_id, products_id) values ('" . $customer_id . "', '" . $wishlist_id . "')"); to tep_db_query("insert into " . TABLE_WISHLIST . " (customers_id, products_id, categories_id) values ('" . $customer_id . "', '" . $wishlist_id . "', '" . $top_category_id . "')"); include/classes/wishlist.php since I only want to insert the top category to wishlist table, I add the following code under product_info.php page to show the category_id $cPath = implode('_', $cPath_array); $top_category_id = strtok($cPath, '_'); echo $top_category_id; before the </form> It does shows the top category id correctly under the products_info.php, but the sql query doesn't insert the $top_category_id to the table. Can somebody tell me how fix this problem? Thank you ken
×