Jump to content

Bug: This Combination Does Not Exist For This Product. Please Select Another Combination.


Recommended Posts

Hi guys,

 

I have used the default bootstrap theme for my webshop for a half year. It always gave a warning when clicking the "Read Reviews" button. This is the warning:

 

This combination does not exist for this product. Please select another combination.

 

Recently I purchased a new theme, hoping this would also be fixed. But nope.....
I don't use product combinations, so I found out that I can go to performance > disable combinations. That didnt fix the issue. Even worse, I set the product to Virtual Product and it still gives the error mentioned above.

 

Im really so tired of this. Can't fix it !

 

in desperation, I have opened a new demo place on my server and reinstalled prestashop. There it works fine when using the demo products ( dresses ). But when I import my DB, the error is back. So, I guess the issues must be in either a settings somewhere or in the products. But the issues is in all products, so I think somewhere a correct setting???

 

Feel free to check this temporary test server: 

http://customit-demo.tk/en/windows-7/11-windows-7-home-premium-8718836791055.html

 

I really hope someone knows the answer, or can guide me. Cause im so frustrated. Spend many days trying to fix this issue.

 

Another Hint:

When clicking the "Read Reviews" button I also discovered the user is not being redirected to the reviews tab.

 

Thanks, Wouter.

 

 

Link to comment
Share on other sites

  • 2 weeks later...

I have the same problem as you - when i click reviews button warning appears: This combination does not exist... .

Prestashop 1.6.1.2, PHP 5.4.8, MySQL 5.5.28

 

 

Hi meek,

 

I am having the same problem. Somehow the shop interpretes the "#idTab5" hashtag as a "combination" which is quite similar in the url

 

I have made a fresh prestashop Installation on my server, and with this the error does not occur.

 

could you solve that issue?

Link to comment
Share on other sites

  • 2 weeks 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.
  2. There is also a possibility when you update the qty (i.e. buy more than 1 products or increment the product), it will look as if nothing happen (no response). But actually the product gets added/incremented. 

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 or at least point you guys to the right direction.

Edited by sibrodo (see edit history)
Link to comment
Share on other sites

  • 1 year later...

There is a conflict with the customer loyalty mod. I've commented out the following code from loyalty.js in theme folder and it now works.

$(document).ready(function() {
	$(document).on('change', '#our_price_display', function(e){
		updateLoyaltyView(parseInt($('#our_price_display').text()));
	})
	updateLoyaltyView(parseInt($('#our_price_display').text()));
});
Edited by endurer (see edit history)
Link to comment
Share on other sites

hi

 can anyone help me

currently i am using prestashop 1.6.1.14 .In front end product images as displaying fine in desktop .coming to mobile view product images are not displaying

i am getting text as  undefined(instead of image).

 

thanks in advance

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...