Jump to content

minipassat

Members
  • Content count

    81
  • Joined

  • Last visited

Everything posted by minipassat

  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!!
  16. minipassat

    [Contribution] oscThumb

    Hello, for question 1 and 3, it's because the functions are missing. Check the installation note for /catalog/admin/includes/functions/general.php. It should solve your issue.
  17. minipassat

    Google Analytics module

    Hello, I followed the instruction to install the module. It's been for two week but my GA account still not receiving any records. It shows "0.00% Ecommerce Conversion Rate " on the report. The shop is working normal. Does any one know what the problems might be? Like how can I check if the checkout_success.php pass the value to GA account? Thank you very much!!
  18. minipassat

    [Contribution] Additional Images Module

    Thank you Surfealot! How about is it possible to use the setting of "Heading Image Width/Height" or "Subcategory Image Width/Height" instead of the "Small Image Width/Height"?
  19. minipassat

    [Contribution] Additional Images Module

    Hi, This is a very cool contribution. I've installed the latest version and it works just fine! Thank everyone who made the efforts!! I do have a question: I set the "Product Image Behavior" to product_info.php. The placement I want is similar to Amazon - one big image on top and several thumbnails below the big image. The AI use the value of "Small Image Width" and "Small Image Height" set in Configuration -> Images. The small image size is 180x180 which is perfect for me for the index.php page presentation. However it's way too big to be displayed as thumbnail on product_info.php. Is there any way to make the thumbnail size smaller (50x50 for product_info.php) but still keep 180x180 on index.php? Thank you!!
  20. minipassat

    Google Analytics module

    Hello, Has any one got this contribution working - receiving the data in GA's E-Commerce report? I can see the number of "visitors" is increasing but i tried to place a few orders but still not receiving any data such as the Sales of products generated informaiton... Here is what i did: (1). I upload the analytics.php file in catalog/includes\modules\analytics folder. (2). I past the code in the sts_template.html page before </body> with the Web Property ID google provided. <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("xx-xxxxxx-x"); pageTracker._initData(); pageTracker._trackPageview(); } catch(err) {}</script> (3). I paste this code in the catalog/checkout_success.php <script type="text/javascript"> ?php //google analytics e-commerce require(DIR_WS_MODULES . 'analytics/analytics.php')?> // end google analytics e-commerce </script> (4). I enabled "E-Commerce" to "Yes" in GA account. Does any one know which step I missed? In order to receive data of my e-commerce report, do I have to have a google AdWord campaign? Also how long does GA take to collect all the data? (When is the best time to check the report?) Thank you!!
  21. Hello, This solved my problem too! Thank you very much for sharing! But there are still same problems (redirected to login page) if you choose "Last Ten Site Visitors" or "Product Viewed Report" from the drop down menu. These two pages hve the "filter" functions by giving the selection via drop down menu and the input textfield. This function didn't work and will be redirected to the login page. I believe this is related to the admin level access issue but can't find the solutions. Could you share how to fix? Thanks again!!
  22. minipassat

    Bing Cashback program

    Hello Zach, Thank you very much for sharing this contribution. Is it http://addons.oscommerce.com/info/7004? I see it's not too hard for me to install, but can I ask: I have installed this contribution in my store, but how does it work with bing's shopping site? Do I need to manually add the products in my biing's merchant account? Or through data feed? Then the cashback program will "link" together? I am not a programmer so i'll really appreciate if you can explain it more! Thank you very much!!
  23. minipassat

    One Page Checkout Support

    Hi! fist of all, thanks for this great contribution and everyone who share the support here!! This contribution does save a lot of steps for checkout process and also conbine the "purchase without account" type of checkout option! I have some questions regarding getting this contribution to work with the discount coupon code module. Does any one have an issue of the sub-total and total price is calculated incorrectly? I did some search and couldn't find the answers! The issue is when amount of coupon is applied, the sub-total display the price with discount applied once; then the total price display the price with twice discount applied. Is it something to do with the include/class/onepage_checkout.php function? really appreciate if anyone can share the thoughts!
  24. minipassat

    One Page Checkout Support

    Hello, Recently I installed Discount Coupon Code V3.34. It works with One Page Checkout except the calculation seems incorrect. The calculation works fine when One Page Checkout is turned off. So I assume the issue is related to OPC module. Here is the problem description: in Admin -> Modules -> Discount Coupon setting, I set the sort order to 2 which is after the “sub-total”. And for “Display subtotal with applied discount?”, I set it to false therefore the sub-total will be displayed without the discount applied. Question 1: actually no matter I set it to true or false, the subtotal always reflects the amount with discount applied which is not right. Question 2: continue question 1, then then final total price reflects the price of twice discounted amount applied. Item: $34.99 Sub-Total: $32.99 (should be $34.99, but it shows $32.99) Discount Coupon: -$2.00 Flat Rate (Best Way): $5.00 Total: $35.99 (should be $37.99, but it shows $35.99) Question 3: Admin -> Catalog -> Discount Coupons: Discount Coupons Exclusions issues: 1. for Customers, doesn’t seem to work. With excluded customer selected, the discount still applied. 2. for Shipping Zone, I get this error message: 1136 - Column count doesn't match value count at row 1 INSERT INTO discount_coupons_to_zones VALUES ( "testing001", 1 ) Does any one know how to solve these? Thank you very much!!
  25. minipassat

    Header Tags SEO

    Hi Jack, Thank you for the reply! I tried to upgrade to V3.19, when i edit this step: ============================================= In includes/modules/sts_inc/general.php, REPLACE: $sts->template['headertags']= "<title>" . TITLE ."</title>"; WITH: if (!isset($sts->template['headertags'])) $sts->template['headertags']= "<title>" . TITLE ."</title>"; $sts->template['headertags_logotext'] = tep_not_null($header_tags_array['logo_text']) ? $header_tags_array['logo_text'] : STORE_NAME; ============================================= the browser title displays as it should be! Thanks! :D However, the banner image is missing. Instead of displaying the graphic/banner, it displays the text "$banner_only". Do you know why is this? I tried to undo the above code for general.php but the banner still disappered. The title remain normal. How to fix this?? Thanks a bunch!!
×