Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

chocolategelt

Pioneers
  • Posts

    28
  • Joined

  • Last visited

Posts posted by chocolategelt

  1. to change the number of days for delivery, I changed this line in fedexwebservices.php

    $transitTime = ' (' . str_replace(array('_', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve', 'thirteen', 'fourteeen'), array(' ', 4,5,6,7,8,9,10,10,10,10,11,12,13,14), strtolower($rateReply->TransitTime)) . ')';

     

    this ' ', 4,5,6,7,8,9,10,10,10,10,11,12,13,14 in original file was this ' ', 1,2,3,4,5,6,7,8,9,10,11,12,13,14

    I just wanted to add 3 days for order processing and changed those digits.

     

    seems to work for me

    ---------------------------------------------------------------------------

     

    I still can't figure out how to print Home and Ground labels, can only do either or by changing 'Residential' => false) in fedexwebservices.php . Residential address checker just does not get passed to Fedex when I select Home Delivery I get an error that she shipment must be designated as residential... it worked fine in the old version. There is this piece of code in

    ship_fedex.php

    // if it's home delivery (90), add the "residential delivery flag" (440)

    if ($HTTP_POST_VARS['service_type'] == 90) {

    $shipData[440] = 'Y';

    }

    else {

    $shipData[440] = 'N';

    }

     

    but it doesn't seem to do anything...any ideas on this? Any help would be appreciated.

  2. My quick fix for USPS domestic rates was to just strip out all the new characters on the $type variable before it builds the shipping quotes array. I have a heavily modified usps.php modules file so I cannot show you exactly where, but basically find where the quotes array is built from the USPS response and add this code:

     

    Mine looks like this:

     

    list($type, $cost) = each($uspsQuote[$i]);

     

    so I added this after:

     

    $type = str_replace('<sup>®</sup>', '', $type);

    $type = str_replace('<sup>™</sup>', '', $type);

    $type = str_replace('**', '', $type);

     

    This removes the everything that was added by USPS that was causing errors on my site. It also fixes the international issue (response had added a ** to the end of the title).

     

    Hope this helps!

     

    Thanks very much!

    It worked for me.

  3. just wanted to say Thanks for a great contribution. Everything seems to be ok so far.

    I had the same error as someone in Nov 2009

    Warning: mysql_num_rows() expects parameter 1 to be resource, null given in C:\wamp\www\catalog\includes\functions\database.php on line 103

     

    after checking the edits - this was due to my mistake when replacing the very first edit on product_info page. Just wanted to post in case someone else will have the same message, it will make for a quicker fix.

     

    Again, thank you!!

  4. Hi Cord

    Thank you for a great contribution.

     

    Just thought it would be nice to have an option to email customers who ordered certain products (say product id 50, 89 and 1200). Customers would appreciate coupons on stuff they order regularly.

     

    I was also wondering if there will be a way eventually to select 2 time periods at once (say all who ordered dec2009 and dec2010) that way someone who ordered both times will only get one email. The way it's set up now is if I send 2 emails with coupons to those groups, people who bought in 2009 and 2010 will get the email twice. Just ideas.

     

    Again, thank you. I look forward to using this module and will certainly show my appreciation through PayPal :)

  5. Great contrib. Thank you!

    Question about checkount_success.php

    Do you have a solution for PWA?

    All I want to do is only show the receipt button if a person is logged in, otherwise if they are PWA no button for them.

     

     

    What I did was create a page for PWA people called orders_printable_pwa.php

    so the invoice button is still on checkout_success page but the pop-up appears

    with alternative text for those who purchased without account.

     

    in print_order2.php

    changed this

    if (!tep_session_is_registered('customer_id')) {

    $navigation->set_snapshot();

    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));

     

    to this

    if (!tep_session_is_registered('customer_id')) {

    $navigation->set_snapshot();

    tep_redirect(tep_href_link(FILENAME_ORDERS_PRINTABLE_PWA, '', 'SSL'));

     

    in filenames.php added a new file

    define('FILENAME_ORDERS_PRINTABLE_PWA', 'print_order_pwa.php');

     

    Now if someone checks out without account they get a message something like

    - since you checked out without creating an account your receipt is only available through email, please check your email for order confirmation.

  6. yes, of course, you are right. I think it is the SEO urls.

     

     

    I fixed it simply by replacing these in gallery_user.php

    $link = 'gallery_process.php?edit=yes&pID='.$fotos['pID'].'&cID='.$fotos['cID'];

    echo '[<a href="'.tep_href_link($link).'" onclick="return hs.htmlExpand(this, { objectType: \'iframe\',outlineType: \'rounded-white\', outlineWhileAnimating: true } )">' .TEXT_EDIT.'</a>]<br>';

     

    with this

    echo'[<a href=gallery_process.php?edit=yes&pID='.$fotos['pID].'&cID='.$fotos['cID'].'"onclick="return hs.htmlExpand(this, { objectType: \'iframe\',outlineType: \'rounded-white\', outlineWhileAnimating: true } )">'.TEXT_EDIT.'</a>]<br>';

     

    this fix might be helpful to anyone running SEO urls

     

    This is a great contrib, thank you very much and we'll look forward to updates!

    Cheers

    Irina

  7. Well, as you can see, clicking 'edit' moved you to a page with the URL

    http://www.chocolategelt.com/catalog/gallery_process.php/edit/yes/pID/1/cID/8339

    This URL is not what it is supposed to be

    http://www.chocolategelt.com/catalog/gallery_process.php?edit=yes&pID=1&cID=8339

    Notice the difference?

     

    Most likely you are using some contribution that breaks your URL into pieces. But with the broken pieces it does not work anymore because the URL is transferring variables, and with the "broken pieces URL", those variables are lost because the = and & signs are lost. So it cannot work this way.

     

     

    yes, of course, you are right. I think it is the SEO urls.

  8. error1: replace line 35 with

    $bestaande_comment = mysql_fetch_array(mysql_query("SELECT comment FROM gallery WHERE cID=".$cID." AND pID=".$pID)) or die(mysql_error());

    and give me the new error

     

    Error2 is probably connected with error1.

     

    I replaced line 35 as you recommended. the second line of error message changed

    this is the error I got:

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/virtual/site202/fst/var/www/html/catalog/gallery_process.php on line 35

    You have an error in your SQL syntax near 'AND pID=' at line 1

     

    btw, I tried all the other fixes you suggested as well.

     

    Thank you!

  9. Try changing the link value to:

    $link = 'gallery_process.php?edit=yes&pID=1&cID=8339';

    That works only for the picture i have uploaded, so only for testing purposes. When i enter this link directly in the address bar of my browser, then it works and no errors appear.

     

    Yes, I see that the direct link works for the picture which you uploaded... But the dynamic code still retuns an error... any ideas?

     

    Thank you!

  10. here is the value

    $link = 'gallery_process.php?edit=yes&pID='.$fotos['pID'].'&cID='.$fotos['cID'];

     

    Yes, I know about this issue, it is because I am using an ssl certificate provided by my hosting company, so the https link looks different from non-secure one. The page is not found after you log in because it's looking for a link https://ss42.shared.server-system.net/catal...allery_user.php, but is should be https://ss42.shared.server-system.net/~choc...allery_user.php. I couldn't find a place where to change that in your files yet.

     

    Thank you

     

    I fixed the link problem. I guess it's coded in includes/languages/english/gallery.php

    define('TEXT_LINK', 'Click <a href="had to change this link/gallery_user.php">here</a> to add your own pictures to this gallery.');

     

    However, the errors while trying to edit pictures in user_gallery.php remain

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/virtual/site202/fst/var/www/html/catalog/gallery_process.php on line 35

     

    Warning: Cannot modify header information - headers already sent by (output started at /www/html/catalog/gallery_process.php:35) in /www/html/catalog/gallery_process.php on line 43

  11. Your login system does not work. When i log in i get a "page cannot be displayed", however it turns out that i am logged in.

     

    In gallery_user.php, please give me the value of the variable $link, around line 280.

     

    here is the value

    $link = 'gallery_process.php?edit=yes&pID='.$fotos['pID'].'&cID='.$fotos['cID'];

     

    Yes, I know about this issue, it is because I am using an ssl certificate provided by my hosting company, so the https link looks different from non-secure one. The page is not found after you log in because it's looking for a link https://ss42.shared.server-system.net/catal...allery_user.php, but is should be https://ss42.shared.server-system.net/~choc...allery_user.php. I couldn't find a place where to change that in your files yet.

     

    Thank you

  12. Hi Matt -

     

    This is a great contrib! Thank you.

     

    I got the same error as that Armand on Sept 7th

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/autolief/domains/website.com/public_html/catalog/gallery_process.php on line 35

     

    I did as you said and commented out lines 35-43 and added that little piece of code

    echo $cID." ".$pID;

    to gallery_process.php

     

    Now when I go to edit a pic I do see a blank white page and no error anymore.

    what do I do now? the site is chocolategelt.com

    PHP Version 4.4.1

     

    Much appreciated

    Irina

  13. I had a little bit of trouble with the code when I first installed this as well. I downloaded WinMerge - a terrific, free program that compares code in documents - and I found quite a few little things that I missed the first time around. After correcting my code, the mod works great! You can download WinMerge at http://winmerge.org/.

     

    it was one little line and winmerge made all the difference! Thank you!! :D

  14. Text shows up in shopping cart and on checkout page, then it doesn't go through to email or order history and in the database gets overwritten by TEXT instead of the message customer wrote. I looked through this support thread and compared my files over and over to OTF 1.6 files. I don't see anything missing. I also tried what was suggested below (I see that it worked for many people) but no luck. :blink:

     

    Any ideas would be greatly appreciated!

    Thanks!

     

    Looks like I found it in includes/classes/order.php:

     

    Original (well, on a seriously modified site)

     

    'value' => $attributes['products_options_values_name'],

     

    From order.php from install files:

    'value' => $attr_value,

  15. Keith, Thanks.

    I spoke with Fedex and they have me in their production d-base and my meter ID. I changed from 'test' to 'production' in catalog/admin/shipping modules. The code which I have to modify in fedexdc.php now accounts for else / if

    // check for test or production gateway
    if ($server == 'test') {
    define('FEDEX_URI', 'https://gatewaybeta.fedex.com/GatewayDC', true);
    define('FEDEX_HOST', 'gatewaybeta.fedex.com', true);
    }
    elseif ($server == 'production') {
    define('FEDEX_URI', 'https://gateway.fedex.com/GatewayDC', true);
    define('FEDEX_HOST', 'gateway.fedex.com', true);
    }

     

    I don't know where else to change it.

    Thanks!

  16. Please nevermind my previous post.... sorry.

     

    Now just tried installing this contrib. When I roll over product links, they show up as www.mydomain.com/categoryname/productname, but when I actually click on the link I get an error "The server encountered an internal error or misconfiguration and was unable to complete your request".

     

    I read earlier in this thread that it could be due to cookie path in configure.php. I checked mine is set to my domain name (www.domain.com) as described in instructions.

     

    any other ideas?

    Much appreciated!

    irina

×
×
  • Create New...