Jump to content

[solved] Products not available anymore after it is purchased


Recommended Posts

I'm having critical issues with Prestashop 1.5.6.

 

After a product is purchased and paid, it isn't available / accessible anymore. The product is visible everywhere (category, bestsellers, etc.) but when you click it, it directs immediately to the "Oops, something went wrong" page.

 

I have turned on error reporting, see below:

 

 

[PrestaShopException]

Invalid product vars
at line 104 in file classes/Link.php

98. 			if (is_array($product) && isset($product['id_product']))
99. 				$product = new Product($product['id_product'], false, $id_lang, $id_shop);
100. 			elseif ((int)$product)
101. 				$product = new Product((int)$product, false, $id_lang, $id_shop);
102. 			else
103. 				throw new PrestaShopException('Invalid product vars');
104. 		}
105. 
106. 		// Set available keywords
107. 		$params = array();
108. 		$params['id'] = $product->id;

 

Address of my site is allsmart.nl

 

See these 2 products which I have purchased for testing purposes:

- Aeon Labs Z-Wave Panic Button (https://allsmart.nl/afstandsbedieningen/70/aeon-labs-z-wave-panic-button/)

- Aeon Labs Z-Wave Key-fob (https://allsmart.nl/afstandsbedieningen/61/aeon-labs-z-wave-key-fob-afstandsbediening/)

 

This is very urgent for me, what should I do, where can I go?

Can someone please help me out?

 

Thanks a lot

Link to comment
Share on other sites

1. Already tried clearing the cache > no luck

2. Could you be more specific please? I didn't get this point

3. Yes product is available in admin, also viewable / editable.

 

This is what I tried so far:

- clear cache

- buying single and multiple products in checkout

- different checkout options

 

Every product which is sold, will end up on the "Oops" page. You can try it yourself (use country Belgie and payment option "Mister Cash") This will lead you to test payment site.

 

The crazy thing is; when I cancel or refund the order, the products are available as normal again.

 

Thanks so far

Link to comment
Share on other sites

  • 3 weeks later...

WOW!! That actually solved it!! :)  I can't tell you how thankful I am!

I will keep you informed on future status.

 

The ironic thing is that my custom theme has its own cross selling module. So that must have been causing this.

 

Thank you so much!

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

Hey Guys,

 

I have a same problem.

 

In my case the cross sell module is not installed.

 

Please refer attached screenshot.

 

http://my.jetscreenshot.com/demo/20150217-ufxl-107kb.jpg

 

Please help me.

 

first it's best not to post in 'solved' topic, and it can't be the same problem if the solution did not help.

 

I suggest you open a new topic so entire community will see it.

Link to comment
Share on other sites

  • 1 month later...

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