Hi.

I was setting up a Ubercart multilingual website, and was astonished to see that the module does not work for translation forms.

Indeed, we have linte 66 :

    // Don't change form when node is being prepared for translation
    if (!empty($form["#node"]->translation_source)) {
        return;
    }

Which means PWT is skipped in this sort of forms.

Honestly I don't know why... For me we should only not auto generate the sku in these forms as it has been already generated (but I work with a synchronizing module, so it is a bit different).

Comments

millenniumtree’s picture

Um, why is it skipping PWT for translations?
I am auto generating the SKU (node ID only) and now my translations won't translate (it says SKU is a required field).

ermannob’s picture

I'm going to comment that out and report if any problems arise.

gigi_igig’s picture

I've same problem , have you solved commenting these lines?

Anonymous’s picture

I have the same problem with the 7.x-dev version of Power Tools. Commenting out the portion of code does the trick. Is there any reason for this implementation? I don't understand why one would want to have auto generated SKU's for original language nodes and not for translated nodes.

  • stefan.r committed 633b51e on 7.x-1.x
    Issue #927480: Use Product power tool for translation form
    

  • stefan.r committed acca2e2 on
    Issue #927480: Use Product power tool for translation form
    
stefan.r’s picture

Version: 6.x-1.9 » 7.x-1.x-dev
Issue summary: View changes
Status: Active » Fixed

Commented out in 6.x, 7.x

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.