Jump to content

Problems with Add to cart button


Recommended Posts

Hi.

I am using Prestashop 1.4.0.17 and I have following problem:

When I click on Specials or to Best sales to see all Specials or Best sales, some products are not available to sel,l which is displayed by gray font of Add to cart (see attachments - prices_drop.jpg and best_sales.jpg) however the products are available and you can buy it, when you click on product and when you get to product site.

 

But, when I click on category (concretely Babolat - tennis rockets), I see Add to cart button available.

 

So products are on store. You can buy it. You see Add to cart available on category.php. Some products are unavailable on best-sales.php and on prices-drop.php. Strange since all this sidets (category, best-sales and prices-drop) us same template - product-list.tpl, so I have no idea why it is like that.

 

Does anybody have any idea?

-------------------------------------------------------------

 

You can study this event on http://www.kutiksport.sk/category.php?id_category=8 .Try also Special (In Slovak - Zľavy) and Best sales (in Slovak - Najpredávanejšie). Please do not click on home page, since it do not run.

post-282359-0-31167400-1337340426_thumb.jpg

post-282359-0-78672500-1337340434_thumb.jpg

post-282359-0-09357200-1337340446_thumb.jpg

Link to comment
Share on other sites

Go to Preferences --> Products

 

Click yes on second - third - fourth - sixth and seventh option

 

This should probably solve the problem..

Let me know cheers helldog!

Options third, fourth, sixth and seven was checked - yes. When I checked also position 2, there was some improvement, but 2 products on best-sales was still unavailable.

 

But I do not want to allow to buy product out of store (position 2), so I have to find other solution.

 

However, I am wonder, why when I checked to sell product out of stock, there were still 2 product with "gray" font, so unavailable on best-sales.

Link to comment
Share on other sites

Okay I see on the web a couple of people have the same or a look-a-like problem.

Try to clean your cache.

admin --> preferences --> Performance --> Force Compile (Yes)

Save it.

 

Reload your website in your browser by clicking on F5 or just restart the browser.

See what happened, after checking put Force Compile back to No.

 

Let us know if it did any good.

Cheers Helldog!

Link to comment
Share on other sites

Okay I see on the web a couple of people have the same or a look-a-like problem.

Try to clean your cache.

admin --> preferences --> Performance --> Force Compile (Yes)

Save it.

 

Reload your website in your browser by clicking on F5 or just restart the browser.

See what happened, after checking put Force Compile back to No.

 

Let us know if it did any good.

Cheers Helldog!

Thank for you reply and your time. I really appreciate it.

However, it did not help me. I Tired compile Yes and No ;of course in combination with page reloading; but nothing changed in each combination of compile and cache options.

 

But I still find difficult to understand why it is correct in category.php and wrong in best-sales.php and prices-drop.php. What is different on these sites since all tree use the same script from product-list.tpl ???

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

It might offcrouse be an SQL problem, I am not sure where to take a look at, and at the moment I don't have much time, but I will try to direct you to the correct course.

 

It seems the different (modules) using the same .tpl or working with the same .tpl have different SQL tables offcourse in DB, there might be the mistake or difference.

 

Please take a look over there, or find some relevant information on the internet about this matter.

Let us know if anything pops-up your mind, as I don't have much time at the moment.

 

Cheers Helldog!

Link to comment
Share on other sites

It might offcrouse be an SQL problem, I am not sure where to take a look at, and at the moment I don't have much time, but I will try to direct you to the correct course.

 

It seems the different (modules) using the same .tpl or working with the same .tpl have different SQL tables offcourse in DB, there might be the mistake or difference.

 

Please take a look over there, or find some relevant information on the internet about this matter.

Let us know if anything pops-up your mind, as I don't have much time at the moment.

 

Cheers Helldog!

 

Hi. I scan DB, and no such a table (I mean table witch can be associated with best-sales or prices-drop ....). I search also TPL files and PHP files in main folder and found that the only difference (if did not count html stuffs) are controllers. Every PHP file in main folder (price-drop.php, category.php ...) is refer to their controllers on controllers folder. So problem might be there. But I am programmer and I know just PHP basics. So if have time and willing, you can scan this files to see if there is any element witch can cause my problems.

 

thanks

Link to comment
Share on other sites

I saw you use PS 1.4.0.17

Why don't you try backing up your database and try the newest version of PS 1.4.8

 

If you want to try this out (as a lot of bugs and problems have been resolved after updating) you might solve this problem.

If you try this out, let me know how things go, and if things are solved.

 

If your update of PS does not work, let me know where you get stuck, and I might help you out with that matter aswell.

 

Cheers Helldog!

Link to comment
Share on other sites

I saw you use PS 1.4.0.17

Why don't you try backing up your database and try the newest version of PS 1.4.8

 

If you want to try this out (as a lot of bugs and problems have been resolved after updating) you might solve this problem.

If you try this out, let me know how things go, and if things are solved.

 

If your update of PS does not work, let me know where you get stuck, and I might help you out with that matter aswell.

 

Cheers Helldog!

 

Thanks. But I spent pretty long time to set the 1.4.0.17 version to this condition and I also do not have a time. I found one thing which is the reason why some products do this. And it is product combination. Once, the product have combination, the product are unavailable on prices-drop.php and best-sales.php. Just product with out combination are available. I do not have why since also the default combination have 10 items and all other combinations have items.

 

Thank for you time I will try newer PS version one day, just for find if the bug will disappear or not.

 

For now, I am gona set the color of Add to card of unavailable product to white, so it will be the same for both (unavailable and available) .

Once again thanks.

Link to comment
Share on other sites

Cheers,

 

but changing the PS version to a newer version does not at all take much time, as there is auto-upgrade.

Which is just a couple of clicks to finish.

It probably took longer to write a forum article then to update your PS.

 

Cheers Helldog

Link to comment
Share on other sites

Cheers,

 

but changing the PS version to a newer version does not at all take much time, as there is auto-upgrade.

Which is just a couple of clicks to finish.

It probably took longer to write a forum article then to update your PS.

 

Cheers Helldog

Auto-upgrade is just in 1.4.4. and newer. So in my case I would have to back up all staff and install it from very begging or use module, which is risk, since the modul is made by some PS forum member.

Link to comment
Share on other sites

×
×
  • Create New...