Jump to content

[Fixed it myself] Wishlist View Add To Cart Fail


Recommended Posts

I installed PS from my hostgator cpanel and installed the wishlist module from the admin.

 

When someone clicks the link in email to a wishlist, the add to cart button is light green (appears disabled) and does not add to cart. The module is on the right.

 

Ive tried a few things. There are no attributes. I upped the item qty to 100. I tried the forum fix in updating the view.tpl and nothing seems to help.

 

Here is my specs.

Server information

 

Prestashop version: 1.4.7.3

Server information: Linux #22 SMP Mon Apr 30 18:59:16 CDT 2012 x86_64

Server software version: Apache

PHP version: 5.2.17

MySQL version: 5.5.21-55

Store information

 

Shop URL: http://braydevelopme...ces.com/presta/

Current theme in use: prestashop

Mail configuration

 

Mail method: You are using the PHP mail() function.

 

Attached is my entire blockwishlist for your perusal.

 

Any help is appreciated.

SC

blockwishlist.zip

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

And an update.. I updated to the latest version and the function still isnt working. I logged in with FF, added to my wish list, emailed it to myself, opened my email with IE and clicked the link. The add to cart button is light-green like it is disabled. Kinda like you see when you click a regular add to cart and it disables briefly while the item is whisked away to your cart. I also paste the link in FF and Chrome and it is the same across all the browsers.

 

I can add to cart ok regularly, just not when I click a wishlist link from email.

Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...

Ok.. its later. 1.4.8.2

 

I log in, I add some stuff to my wish list, I send someone the link.. they clicky the link.. and the add to cart is disabled. As attached.

 

The ho ho ho season is coming and I really need to get this going. Any help is appreciated..or even bread crumbs to where it is failing..

 

Thanks,

SC

post-365201-0-74176900-1349844791_thumb.jpg

Link to comment
Share on other sites

So I found it.. and I will share.. ya no helpin bastages..

 

The wishlist module assumes you track product quantities. Hard coded for the non-product qty tracking people's enjoyment..like me.

 

In the file modules/wishlist.view.tpl, around line 72 find:

 

{if isset($product.attribute_quantity) AND $product.attribute_quantity >= 1 OR !isset($product.attribute_quantity) AND $product.product_quantity >= 1}

 

change it to

 

{if $product.quantity >= 1}

 

I also removed a few lines to make the grayed out add button and prouct go away if the needed amount was 0

 

to do this..

 

remove these two lines completely a little further down..

 

{else}
			<span class="exclusive">{l s='Add to cart' mod='blockwishlist'}</span>

 

1.4.8.2

no product qty tracking

Link to comment
Share on other sites

  • 1 year later...

I must be doing something wronk. It's over a year this has been posted so a fix, if anything was borked up, should had made it into this module.

 

I get the exact same error as the poster above, if I send the wishlist to a friend the 'add to cart' buttons are greyed out.

 

Yet another module I can remove from my FTP it seems. Going to be a minimalistic shop of mine, only 58 modules left...  :(

Link to comment
Share on other sites

×
×
  • Create New...