moving from e-commerce module to ubercart guide

Posts: 128
Joined: 08/12/2007
Bug FinderGetting busy with the Ubercode.

Hello,

After realizing how great ubercart is. I'm woundering if there's a guide somewhere as to how to make the transition from the e-commerce module to ubercart. I'm sure that installing the module while e-comm is still installed isn't a good idea.

so if any one has some tips, or any problems that they encountered and want to share that would be great, and this might make a good thread =).

Idan

Posts: 3744
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Oh.. bummer, I had a good post on that that has been wiped. I'll repost it here...

There were a couple threads... in one I had these instructions:

Hmm... so this is a case where you were using e-commerce on a site, removed those modules, and then installed Ubercart on the same site? I'm not entirely sure what issues that would create, but I can offer a little bit of help on a guess. This is a process that should remove any remains of the systems and give you a "clean" install:

  1. Make a backup of your directory and your database!
  2. Go ahead and remove Ubercart again.
  3. From your admin interface, remove any product nodes you have created. Remove any taxonomy vocabularies related to e-commerce or Ubercart.
  4. Clear all your cache tables. So anything called cache or cache_* just truncate. (On phpMyAdmin you do this with the Empty button.)
  5. In the node_type table make sure there are no e-commerce or Ubercart entries hanging around.
  6. Remove e-commerce and Ubercart related rows from the sequences table.
  7. Scan through the variable table and remove any rows related to e-commerce and Ubercart. For Ubercart, it should be anything prefixed with uc_, but I can't vouch for the e-commerce variables.
  8. Scan through the system table and make sure there aren't any rows hanging around from the e-commerce or Ubercart modules.
  9. Try the install again and hope for the best! Eye-wink

And +1 on your idea to have renaming on product classes.

(Please note: the ideal situation is to not attempt to install Ubercart over e-commerce. It's just difficult, and because these modules are both large packages, something will probably slip through the cracks and not work totally right.)

Posts: 28
Joined: 08/08/2007

They both create content type 'Product'. If it weren't for that, you could install them simultaneously and use the 'on the fly node type changer' module (lost the link) to port your nodes.

Jonathan Lambert (not verified)

Can't we just change the type to Ubercart and save insane amounts of headaches? We've got a bunch of clients who want to move over, but don't want to bear the re-implementation cost.

Cheers!

Jonathan Lambert

Posts: 2
Joined: 10/04/2007

Here's what I did after reading the other posts in this thread:

0. Backup or dump the contents of the database, copy your current drupal setup in your webdirectory to another folder, maybe call it www_bak . Realize that if you tried to install ubercart without cleaning out the ecommerce that you will need to also clean out ubercart records.

1. Print out the descriptions of your current products for reference later. You may want to reenter the products when ubercart is running and not have to rethink your descriptions. Also comes in handy when deleting records in _node_type later in this list. If you forget try using Google's cached pages of your website.

2. Be sure you moved your ubercart folder out of ../modules/ , that is, if you tried to install ubercart without vacuuming for ecommerce first.

3. Move your ecommerce folder out of ../modules/

4. Delete your ecommerce tables from your database that refer to any ecommerce module. Usually done through PHPMyAdmin.

5. Realize that you may have to review the _taxonomy table also. I didn't have to review the records in this table.

6. Empty any table with the name cache, this includes _cache_filter, _cache_menu, _cache_page. As Ryan says, use the Empty button if you're using PHPMyAdmin.

7. Remove records that are products in the table _node, this will be pretty clear. Remove records that are products in _node_type, this is not so clear so refer to your product printout in step 1. Eyeball the other _node tables for product entries.

8. Remove records in the table _system that mention ecommerce. If you installed ubercart then clean out those records also.

9. Install ubercart.

Hope that helps.

Posts: 3744
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

There may be someone out there with a migrate script... not entirely sure. You might try PMing kulvik or quaoar, although it may have just been specific to the e-commerce site they migrated. Worth a shot!

Posts: 9
Joined: 01/05/2008

Hi, it's my first post on uc.org forum!
I'm migrating from ec on uc on wip site.

Ryan wrote:

  • Scan through the variable table and remove any rows related to e-commerce and Ubercart. For Ubercart, it should be anything prefixed with uc_, but I can't vouch for the e-commerce variables.

  • I think it's all ec_* rows in variable table.
    As for me http://www.ubercart.org/comment/241/Re-moving-e-commerce-module-ubercart... works perfectly. But I would like to know is thete any way to keep vocubulary from eC?

    --

    Nosce te ipsum

    Posts: 1850
    Joined: 08/07/2007
    AdministratoreLiTe!

    If it's just a vocabulary, it should be fine. The uc_catalog module will let you choose which vocabulary you want to use as the catalog so that preexisting categories can be used.

    Posts: 21
    Joined: 01/29/2008

    Do you guys suspect that imagecache presets left over after an ecommerce module purge could be preventing the Add to Cart button from appearing on product pages? After I deleted all imagecache presets, I returned to Store Administration and clicked on the Images fix under Status messages: and it created new imagecache presets properly. Products could then be added and the Add to Cart button displayed as expected on the product page.

    Posts: 1850
    Joined: 08/07/2007
    AdministratoreLiTe!

    Actually, I don't know how imagecache would affect the Add to cart button. I don't believe they should have anything to do with each other. Maybe fixing the presets also fixed the product template somehow.

    Posts: 1
    Joined: 02/15/2008

    i would like to get ecommerce for drupal 6

    Posts: 9
    Joined: 01/05/2008

    2shibu
    If I am not mistaken, porting Ubercart for version Drupal6 will start after release:)

    --

    Nosce te ipsum

    Posts: 2
    Joined: 06/11/2008

    Additional prefixes for the variable names in the e-commerce variable table:
    ec_
    paypal_
    payment_
    shipping_
    product_cart_