a little help with Drupal 5/Ubercart problem -- "Add to cart" button won't display (#value is empty)

Events happening in the community are now at Drupal community events on www.drupal.org.
jmadsen's picture

Hope someone can steer me to the answer here:

A small site that was customized by someone who is gone, managed by my client. They had the Ubercart originally installed, but then disabled, and now would like it turned back on with some payment modules I've added.

I have re-enabled all of the cart related stuff that I can figure is important, but cannot get the "Add to Cart" to populate/reappear

In his slightly customized node-product.tpl.php file there is:

<?php
print $node->content['add_to_cart']['#value'];
?>

but it is empty - a print_r() shows:

Array ( [#value] => [#access] => 0 [#weight] => 10 )

I'm guessing some setting somewhere, or a value needs filled, but stumped as to where to look for it.

TIA!

Jeff

Comments

Hey Jeff, First off, drupal 5

Dokuro's picture

Hey Jeff,

First off, drupal 5 and ubercart...I have always been in D6 with it.

I would say, make sure the content type is a product. My guess is maybe in the config product settings of ubercart you don't have the add to cart enabled?

Check into that...if it was D6 I could tell you no problem, but from your array there, looks like it is not turned on.

-Shaun

Eigo-Japan

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: