#229 Cannot add product variant

Posted in ‘Technical Support / Bugs’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Adam Melcher on Wednesday, 02 April 2025 22:03 UTC

Sigrid Gramlinger

I cannot add a product variant.

Steps to reproduce:

  1. Open an existing product with variants.
  2. Add another option value (i.e. size).
  3. click re-generate variants and confirm with yes.
  4. nothing happens
  5. click save
  6. after reload your variants are removed. the variant list is empty.
  7. click generate variants

Expected result:
Variants should be recreated

Actual result:
nothing happens

This is on a live site - I really need a fix soon.

Thanks!

 

Adam Melcher

Sigrid,

 

There is an old field in the database from Joomla 3 that is the cause of your headache.  To fix this before the upcoming release, you can simply remove the field (should be the last one if it's there) in the #__j2store_variants table (campaign_variant_id) and your variants products will work again...

 

Adam

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Stay Updated

Subscribe for free and be the first to know about the latest features, updates, and new additions.