Jump to content

Product Does Not Exist In This Combination


Recommended Posts

Hi,

I recently upgraded from 1.6.0.1 to 1.6.1.2. I first did it on a testsite to ensure that everything would work out fine. After solving a few small issues I upgraded the main site http://prima-test.dk and fixed the same small things.

Today I just discovered that on the main site I get this message (in Danish though) : "Product does not exist in this combination. Please select a different combination." The test site doesn't give me this error which is quite confusing since they're supposed to be identical...

What is also confusing is that I don't use any combinations or variants. I have used it on a few products before, but they have been disabled months ago and today I even tried deleting all combinations/variants and disabling it altogether under the Performance setting. Still to no avail.

 

Could anyone enlighten me on this or point me in the right direction?

Thanks,

Jeppe

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • 2 weeks later...

I am having a similar problem, version 1.6.1.3

 

All my products have available quantities of over 100 in each attribute combination. However when i go to the site, click on a product it says "This combination does not exist for this product. Please select another combination."

 

Any help would be greatly appreciated!

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...

You can get that message when you have more than one attribute.

 

Say you sell boxes and you have the attribute color with the options red, yellow and green and the attribute size with the options S. M, L and XL. That makes for 3x4=12 combinations. 

 

Now assume that you have deleted the red XL's. Then you will get the "not exist" message if you select that option. 

 

There is little you can do about that...

Link to comment
Share on other sites

  • 1 month later...

I had this same problem as well, but i think this might be specific to me only. Anyway, i share my solution:

 

Inside your theme folder, look for : js folder. Example:

 

prestashop_directory/themes/your_theme_folder/js/

 

Inside this folder, try to look a javascript file called : 'product.js' and open it with your text editor (e.g. Sublime Text).

Find the following line:

 

i.e. Hit CTRL + F and search for 'combinationsFromController'

function updatePrice()
{
// Get combination prices
var combID = $('#idCombination').val();
var combination = combinationsFromController[combID];


if (typeof combination == 'undefined')
return;

In my case, the reason that "Add to Cart" button is missing, because i had a javascript error that says : "variable combinationsFormController is not declared". REMEMBER, yours might be different.

 

Try to modify the above code so it looks like this:

 

function updatePrice()
{
// Get combination prices
var combID = $('#idCombination').val();
var combination = combinationsFromController[combID];
typeof combination = 'undefined';


if (typeof combination == 'undefined')
return;

Notice that i add a new line : 

typeof combination = 'undefined';

Remember:

  1. This is a temporary fix. Add that new only will always set the combination to 'undefined'. Meaning, your product combination will always fail to work. I don't mind with this, since my product does not required any combination.

The real solution would be to declare this var 'combinationsFromController'. However, i have no idea in which function or where should i declare that. Perhaps anyone knows ?

 

Hope this helps.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...