osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Problem with Gift Voucher/Coupon Email Sent to Customer

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 General Mods Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #21  
Old 12-16-2004, 05:23 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,187
Thanks: 66
Thanked 290 Times in 276 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #22  
Old 12-17-2004, 03:23 PM
New Member
 
Join Date: Nov 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stewj1
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #23  
Old 12-17-2004, 03:33 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,187
Thanks: 66
Thanked 290 Times in 276 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #24  
Old 12-19-2004, 09:06 AM
New Member
 
Join Date: Nov 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stewj1
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #25  
Old 12-19-2004, 09:49 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,187
Thanks: 66
Thanked 290 Times in 276 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #26  
Old 12-19-2004, 11:36 AM
New Member
 
Join Date: Nov 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stewj1
Default

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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #27  
Old 12-19-2004, 06:20 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,187
Thanks: 66
Thanked 290 Times in 276 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #28  
Old 12-28-2004, 04:22 AM
Member
 
Join Date: Dec 2004
Posts: 53
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
malcol27
Default Can I have a little more detail on this solution please?

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #29  
Old 12-28-2004, 04:41 AM
Member
 
Join Date: Dec 2004
Posts: 53
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
malcol27
Default answering my own question.

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 02:54 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax