This is a discussion on Problem with Gift Voucher/Coupon Email Sent to Customer within the osCMax v1.7 General Mods Discussion forums, part of the osCMax v1.7 Forums category; 99.9% of all problems are caused by using the Search Engine safe urls option. It should ALWAYS be turned ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#21
| ||||
| ||||
| 99.9% of all problems are caused by using the Search Engine safe urls option. It should ALWAYS be turned off. It has not been correctly implemented in the core code, and it breaks just about everything...
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
|
#22
| |||
| |||
| Thanks for the info on the Search Engine safe urls option, I didn't know that. I just turned it off and replaced the files I edited (admin/gv_mail, catalog/gv_send) and the Admin Send Gift Voucher Link emailed to the customer is now correct, but the Send Gift Voucher out of the cart still has the osCsid attached to the link https://host246.ipowerweb.com/~categ...8230ae2bb&osCsid=39eba15bf78535607330830ab699def6 Any ideas why? When using this link, it goes back to the session that was used when it was created if the user has not logged off yet. I'm sure it would eventually/hopefully expire, but the customer is already logged in as me, if I haven't logged off yet. And after testing, if I log off the user does have to login, and it is then under their account, but still with the same osCid, in this case 39eba15bf78535607330830ab699def6, weird, but in the admin/gv_mail it is done differently, and works fine without adding a osCid to the end. Please let me know if you also see a osCid in the email sent from the "Send Gift Voucher" portion of the store. |
|
#23
| ||||
| ||||
| Try putting this in your .htaccess file: php_flag session.use_trans_sid off Then close your browser, open a new instance, visit your admin and try sending again. That may solve the issue. I am also going to take a look at the files in question.
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
|
#24
| |||
| |||
| The admin portion is now working fine, the only issue I had with that with friendly URL's was the link was sent incorrectly. The store "Send Gift Voucher" is the one that is sending the osCsid with the e-mail, is there anyway of turning off the osCsid in the store? Thanks |
|
#25
| ||||
| ||||
| Yes, add the following to your .htaccess file in your public_html dir, as I suggested and let me know if it works: php_flag session.use_trans_sid off
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
|
#26
| |||
| |||
| Sorry about the confusion, I thought you mean't the .htaccess file in my admin directory. I made the change in my .htaccess on my public_html file, and I'm still having the problem. https://host246.ipowerweb.com/~categ...a2c37174a&osCsid=8e5a19c5d568ced39077587fd8598778 This is the code in the gv_send.php that is causing the problem: $gv_email .= EMAIL_GV_LINK . tep_href_link(FILENAME_GV_REDEEM, 'gv_no=' . $id1);; I used the code from the admin/gv_mail.php: message .= HTTP_SERVER . DIR_WS_CATALOG . 'gv_redeem.php' . '?gv_no='.$id1 . "\n\n"; and it is now sending the correct link to the customer. https://host246.ipowerweb.com/~categ..._no=32d71a40e6 I don't know if this is just an issue with my site, or not, but that worked for me. Let me know if you see any issues with this. Thanks... |
|
#27
| ||||
| ||||
| I'm glad you have it sorted out finally. I ran a test through the demo shop with the original code that you were having trouble with (appending session id) and it does not happen on the demo shop. I can only guess as to why this is. It can be many different things from session settings in osCommerce to session settings in php.ini. Hopefully your diligence in tracking this down will help others who run across this issue.
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
|
#28
| |||
| |||
| The author says that he used a line of code from the admin/gv_mail.php but does not say if he replaced a part of the original text or a part of the text or just included the new code in the existing /catalog/gv_send.php. Can one of the admins or the author of this post please clarify a bit more? Im having the same problem and the variations I've tried aren't eliminating the osCsid in the customer sent Gift Voucher Emails. Thanks! |
|
#29
| |||
| |||
| I tried a few more things and the fix mentioned above does work, the exact code change is below. change this: Code: $gv_email .= EMAIL_GV_LINK . tep_href_link(FILENAME_GV_REDEEM, 'gv_no=' . $id1);; to this $gv_email .= HTTP_SERVER . DIR_WS_CATALOG . 'gv_redeem.php' . '?gv_no='.$id1 . "\n\n"; that second snippet (as the previous post explains) comes from the admin/gv_mail.php file which is used to send gift vouchers from the admin panel. |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Gift Voucher & Coupon | auntie22 | osCMax v1.7 Discussion | 0 | 03-12-2006 06:55 PM |
| Checkout Problem - Gift Voucher Coupon Zero 0 no balance | kenlyle | osCMax v1.7 Discussion | 0 | 11-07-2005 08:53 AM |
| Gift Voucher: Customer Email problems. Please help! | malcol27 | osCMax v1.7 Discussion | 9 | 12-28-2004 08:00 AM |
| Welcome email and $10 gift voucher? | bsa | osCMax v1.7 Discussion | 13 | 07-23-2004 06:17 AM |
| discount coupon, gift voucher and low order fees | whitezombie | osCMax v1.7 Discussion | 2 | 06-15-2004 02:41 PM |