Hi all.

I've installed Magento module on Drupal and got no "Add to Cart" in my products.

What am I missing? Is there anything that I must enable?

Which information do you need?

I'm using Drupal 6.13 and Magento 1.3.2.1 and products sync is working fine.

Comments

davividal’s picture

Title: No 'add to cart' button » Magento - No 'add to cart' button
themaverick’s picture

my fault was to add some products zu magento but i set the productcount in stock at 0. you have to edit the productcount to more than 0 to get this add to cart button.

Maxime Topolov’s picture

Assigned: Unassigned » Maxime Topolov
Status: Active » Closed (fixed)

I close since proble seems solved

idebill’s picture

Version: 6.x-1.0-rc1 » 6.x-1.1-rc2
Assigned: Maxime Topolov » Unassigned
Status: Closed (fixed) » Active

I'm having a couple of related issues.
1. I have this same problem as above (no add to cart link) for products that are set to "Manage Inventory" = "No" in Magento. My store has vendors to fulfill orders so I am not tracking inventory. I need the "add to cart" link to be visible even when magento is not managing inventory for the product.
2. If I manually set the "Stock Availablity" to "In Stock" for the product in Drupal, the "add to cart" text shows up, but is grayed out and cannot be clicked. I suspect this is a javascript issue, but I'm not sure.
A little help please?
Magento Software version 1.3.2.3
Magento Drupal module version 6.x-1.1-rc2

Maxime Topolov’s picture

Category: support » feature

Ok your issue it's kinda feature request. I'll try to implement this one next time.

idebill’s picture

Thanks!

dops’s picture

Category: feature » support

Hello everybody,

so I glad that I´m not the onlyone with that problem. I´ve got the productcount at 1000 and the stock svailablity on in stock, but the add to card link is not displayed. Are there any solutions by now?

Greets
dops

dops’s picture

I took a look at the database. The value for my product in the field "field_stock_availability_value " is null. Could there be any problems during syncronisation?

Greets
dops

zlika’s picture

I had the same problem.

It seems to be a Drupal extension module problem on Magento.

To solve this, I had to add some code in the "Api.php" file on Magento install path "app/code/community/Drupal/ApiExtend/Model/Catalog".

In the method named "productsList", you should add the following line:

->joinTable('cataloginventory_stock_item', 'product_id=entity_id', array('is_in_stock'=>'is_in_stock'), null, 'left');

just after

->addAttributeToSelect('short_description')

Hope it will help you ...

ekarelin’s picture

Assigned: Unassigned » ekarelin

Thanks Zlika,
seems like it helps. We will test this changes and commit Magento extension.

Maxime Topolov’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.