osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Request a Review

This is a discussion on Request a Review within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; For some reason last_modified value for the purchased items didnt worked for me so i changed a little code to ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 03-20-2008, 05:24 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,968
Thanks: 80
Thanked 345 Times in 324 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
Post Request a Review

For some reason last_modified value for the purchased items didnt worked for me so i changed a little code to look not in last modified date but in the date item was purchased, everything else works :



i installed this contribution and it didnt worked for me so i modified it a bit:

==========================
in reviews_mail.php FIND:
===========================

$orders_query = tep_db_query ("select o.customers_name,
o.customers_email_address,
o.orders_id,
o.last_modified
from " . TABLE_ORDERS . " o,
" . TABLE_CUSTOMERS . " c
where o.orders_status = '3'
and o.reminder_sent = '0'
and c.customers_id = o.customers_id
" . $newsletter_only . "
");


==================
AND REPLACE WITH:
==================

$orders_query = tep_db_query ("select o.customers_name,
o.customers_email_address,
o.orders_id,
o.date_purchased
from " . TABLE_ORDERS . " o,
" . TABLE_CUSTOMERS . " c
where o.orders_status = '3'
and o.reminder_sent = '0'
and c.customers_id = o.customers_id
" . $newsletter_only . "
");



==================================
As you can notice diference is in last_modified ( this value never modifies on purchase so i changed it to date_purchased
==================================





=====
FIND:
=====

if (strtotime ($orders_array['last_modified']) < $timestamp) { // Delay time has expired


=========
REPLACE:
=========


if (strtotime ($orders_array['date_purchased']) < $timestamp) { // Delay time has expired

More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • 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. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

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
Request a Review michael_s New osCommerce Contributions 0 02-20-2008 06:11 PM
Request a Review michael_s New osCommerce Contributions 0 02-18-2008 09:31 PM
Request a Review michael_s New osCommerce Contributions 0 10-17-2007 11:22 AM
Request a Review michael_s New osCommerce Contributions 0 10-16-2007 09:03 PM


All times are GMT -8. The time now is 04:05 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax