I have port Ubercart Attribute Clone to Drupal 7.

The d7 module is packaged with a zip file. just download and decompressed then copy the module folder to your site 's module path.

Some changes
1) Modified to work on both node clone methods

Method to use when cloning a node
Pre-populate the node form fields
Save as a new node then edit

2) Add clone the label of the attributes. See #906250: Add clone the label of the attributes

Thanks all.

Dedicated servers for cheap from http://serveryou.com/

CommentFileSizeAuthor
uc_attribute_clone.zip7.18 KBwqmeng

Comments

jawi’s picture

Title: Drupal 7 port for Ubercart Attribute Clone » drupal 7 version tested | Works greet!!
Status: Needs review » Fixed

We're using the d7 module of Ubercart Attribute Clone for some months now and everything works great.

Great new feature would be that the assigned dependencies of attributes to parent options can also be copied as well.

Time for an official release?

wqmeng’s picture

Title: drupal 7 version tested | Works greet!! » Drupal 7 port of Ubercart Attribute Clone RTBC
Assigned: wqmeng » Unassigned
Status: Fixed » Reviewed & tested by the community

@Jawi

Thank you for your review, and I change it to "reviewed & tested by the community", so that the maintainer may think to add it to the next release.

UK_Rogue’s picture

Recently started to get problems with this port.

"Recoverable fatal error: Argument 2 passed to db_query() must be an array, string given, called in /var/www/vhosts/mysitefolder/sites/all/modules/uc_attribute_clone/uc_attribute_clone.module on line 50 and defined in db_query() (line 2313 of /var/www/vhosts/mysitefolder/includes/database/database.inc)."

This affects cloning of product classes with or without attributes. The product itself is cloned and published but no attributes are copied and the auto url path is not created (generally occurs after successful cloning).

Thanks

Update: Finally managed to get this working.
1. There was a conflict with option images so I disabled the images.
2. The patch doesn't match the module, so I copied the entire patch and replaced the function, then deleted + and -. I now have a working version which helps when you have 20 options on some product!!!

breaktheissue’s picture

Great Work thank you
Saved lot of time..!!

This could be solution for https://www.drupal.org/project/uc_attribute_clone.