Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.


  • Content count

  • Joined

  • Last visited

Profile Information

  • Real Name
  • Website
  1. minipassat

    Country-State Selector

    Hello, I searched this topic but can't seem to find what to do: My OSC version is MS2.2, I am trying to instal this contribution to work with FEC (fast easy checkout). I use create_account3.php included in the FEC contribution. Can anyone post the code for this file please? The code provided in the Country-Selector's installation file doesn't match FEC's create_account3.php. I have problem with this instructions: Line 19 Replace: if (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process')) { $process = true; with: // +Country-State Selector $refresh = false; if (isset($HTTP_POST_VARS['action']) && (($HTTP_POST_VARS['action'] == 'process') || ($HTTP_POST_VARS['action'] == 'refresh'))) { if ($HTTP_POST_VARS['action'] == 'process') $process = true; if ($HTTP_POST_VARS['action'] == 'refresh') $refresh = true; // -Country-State Selector Line 57 Replace: $error = false; with: // +Country-State Selector if ($process) { // -Country-State Selector $error = false; Line 418 Replace: if ($process == true) { if ($entry_state_has_zones == true) { $zones_array = array(); $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' order by zone_name"); while ($zones_values = tep_db_fetch_array($zones_query)) { $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']); } echo tep_draw_pull_down_menu('state', $zones_array); } else { echo tep_draw_input_field('state'); } } else { echo tep_draw_input_field('state'); } with: // +Country-State Selector $zones_array = array(); $zones_query = tep_db_query("select zone_id, zone_name from " . TABLE_ZONES . " where zone_country_id = " . (int)$country . " order by zone_name"); while ($zones_values = tep_db_fetch_array($zones_query)) { $zones_array[] = array('id' => $zones_values['zone_id'], 'text' => $zones_values['zone_name']); } if (count($zones_array) > 0) { echo tep_draw_pull_down_menu('zone_id', $zones_array); } else { echo tep_draw_input_field('state'); } // -Country-State Selector Please help!! Thank you very much!!
  2. minipassat

    fast easy checkout

    Hello, My store setting: FEC 3.2 with create_account3.php activated OSC version: MS2 PHP Version 4+ Problem description: shipping address can not be recorded in admin/database if customer edit the shipTo address at the checkout_confirmation.php page. The revised shipTo address appears correctly in the paypal confirmation email but incorrect in the admin/database. So it causes problem to me to ship the order to wrong locations. I did this test and found this: If I entered desired billTo and shipTo address at the beginning of create_account3.php page then complete the checkout process without modifing shipTo, then both Paypal and admin show the desired address (which is correct). Then after the 1st order is done, I continue to pleace the 2nd order by selecting another item and go to checkout page, I was taken directly to the checkout_shipping.php page (without the need of entering billto/shipto again). Then I proceed to the checkout_confirmation.php page and saw that the shipTo address automatically picked the billTo address, so I click "Edit" link to change the shipTo address then proceed the checkout. Now the Paypal did capture the revised shipTo but the admin still use billTo address (which is wrong). Here is what I need the assistance with: 1. Auto-logoff after each order is completed? Is it possible to clear all information customer has entered after the order is completed (auto logoff for no-account user)? I think this might solve the above issue. Force customer to enter every information again if they decide to place the 2nd order immediately following the 1st order. 2. How do I add ship to address input fields on create_account1.php? The store doesn't require customers to create account but it requires both Billing and Shipping address on one page. It’s not the option for create_account1.php; therefore I use create_account3.php instead of create_account1.php but hide the create account options by commenting out the tables on the page. Is this doable? 3. Browser's back button for no-account user? I tried both create_account1.php and create_account3.php, however if customer proceed to checkout_shipping.php and click the browser's back button to go back to the previous create_account1(or 3).page trying to change the addresses, they will be redirected to account_password_new.php where the customer is asked to enter the password (which confuses customer because they chose not to create account at the beginning!). I am sorry for the long writing. I’m just trying to describe my issue as clear as possible. I have been encountering this problem since i installed FEC 1.6 version. Recently I upgrade to FEC 3.2 because I saw the installation note indicated "fix the shipping address not being selected at times". However the problem is still there. Can anyone help me please?!! Much appreciated!!
  3. Hello, I have OSC RC2a and recently installed CCGV 5.20a module. The module works great except the coupon code apply to the on sale item as well. Anyone knows how to exclude the on sale items (any item in specials.php page) from the coupon code? Thanks very much!!
  4. minipassat

    One Page Checkout Support

    Hello, Does anyone know how to add javascript validation for the coupon code if the coupon code is correct? same like a small green check mark next to the coupon code text field? Currently the coupon code is working, but looks like it might not clear to customers if the coupon code they entered is valid or not if they didn't pay attention to the calculation. Therefore is it possible to add the green checkmark icon like the one for the name and address fields? Thank you very much!!
  5. minipassat

    One Page Checkout Support

    Hello, I have upgraded to One Page Checkout V1.4 and have Paypal Website Payment Standard installed. Does anyone know how to make "Paypal Itemized Description (http://addons.oscommerce.com/info/6783)" module work with One Page Checkout? Basically One Page Checkout doesn't pass the ordered item and quantity to Paypal. It shows store name instead of product name. Seems like I need to copy the code for checkout_confirmation.php to checkout.php but I don't know where to paste at (not a programmer...) Can anyone help please? Thank you!!
  6. minipassat

    Header Tags SEO

    Hello, Thank you for your advise! Yes the title does show up when I use the broswer's view source. I was just wondering why it doesn't show up on those meta tag checker tools. I though that might be the reason that google spider can't find/recognize the pages of my site. I am able to find my product pages when i search with the store name. So I am sure my store has been indexed by google. It's just when I do keyword search instead of store name, my home page and product pages can't be found even after 40th pages of the google search result. If you have other advises that'd be great!! Thanks again!
  7. minipassat

    Header Tags SEO

    Hello, Does anyone notice this problem? After using this contribution for a couple of months, the titles and meta descriptions appears correctly if you "View Source" from IE or Firefox browsers. However the entire OSC shop still has very poor SEO ranking in google search. The <title></title> can't be found in gogle search result. I use the Meta Tag Analyzer checker such as the http://www.seocentro.com/, the report shows "Found no title" and "Found no description". Why is this possible when the "View Source" does show the title tag? Anyone knows how to fix this title issue and improve ranking in google search? Thank you!!
  8. minipassat

    Article Manager v1.0

    Hello, Currently the articles are located as the infoxbox. Customers will need to click the topics in order to be linked to the articles page. Does any one know how to automatically list a number of "latest articles" including the article name, date created and short descriptions the home page below the text "what's new"? similar to this website http://www.charger.od.ua/ And is it possible to show a short description in the infobox instead of just the links of the topics? Thank you!
  9. minipassat

    One Page Checkout Support

    Thank you Steve, The following code needs to be added to the checkout_confirmation.php, so I tried adding it to the checkout.php ***ADD BEFORE:----> Add this just BEFORE it <---- //BOF osc_Giftwrap // load the selcted giftwrap module require(DIR_WS_CLASSES . "gift.php"); $giftwrap_modules = new gift($giftwrap); //EOF osc_Giftwrap ***ADD BEFORE:----> Add this just BEFORE it <---- <!-- BOF osc_Giftwrap --> <?php if ($order->info['giftwrap_method']) { ?> <tr> <td class="main"><b><?php echo HEADING_GIFTWRAP_METHOD; ?></b></td> </tr> <tr> <td class="main"><?php echo $order->info['giftwrap_method']; ?></td> </tr> <?php } ?> <!-- EOF osc_Giftwrap --> but it gave me this error message: Fatal error: Cannot redeclare cheapest() (previously declared in ..../public_html/includes/classes/gift.php:80) in ..../public_html/includes/classes/gift.php on line 113 where line 113 is a } before ?> Here is the complete code of includes/classes/gift.php. It seemed to be conflict with includes/classes/onepagecheckout.php <?php /* $Id: shipping.php,v 1.19 2003/01/11 13:24:41 thomasamoulton Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ class gift { var $modules; // class constructor function gift($module = '') { global $language, $PHP_SELF; if (tep_not_null(MODULE_GIFTWRAP_INSTALLED)) { $this->modules = explode(';', MODULE_GIFTWRAP_INSTALLED); $include_modules = array(); if ( (tep_not_null($module)) && (in_array(substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)), $this->modules)) ) { $include_modules[] = array('class' => substr($module['id'], 0, strpos($module['id'], '_')), 'file' => substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1))); } else { reset($this->modules); while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); $include_modules[] = array('class' => $class, 'file' => $value); } } $n = sizeof($include_modules); for ($i=0; $i<$n; $i++) { include(DIR_WS_LANGUAGES . $language . '/modules/giftwrap/' . $include_modules[$i]['file']); include(DIR_WS_MODULES . 'giftwrap/' . $include_modules[$i]['file']); $GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class']; } } } function quote1($method = '', $module = '') { global $gift_quoted, $gift_num_boxes; $quotes_array = array(); if (is_array($this->modules)) { $gift_quoted = ''; $gift_num_boxes = 1; $include_quotes = array(); reset($this->modules); while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if (tep_not_null($module)) { if ( ($module == $class) && ($GLOBALS[$class]->enabled) ) { $include_quotes[] = $class; } } elseif ($GLOBALS[$class]->enabled) { $include_quotes[] = $class; } } $size = sizeof($include_quotes); for ($i=0; $i<$size; $i++) { $quotes = $GLOBALS[$include_quotes[$i]]->quote($method); if (is_array($quotes)) $quotes_array[] = $quotes; } } return $quotes_array; } } function cheapest() { if (is_array($this->modules)) { $rates = array(); reset($this->modules); while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if ($GLOBALS[$class]->enabled) { $quotes = $GLOBALS[$class]->quotes; $size = sizeof($quotes['methods']); for ($i=0; $i<$size; $i++) { if ($quotes['methods'][$i]['cost']) { $rates[] = array('id' => $quotes['id'] . '_' . $quotes['methods'][$i]['id'], 'title' => $quotes['module'] . ' (' . $quotes['methods'][$i]['title'] . ')', 'cost' => $quotes['methods'][$i]['cost']); } } } } $cheapest = false; $size = sizeof($rates); for ($i=0; $i<$size; $i++) { if (is_array($cheapest)) { if ($rates[$i]['cost'] < $cheapest['cost']) { $cheapest = $rates[$i]; } } else { $cheapest = $rates[$i]; } } return $cheapest; } } ?> Your time is very appreciated!!!
  10. minipassat

    One Page Checkout Support

    Thank you Steve, but there's no file that needs to be added to checkout_payment.php. For includes/classes/onepage_checkout.php and inculdes/checkout/shipping_method.php, I am not sure what needs to be added there. I am new to PHP so it's a challange for me. I have copied the files needed for installing the giftwrap mpdule. Could you take a look and let me know what else I can try? Thank you!!
  11. minipassat

    [contribution] Simple Template System (sts)

    Hello, When using IE and when access to checkout.php page, IE send popup window with this message: "This page contains both secure and nonsecure items. Do you want to display the nonsecure items?" This message popup every time when it's accessing the https page which is quite annoying. I found this article and it's because I used direct link with http and https in my ste_template.html file. My questions are: 1. how to use the tep_href_link() to specify the link to my root directory. ex: http://mysite.com (without /index.php at the end)? like this? <?php echo tep_href_link('mysite.com'); ?> 2. my sts_template.html has a script to link to the social bookmark site. The script looks like: <div class="addthis_toolbox addthis_default_style"> <a href="http://addthis.com/bookmark.php?xxxxxxxxxx" class="addthis_button_compact">Share</a> <span class="addthis_separator">|</span> <a class="addthis_button_facebook"></a> <a class="addthis_button_google"></a> </div> how to replace the direct link of http://addthis.com/bookmark.php?xxxxxxxxxx with tep_href_link()? like this? <?php echo '<a href"' . tep_href_link('addthis.com/bookmark.php?xxxxxxxxxx') . '"'; ?> 3. I have a form in the sts_template.html and it looks like: <form method="post" action="http://oi.vresp.com?" target="vr_optin_popup" onsubmit="window.open( 'http://www.response.com', ); return true;" > how to replace onsubmit="window.open( 'http://www.response.com'...) with tep_href_link()? The whole idea is to get rid of "http" used in sts_template.html to avoid the secure popup message for IE browser. I tried but they don't work at all. I'm new to php so I'd really appreciate if anyone can share the knowedge here! :) Thank you for your time!!
  12. minipassat

    One Page Checkout Support

    Hello, anyone knows how to integrate this contribution with GiftWrap together? I add the code for checkout_shipping.php to checkout.php, the selections (Gift Wrap $5 or No Gift Wrap $0) did appear but the selected giftwrap price was not able to be added and calculated at the order total. Please help! Thank you!
  13. minipassat

    [Contribution] oscThumb

    I found the solution. To make STS 4.5.8 work with oscThumb V1.1.2, you need to: (1). in admin -> modules -> STS edit the setting by adding ;oscthumb.php in the field of "Files for content template" so it should look like: Files for normal template sts_user_code.php;oscthumb.php (2). copy catalog/oscthumb.php into catalog/includes/modules/sts_inc folder The error message was caused because I used a modified sts_template.html file. I test the module with the original file and it works!
  14. minipassat

    [Contribution] oscThumb

    Hello, I installed this module but receive the following error message: Fatal error: Call to a member function image_button() on a non-object in .../includes/functions/html_output.php on line 164 and line 164 is $src = $sts->image_button($image,$language); Anyone know how to fix it? I found post#70 , my STS version is 4.5.8, where can I add this file as a file required? and post#71, which oscthumb.php file i should copy to? the catalog/oscthumb.php or catalog/includes/class/oscthumb.php? Thank you!!
  15. Hello, This is truly a GREAT contribution! It works well with the oscThumb module! Thank you, Thank you!! but i have two questions: 1. If set the 777 for the cache folder, does this increase the chances of the web site being hacked? 2. The website fancybox.net/ provides some cool examples such as changing "Different animations - 'fade', 'elastic' and 'none'" and "Different title positions - 'outside', 'inside' and 'over'". I'd like to use the "elastic" and "over" together. Does these presentations can be adjusted in admin control panel? Or this requires other javascript or jQuery?? Where can I find the scripts? Thanks again!!