Support Forums

Old 12-26-2008, 05:23 PM   #1
Senior Member
 
Join Date: Sep 2006
Posts: 226
Rep Power: 15
Tim_A is on a distinguished road
Default Deleting Products - what are the implications?

Hi all,

what are the implications of deleting our products and creating new ones?

For instance:

Our 'Business' category has 2 products - 'text listings' and 'photo listings'.

What would happen when it comes to advert renewals/upgrades if we deleted them both, and made a single 'Business Listing' product?

Cheers

Tim
__________________
V4.0.9 Developer
Tim_A is offline   Reply With Quote
Old 12-26-2008, 11:41 PM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,792
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

Very good question. I believe this would cause problems with renewals and if they edit their listings because listings are tied to packages. If it is deleted it wouldn't find the new one.

The good news is in v4.1 I have added a way to make packages hidden but that version isn't officially out yet. In the meantime the only way to do what you describe is to manually edit the db and change the package on those listings to your new one.
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 12-27-2008, 09:05 AM   #3
Moderator
 
 
Join Date: Mar 2006
Posts: 4,150
Rep Power: 102
Lhotch is just really niceLhotch is just really nice
Default

What if you created your new package, left the old packages in tact but just hid them at the template level until a later time when you know all the existing ads that used those packages would be gone?
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 12-27-2008, 07:43 PM   #4
Senior Member
 
Join Date: Sep 2006
Posts: 226
Rep Power: 15
Tim_A is on a distinguished road
Default

Hi both, thanks for the replies.

Not exactly ideal though... I wonder how many people have done this without even realising the implications...

If I was to change the packages via the DB (all 832 of them!) would I simply have to change the package name to correspond to the new one, or is there a further edit i'd need to do?

Thanks for any help

Tim
__________________
V4.0.9 Developer
Tim_A is offline   Reply With Quote
Old 12-29-2008, 10:42 AM   #5
Senior Member
 
Join Date: Sep 2006
Posts: 226
Rep Power: 15
Tim_A is on a distinguished road
Default

okay... looking into it the likely table for changes is _orders

if I change 'oProductID' and 'oProduct'

to the respective product id and product name, is this all I have to change, or are they referenced elsewhere in the database?

Cheers for any answers

Tim
__________________
V4.0.9 Developer
Tim_A is offline   Reply With Quote
Old 12-29-2008, 10:53 AM   #6
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,792
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

I think this is the only thing but I am not 100% sure. I would recommend first creating a database backup before trying this to make sure you can revert back in case it doesn't work.
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 12-30-2008, 02:57 AM   #7
Member
 
Bronxgodzilla's Avatar
 
Join Date: Jun 2008
Posts: 66
Rep Power: 5
Bronxgodzilla is on a distinguished road
Default

Hi Tim

Very good questions, indeed! Personally I believe the direct db manual update the way to go.

From my preliminary review and playing with the db before I got into 68C I would say those two tables are correct, as Eric (who should know ) states. However the way to be 99.9 percent certain would be to do a search on the calls to/from both Orders tables and see if any other tables could be being updated/incremented/decremented when you delete your products. I am barely familiar with 68C code, but many other db-related languages operate in a similar manner so I cannot see why 68C with its mySQL would be too different. Definately backup the db before doing so. A few simple tests should tell you whether or not you are on the right track.

Good Luck, and please keep asking good questions!

BG
__________________
Using Version 4.0.9 Developer Edition & loving it
Bronxgodzilla is offline   Reply With Quote
Old 12-30-2008, 03:11 AM   #8
Senior Member
 
Join Date: Sep 2006
Posts: 226
Rep Power: 15
Tim_A is on a distinguished road
Default

Thanks for the replies all.

I duplicated the orders table and ran some SQL queries to re-assign product ids and product names which seemed to work just fine.

I've since ran these queries on the live table (after backing up of course!!) and all seems to work fine, renewals, upgrades, orders all seem to work as normal

Is this something that can be addressed in a more user-friendly way in v4.1 ?

Cheers

Tim
__________________
V4.0.9 Developer
Tim_A is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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
Manage Products Bug? island1 v4 Questions & Support 3 12-12-2008 11:53 AM
Products blown away in upgrade cheesegrits v4 Questions & Support 3 10-27-2008 07:55 PM
products arrangement centinel3 v4 Modules / Modifications 2 08-08-2008 12:14 PM
Compare products: Geodesic vs 68 jds41979 Pre Sales Questions 5 05-08-2008 10:58 AM
Featured Products pbraz v3.1 Questions & Support 1 02-04-2007 08:59 AM


All times are GMT -4. The time now is 10:37 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0