Jump to content

Maverick529

Members
  • Content count

    15
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Pierre Steph
  • Location
    France
  • Website
  1. Maverick529

    CSS Menu

    Hi Guys some troubles with this css menu few weeks ago, i had to change for the old ms2 menu... >_< It worked perfectly for a year and troubles appeared suddenty, without code modification... Now, I get these errors Warning: Invalid argument supplied for foreach() in /home/Www/xxxxxx/includes/boxes/categories.php on line 243 line 243: foreach($categories_start as $key => $value) { Warning: Invalid argument supplied for foreach() in /home/Www/xxxxxx/includes/boxes/categories.php on line 251 line 251: foreach ($cat_subs[$parentID] as $v) { //$categories = tep_db_fetch_array($categories_query) Can't explain this problem... Any ideas? For information: PHP Version 4.4.6 used
  2. Maverick529

    NEW! Complete Order Editing Tool!

    Hello djmonkey1 ;) I confirm the tax problem... And another one, with the payment method dropdown... When editing an order, by default, the payment method in dropdown is set to the first of the list, instead of this who has been selected by the customer... If you don't pay attention, when updating, you change the payment method to a wrong one.... ;)
  3. Maverick529

    Enable/Disable categories contribution

    Hi Guys I had installed too this mod on my Creload and I adapted it... It works almost great but products in disabled categories are still reachable using URL... :( Can't find where is the problem... HEEEEEEEEEEEP ........ :blush: :lol: dandelion, here comes the modified request of my main_categories.php ... // #################### Added Enable / Disable Categories ############## // $query = "select c.categories_id, cd.categories_name, c.parent_id, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION ." cd where c.categories_id = cd.categories_id"; $query = "select c.categories_id, cd.categories_name, c.parent_id, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION ." cd where c.categories_id = cd.categories_id and c.categories_status = '1' "; // #################### End Added Enable / Disable Categories ############## Enjoy ;)
  4. Hi zipper it wasn't 'images/alert/tick.gif' as you said.. But: $indicator = 'images/icons/tick.gif'; This is an existing icon on my creload 6... That's the reason why I choose it... ;)
  5. Hi guys :D here comes the solution, from the frenchie :lol: , to display an other icon for closed orders... B) // contact alert mod start $last_mod_day = tep_date_yc($orders['last_modified']); $purchase_day = tep_date_yc($orders['date_purchased']); if($last_mod_day == null) { $indicator = 'images/alert/new.gif'; } else { if($today - $last_mod_day >= $daycount_2) { $indicator = 'images/alert/red.gif'; } elseif($today - $last_mod_day >= $daycount_1) { $indicator = 'images/alert/yellow.gif'; } else { $indicator = 'images/alert/green.gif'; } } if ( $orders['orders_status_name']==$orders_status_array[3]) $indicator = 'images/icons/tick.gif'; // contact alert mod end Check fist in your database if your orders_status_id is set to 3, like me, for closed order (sent order) Else, change it accordingly to your id ($orders_status_array[your_id] Enjoy B) Thx to my firend pierrick for this code... :thumbsup:
  6. Hi zipper just a question could you confirm to me this code is ok? // contact alert mod start $last_mod_day = tep_date_yc($orders['last_modified']); $purchase_day = tep_date_yc($orders['date_purchased']); if($last_mod_day == null) { $indicator = 'images/alert/new.gif'; } else { if($today - $last_mod_day >= $daycount_2) { $indicator = 'images/alert/red.gif'; } elseif($today - $last_mod_day >= $daycount_1) { $indicator = 'images/alert/yellow.gif'; } else { $indicator = 'images/alert/green.gif'; } } // contact alert mod end It shouldn't be like that? // contact alert mod start $last_mod_day = tep_date_yc($orders['last_modified']); $purchase_day = tep_date_yc($orders['date_purchased']); if($last_mod_day == null) { $indicator = 'images/alert/new.gif'; } else { if($today - $last_mod_day >= $daycount_2) { $indicator = 'images/alert/red.gif'; } else { if($today - $last_mod_day >= $daycount_1) { $indicator = 'images/alert/yellow.gif'; } else { $indicator = 'images/alert/green.gif'; } } } // contact alert mod end Thanx for your answer ;)
  7. Found.... Thanx to my friend, Oneill :thumbsup: It was a creload problem... in checkout_process.php, we can find: 'last_modified' => 'now()', Just remove it and it works... :thumbsup:
  8. ouups, I wasn't editing the right file, sorry :blush: but now, with this code, warning icon is displayed for all order recorded and/or modified the same day (it doesn't care about the hour, only the date)... :'(
  9. Hi zipper you right :thumbsup: I was checking my Orders table and the field last_modified is not Null by default but displays the same date than date_purchased ... I'm using a french creaload 6, not a ms2.2, may be that's the reason why... I've tried to modify the code like that: $last_mod_day = tep_date_yc($orders['last_modified']); $purchase_day = tep_date_yc($orders['date_purchased']); if($last_mod_day == $purchase_day) { instead of $last_mod_day = tep_date_yc($orders['last_modified']); $purchase_day = tep_date_yc($orders['date_purchased']); if($last_mod_day == null) { but green icon is still diplayed... What can I do? ;)
  10. Yep... Just a small bug... I'm checking my shop with this new mod installed and when a new order is recorded, before any update, green smily is displayed instead of warning icon... :'(
  11. Hi, guys... Thanx for this great mod... :thumbsup: What brightlaserlights said seems to be a good idea... We could also display a new (different) icon when order status is "delivered" ... ;)
  12. Maverick529

    [Contribution] Admin Notes

    Here comes a picture of my mod... This is the code I've added to display this text area: <!-- Modif Admin Notes //--> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top" class="main">Notes Administrateur :</td> <td class="main"> <?php if ($processed == true) { echo $cInfo->customers_notes . tep_draw_hidden_field('customers_notes'); } else { echo tep_draw_textarea_field('customers_notes', 'soft', '75', '5', ($cInfo->customers_notes)); } ?></td> </tr> </table></td> </tr> <!-- Modif Admin Notes //--> But now, I need the query to display customer's admin notes, from customer's profile, inside this text area... ;) Somebody could provide it to me? Thx for all... :thumbsup:
  13. Maverick529

    [Contribution] Admin Notes

    Hi Pop :D Your last release displays the admin notes for customers in the Edit Customer page of Admin... notes availables in the customer's profile. I would like to display these notes in the Edit Customer's order page (/admin/orders.php?selected_box=customers&page=1&oID=30&action=edit), just before the ordered products list.... ;)
  14. Maverick529

    [Contribution] Admin Notes

    Ouuups, sorry.... :blush: In fact, I was talking about Customers Notes instead of Admin Notes.... :-" So I'm waiting for your reply :thumbsup:
  15. Maverick529

    [Contribution] Admin Notes

    Hi guys ;) great contribution, congratulation... :thumbsup: I would like to know if somebody has included admin notes in admin/orders.php... It should be great to display and to edit these notes, just under customers infos, when we edit the customers orders.... Very useful to read them if a customer is a bad payer or in case of security problem (banned customer, banned country... ) It seems to be a good idea, isn't it? (sorry for my bad english, I'm french... ;) )
×