Jump to content

sokkerbob

Members
  • Content count

    63
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Bob Andresen
  • Location
    Des Moines, WA USA
  • Interests
    Computers, Soccer,
  • Website
  1. I just got done getting this to work. Here is what I did First, I made copies of *.gif files into *.png files per directions. This gave me two types for each picture. Then in admin/pdf_catalogue.php I made the following changes About line 145 after function ShowImage(&$width,&$height,$link,$path) { I added this line so the entry in database would be changed. $path = str_replace('.gif','.png',$path); So when you are all done it should look like this function ShowImage(&$width,&$height,$link,$path) { $path = str_replace('.gif','.png',$path); Then on about line 348 I changed if(SHOW_IMAGES && strlen($data_array[11])) to this if(SHOW_IMAGES && strlen($data_array[12]) > strlen(DIR_FS_CATALOG.DIR_WS_IMAGES)) This was the big problem with the script. First it was calling the wrong element in the array and then it was looking for an image when there was none present. If you had images for every product, there would be no problem. If you did not, you would get error file not found Last on line 359 I changed $heightwidth=getimagesize($data_array[11]); to $heightwidth=getimagesize($data_array[12]); Again it was calling the wrong element of the array. The element in $data_array[11] was for the language which is why you were getting the file named "en" (English). Hope this helps.
  2. sokkerbob

    Payflow Link Problem...

    Ok, what the problem is that the verisignreturn.php script as it is written updates the shopping cart when it receives a silent return from verisign. This includes even when the credit card is denied. The original author of script expected us to hit the return to site button which would only occur if the transaction was approved. Since we are using the silent return method which sends data even if the transaction is denied, you need to add an if clause that keeps script from executing if the card is denied. Check out this thread. http://forums.oscommerce.com/viewtopic.php?t=47399 FYI the reason i check for the variable "result" to be 0 is because according to their documentation this in only code that is used for an approved transaction.
  3. sokkerbob

    [Contribution] Ship In Cart

    Thank you for zip code chart. With a little work, one could crossreference so would work with all zones. But that will be another day.
  4. sokkerbob

    [Contribution] Ship In Cart

    I did a dirty little hack that made it work. 1. I determined range of zip codes for Washington which looked like numbers from 98000 to 99999. 2. Then I added an if statement above this line if (CART_OT_SHOW == 'true'){ // bof damned we need the taxes if not logged in ... if (!tep_session_is_registered('customer_id')){ $products = $cart->get_products(); that changed code to this if ($cart_zip_code >= '98000' && $cart_zip_code <= '99999') { $tax_zone_id = '62'; } if (CART_OT_SHOW == 'true'){ // bof damned we need the taxes if not logged in ... if (!tep_session_is_registered('customer_id')){ $products = $cart->get_products(); 3. Then I changed the following lines $products_tax = tep_get_tax_rate($products[$i]['tax_class_id'], $order->delivery['country_id'],$order->delivery['zone_id']); $products_tax_description = tep_get_tax_description($products[$i]['tax_class_id'], $order->delivery['country_id'], $order->delivery['zone_id']); to this $products_tax = tep_get_tax_rate($products[$i]['tax_class_id'], $order->delivery['country_id'],$tax_zone_id); $products_tax_description = tep_get_tax_description($products[$i]['tax_class_id'], $order->delivery['country_id'], $tax_zone_id); I did some quick testing and do not see any problems.
  5. These are new files that came out after MS1. If you are using an older snapshot you will not have. The filenames and database_tables use to be defined in application_top.php, but they were moved to separate files you mentioned
  6. I tested everything and all is still working. This is the contribution I used http://www.oscommerce.com/community/contributions,967
  7. I am at work now. Last check, my verisignreturn script was working. I will check when I get home. There were two contributions that came out at about the same time. I do not remember which one I used, but all I did was what you mentioned and I did not receive any errors.
  8. Unless they have change recently,I do not think you can avoid the payflowlink.cfm page from displaying. I also tried everything I could think to workaround the problem.
  9. I am not quite sure what module you are using. The most recent ones are designed for the new checkout process which was implemented in November 0f 2002. I have payflow link working on test site in test mode, but I am also using snapshot from february of this year 2003. It sounds like you might be using a new version of the module with an older snapshot.
  10. I had same problem. You are right on track. Just replace with code provided for product_listing.php.
  11. FYI. Problem was instead of having a product_listing.php file, I had a product_listing_col.php file. I changed code for product_listing per instruction, but did not change product_listing_col.php file. All is fine now. Works perfectly.
  12. Thanks Ian and Josh. I will re-read the instructions again. But first I will make sure I have a good night's rest. As I mentioned before, I know just enough to miss the obvious. Keep up the good work
  13. Hey thanks for the contribution. However, I am having troubles getting item to display in shopping cart after changing the HTTP_GET_VARS to HTTP_POST_VARS. Clicking the "Buy Now" button sends me to shopping_cart.php, but there is no information. However, I can go through the entire checkout process like there is an item in cart (It even sends me an email confirmation with no products listed and the "ghost" order shows up in the Admin section). After I have processed order, the cart will empty the "ghosts" and if I click on shopping cart button I will get message that "shopping cart is empty!" It seems like item is not getting added to properly to database (which I assume is the sessions DB) If I change back to HTTP_GET_VARS, everything is fine. I tried on two snapshots and both are post Nov 16. (One is Ian's November loaded) I found one thread http://forums.oscommerce.com/viewtopic.php?t=32946 that was having similar problems but they went away for some mysterious reason before the solution could be found Any ideas? I know just enough about PHP to be dangerous.
×