Problem/Motivation

When the product's original language's product variation is inactive and you create a translation with the product variation being active there will be no add_to_cart form.

Steps to reproduce

Status must be a property that is translatable.

1) Create product in with an inactive variation in en language.
2) Translate this product (e.g. into german) and set the variation to active
3) View the german tranlation... and you will not see the add to cart form.

Proposed resolution

- get correct translation in the class: ProductLazyBuilders

CommentFileSizeAuthor
#8 2974711-7.patch2.55 KBcarsteng
#6 2974711-6.patch2.68 KBcarsteng
#2 2974711-1.patch2.32 KBcarsteng
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

carstenG created an issue. See original summary.

carsteng’s picture

StatusFileSize
new2.32 KB

And here is the patch.

carsteng’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 2: 2974711-1.patch, failed testing. View results

carsteng’s picture

Issue summary: View changes
carsteng’s picture

Status: Needs work » Needs review
StatusFileSize
new2.68 KB

Patch updated.

Status: Needs review » Needs work

The last submitted patch, 6: 2974711-6.patch, failed testing. View results

carsteng’s picture

Status: Needs work » Needs review
StatusFileSize
new2.55 KB

Status: Needs review » Needs work

The last submitted patch, 8: 2974711-7.patch, failed testing. View results

subhojit777’s picture

Looks like the problem is from this issue #2973234: Make file name match config id in product and store. This also needs tests to support the change.

sjerdo’s picture

avpaderno’s picture

Issue tags: -Commerce (duplicate)

I am replacing the duplicate issue tags used in the past. I apologize for bumping this issue.

vmarchuk’s picture

Status: Needs work » Closed (duplicate)

Fixed in this issue https://www.drupal.org/project/dc_ajax_add_cart/issues/3541983 and will be available in version 3.0.0.