Results 1 to 10 of 10

Well crapolla I need help

This is a discussion on Well crapolla I need help within the osCMax v2 Features Discussion forums, part of the osCmax v2.0 Forums category; I just uploaded model/price/quantity using easypopulate to change prices which works great but it made all my products New Products ...

      
  1. #1
    osCMax Testing Team
    Join Date
    Sep 2004
    Posts
    357
    Rep Power
    10


    Default Well crapolla I need help

    I just uploaded model/price/quantity using easypopulate to change prices which works great but it made all my products New Products for August!!!!! How do I fix that one?

    It doesn't even have date on model/price/quantity database on easypopulate GO FIGURE!

    Help would be appreciated Thanks

    BKPIE

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default Re: Well crapolla I need help

    That is a new one on me

    You could export your table as sql file, then to a search and replace on the product date, making it an earlier month. Then re-import the sql.

    I would be interested to know if it put today's date in there.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    osCMax Testing Team
    Join Date
    Sep 2004
    Posts
    357
    Rep Power
    10


    Default Re: Well crapolla I need help

    Yep Today's date

  4. #4
    osCMax Testing Team
    Join Date
    Sep 2004
    Posts
    357
    Rep Power
    10


    Default Re: Well crapolla I need help

    Alright I exported the products table in sql on test site and checked drop table if exists and used insert

    I then did a replace of 2007-08-11 with 2007-06-11 It seemed to work as new products disappeared on the test site so I did it on the live site and the new products disappeared but then products got jumbled everywhere accross categories some rings in charms some bracelets in pendants etc. So I assume some other numbers got changed with the replace that shouldn't have. I restored my old database which I smartly backed up

    How do I do it so it just replaces date product added? Not great with mysql

    Thanks

    Bkpie

  5. #5
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default Re: Well crapolla I need help

    Do it again, and this time make sure you only change the date

    That would be my suggestion.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  6. #6
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    21


    Default Re: Well crapolla I need help

    STOP.

    There is this cool tab in phpmysql called... get this... SQL. In that tab you want to put a single sql command that looks like (please not this is an example, I have not tested this sql statement)

    Update products set date_added = '2007-06-11" where date_added = '2007-08-11'

    Basically, let SQL do what SQL does best.
    so endith the lesson
    <think>sometimes I just sit's and thinks</think>
    "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB

  7. #7
    osCMax Testing Team
    Join Date
    Sep 2004
    Posts
    357
    Rep Power
    10


    Default Re: Well crapolla I need help

    Ok Michael very cute! MET00
    Sarcasm dosen't suit you. Did you miss the part that I have trouble with MY SQL I have worked hard to help other people on this forum and add things to oscmax and if all I get back is sarcasm then that SUCKS!!!!!

  8. #8
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    21


    Default Re: Well crapolla I need help

    1) I wasn't being sarcastic

    2) I was telling you to use phpmysql directly to do an update on the products table date_added field

    3) There is no export or import, this is just a straight mysql call. the example I used should take everything from the products table that had the date in the field that you wanted to change and changed it to the date you wanted to insert.

    4) phpmysql actually does have a tab called SQL once you select the database and that's the tab you will select to enter the sql statement to do the field update

    5) if I was being sarcastic I would have told you to wait until next month and then all the products wouldn't show up as new anymore.
    so endith the lesson
    <think>sometimes I just sit's and thinks</think>
    "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB

  9. #9
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default Re: Well crapolla I need help

    I think it is time to take a deep breath and if you drink, crack open an icy cold beer...



    Ahhhh.. that is better.

    Now, lets get back to business.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  10. #10
    osCMax Testing Team
    Join Date
    Sep 2004
    Posts
    357
    Rep Power
    10


    Default Re: Well crapolla I need help

    Sorry, just had a wicked headache and when you get excited you got a response on your question after you have been pulling your hair out trying things and then find it didn't help hence the frustration.

    For those who ever want to change the date added or modified or whatever here is the sql query just change which field you want to modify. I just changed all since I could not get it to replace Back up first

    update products set products_date_added='2007-06-11 17:10:59'

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •