-
Content count
545 -
Joined
-
Last visited
Posts posted by olsonsp4c
-
-
Tested and slightly adjusted the code above. It works! Thanks so much!
I've updated the addon to 1.4 and made a few other minor changes.
http://addons.oscommerce.com/info/5782
Changes since v1.3
------------------
* Fixed the issue: the order history doesn't show that insurance was ordered (thanks VITW)
* Fixed the issue: going from "Confirmation" back to "Payment" doesn't retain the fact that insurance was requested (thanks VITW)
* Updated insurance rates to current prices (taken from usps.com)
* I have confirmed that 1.4 does work with the osC rc2a PayPal Website Payments Standard, properly carrying over the insurance value
* Updated the Upgrade section
Still could use help with the 2 other known issues in the "What I could use help with" section...
Scott
-
Everybody,
I've updated the addon to version 2.3 and integrated the above fix.
* Missed a multi-lingual reference in the email subject, changed catalog/admin/includes/languages/xxxxxxxxxx/categories.php accordingly.
* Updated the addon to work properly when stock is from "out of stock" to "in stock" and not to include stock increases when stock is already greater than 0 (THANKS to ggbig)
* Updated the instructions to include the option to delete or not delete customer email notifications from the database after the email is sent (added step 2b and 3a/b/c/d)
-
Most likely, your last "}" needs to be moved because it is conflicting with other addons you have installed. I don't know where you need to move it to, you'll have to play around with placement and test your store.
Scott
-
Yes, that really helps. thanks Rich - I'll test the code on my store too at some point soon - and integrate it into the code.
Scott
-
it's going to be a while until I am able to take a look at Paypal integration - could someone else chime in who's successfully done it?
thanks! also, you might want to put specifically which Paypal addon or module you are using - the stock osC rc2a Paypal? Paypal Pro? the old "official" Paypal addon?
Scott
-
hello! i have installed this contribution and get an error when i go to checkout saying contact store owner if you want to ship usps. i changed the fake email in the usps.php file and the error that goes to my email is: please enter a valid zip code. i cannot seem to find this anywhere. could anyone please help me? thanks in advance!go to configuration -> shipping options and enter your zipcode.
-
Hey Scott,I have the same PayPal issue but I cannot figure out where to add the code on the paypal file. It's just too much going on in there and I'm not too PHP savvy.
A little help from anyone would be great.
it depends on which Paypal addon you are using, that's part of the problem... could be either:
paypal_ipn.php OR paypal.php OR ipn.php
Scott
-
So is it safe to say that this MOD only works when the item stock level is manually updated via the Admin Console?Yes - it could be integrated into other addons possibly though.
Scott
-
Version 2.2 is out. Bug 2 from above is fixed.
Since v2.1
----------
* Bugfix: Now sends the correct name in the greeting to each customer when email notifications are sent
* Added support forum in instructions
* Added "What I could use help with" section
http://addons.oscommerce.com/info/3152
Scott
-
OK, I need some help here. Here are the bugs I've found so far and I'm unsure how to fix them.
1. It is supposed to only send emails when stock goes from 0 to MORE than 0 in stock; however, it will send emails whenever the stock is increased. There needs to be a way to query the current (old) stock quantity and store it in a variable (like $prior_products_quantity) and then write an if statement so that the code would look something like this:
// BEGIN Automatic Stock Notification if ($prior_products_quantity == 0) { if ($HTTP_POST_VARS['products_quantity'] > 0){ $audience = array(); $products_query = tep_db_query("select distinct pn.customers_id, c.customers_firstname, c.customers_lastname, c.customers_email_address from " . TABLE_CUSTOMERS . " c, " . TABLE_PRODUCTS_NOTIFICATIONS . " pn where c.customers_id = pn.customers_id and pn.products_id in ( '" . (int)$products_id . "')");
2. If there is more than 1 customer subscribed to product, it sends the name of the 1st customer to ALL customers!!!
That's all I've found so far.
I need help making this work like it was designed to work.
Scott
-
This is the support forum for the addon "Automatic Stock Notification"
http://addons.oscommerce.com/info/3152
This needs to be a community effort, please work together to improve this addon.
Scott
-
Everyone, note that usps priority mail prices have changed... so update your addon!
Scott
-
Help! I installed version 1.3 and I'm having three problems with the module:1) The order history doesn't show that insurance was ordered.
2) The cost is not carrying through to PayPal (but it does carry over to Authorize.net).
3) If I move from "Confirmation" back to "Payment", it doesn't retain the fact that insurance was requested.
What am I doing wrong?
Thanks,
Rich
BTW, I'm not charging tax on insurance.
thanks Rich,
I appreciate the feedback...
Issue 1 - this would be a good feature to consider adding in the future, but I'm not sure how to do it at this point
Issue 2 - with Paypal you will probably have to add the section you added to checkout_confirmation.php to your paypal file - paypal has lots of issues like this
Issue 3 - i've known about this; however, I don't know how to fix it honestly, maybe someone else has an idea - the best idea probably is to use 1.2 which has the selection on checkout_payment.php page, then when they go back, they'll have to reselect insurance. Not optimal, but it's a quicker fix.
Scott
-
Dynamic Sitemap 3.5
Here are changes that I made on my installation to make this work that aren't in the install and some bugs:
1. You can remove this line from admin/includes/filenames.php as it is no longer necessary:
define('FILENAME_CREATE_XML_SITEMAPS', 'create_xml_sitemaps.php');
2. change the file permissions in catalog/dynamic_sitemap.php and in catalog/create_xml_sitemaps.php to 775 or 777
3. in catalog/create_xml_sitemaps has the admin directory hardcoded in about LINE 82, so if you've changed the admin directory, you need to change this too
4. in catalog/dynamic_sitemap.php
find this:
echo '<li>'.$boxHeading[$b]['heading'][$b]; $nb_elements = count($boxHeading[$b]['filename']); if($nb_elements > 0) { if (tep_not_null($boxHeading[$b]['filename'][0])) { echo '<ul>'; for ($f = 0; $f < $nb_elements; ++$f) if (tep_not_null($boxHeading[$b]['filename'][$f])) echo '<li><a title="'. $boxHeading[$b]['boxtext'][$f] .'" href="' . tep_href_link($boxHeading[$b]['filename'][$f]) . '">' . $boxHeading[$b]['boxtext'][$f] . '</a></li>'; echo '</ul>'; } } echo '</li>'; }
change to this:
echo $boxHeading[$b]['heading'][$b]; $nb_elements = count($boxHeading[$b]['filename']); if($nb_elements > 0) { if (tep_not_null($boxHeading[$b]['filename'][0])) { echo '<ul>'; for ($f = 0; $f < $nb_elements; ++$f) if (tep_not_null($boxHeading[$b]['filename'][$f])) echo '<li><a title="'. $boxHeading[$b]['boxtext'][$f] .'" href="' . tep_href_link($boxHeading[$b]['filename'][$f]) . '">' . $boxHeading[$b]['boxtext'][$f] . '</a></li>'; echo '</ul>'; } } }
A few other notes:
1. If you re-uploaded your files, make sure you remember to hardcode your webaddress in catalog/sitemaps.xml
2. If you re-uploaded your files, make sure your file permissions in the catalog directory for all .xml files are set to 666
3. If you re-uploaded your files, make sure your file permissions in the catalog directory for catalog/dynamic_sitemap.php and catalog/create_xml_sitemaps.php are set to 775 or 777
Bugs:
1. In the admin, there is not a cool integrated popup for the xml sitemap creation with rad icons to submit the sitemap to each of 3 different search engines - ONLY the one popup will work at a time presently in my Firefox browser. Once you've clicked one popup, you can't click the others.
2. The Yahoo submission link always popsup saying
This XML file does not appear to have any style information associated with it. The document tree is shown below. − <Success> <Message>Update notification has successfully submitted.</Message> </Success> − <!-- ws05.search.scd.yahoo.com compressed/chunked Tue Jun 17 17:43:03 PDT 2008 -->
thanks for all your work.
Scott
-
I just wanted to say thank you to those who have developed this, especially Steve Dallas for 3.5 because it is the first time the who's online enhancement has been fully functional in my admin. Appreciate the effort.
Scott
-
The only idea I have is to download fresh of both checkout_process.php and the english file and merge them with your existing files and then upload. see if that works.
Scott
-
Hello,All of a sudden my order emails coming missing definitions in Subject: Store EMAIL_TEXT_SUBJECT_1517 EMAIL_TEXT_SUBJECT_2. I thought may be my definition file /includes/languages/english/checkout_process.php became somehow corrupted, but it seems ok and the definitions are there:
define('EMAIL_TEXT_SUBJECT_1', ' Order # '); define('EMAIL_TEXT_SUBJECT_2', 'has been received');
In my checkout_process.php I have:
tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], STORE_NAME . ' ' . EMAIL_TEXT_SUBJECT_1 . '' . $insert_id . ' ' . EMAIL_TEXT_SUBJECT_2, $email_order, STORE_NAME, STORE_OWNER_EMAIL_ADDRESS); //store order number in insert_id for mime export. $insert_id = $order_id; // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { $email_order .= 'Print Invoice: '. "<a HREF='" .tep_href_link(FILENAME_INVOICE_PRINT, 'oID=' . $insert_id, 'SSL') . "'>" . 'order_id = ' . $insert_id . "</a>\n"; tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, STORE_NAME . ' ' . EMAIL_TEXT_SUBJECT_1 . '' . $insert_id . ' ' . EMAIL_TEXT_SUBJECT_2, $email_order, $order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address']); }
What else might cause the problem with broken definitions? Any help will be appreciated.
Thanks.
Most likely it is because your customers used Paypal to pay for the order - you must merge all changes to checkout_process.php into your paypal file in the appropriate place OR you are using another payment module that requires you to merge changes to checkout_process.php into your payment file.
Scott
-
Nevermind the previous post.v4.1.2 is complete!!
Fixed all of the things complained about in this thread including the priority flat rate + priority standard problem
New weight threshold for firstclass and parcelpost for real-time "container" changes inside USPS.php
Looking forward to hearing your feedback.
Thanks Greg!
Scott
-
I apologize - I don't think I'll be able to help with this one as I'm just not familiar with the updated ajax stuff... anyone else out there who can help?
Scott
-
Thanks man, I made progress.... but not enough. I am going to wipe and try them again. Somehow I overwrote the ones I edited and uploaded the ones without editing. But progress!:looks like the edits to includes/languages/english.php are missing
also note that the stylesheet.css file is in the root directory NOT includes/
Scott
-
I has em all zipped as modded if anyone wants to peekI put the files in their directories , and the originals ar in the backup. Im seeing crosseyed after trying to troubleshoot 3-4 mods.. Head needs a break.
N
your shipping insurance inserts should be in checkout_shipping.php - without this, nothing can show up - look there 1st.
Scott
-
Hello, I added this mod and followed the directios to the letter, I activated it in the modules, set the rates, but yet nothing shows for insurance in checkout. Any suggestions where to start fixing?what version are you using?
Scott
-
I've installed 3.0 and everything is working just the way I would like. However, when I edit the usps shipping moduel the following error occurs.Parse error: syntax error, unexpected T_GLOBAL, expecting ')' in /home/texmood/public_html/catalog/admin/modules.php(216) : eval()'d code on line 1
All the codeing looks correct. Can't figure out what is causing this. But, I wanted to fix in order to prevent future issues.
Can anyone direct me to possable causes?
Thanks.
Look at the Troubleshooting section of the install guide.
Scott
-
Lots of issues going on with the USPS changes - don't know if this makes a difference for anybody; however, I'm still using 3.0 on my site and getting accurate quotes just fine domestically (haven't tested international). The catch is that it quotes the new "regular" USPS rate rather than the "discounted" Click n Ship Rate.
So, if you are in a bind, revert!
Scott
Package Tracking with Email Notification Mods
in General Add-Ons Support
Posted · Edited by olsonsp4c
It should work with Google Checkout, but I have not tested it personally. It works independent of most payment solutions, with the exception of Paypal - the changes made to checkout_process.php must be integrated into the paypal ipn in order for the order email to send properly. If a payment solution overrides the default oscommerce order email (like paypal does), then you'd have to modify that payment solution's file(s) as well.
I personally use the old osCommerce Official Paypal IPN addon version 1.4 because I like things simple that just work. However, I too wanted both Paypal and Google Checkout and couldn't figure out a way to integrate both into the checkout process at that time. This may be possible now, but I haven't checked. I wanted them both as options on the checkout_payment.php page without having buttons throughout the whole store and such...
Scott