I installed drupal-4.4.0.tar.gz and ecommerce-cvs.tar.gz downloaded from drupal.org on 2004-04-22. See below for copious configuration details.
Starting at create content > product, I created a product with a title, price, SKU, description, and type shippable. On the next page I set number in stock to 2 (left inventory management disabled) and availability to 24 hours. The product displays correctly, including the price.
Starting at create content > blog entry, I created a blog entry with a title and body. I clicked on the new blog entry's administer link, then on the Add to products button. On the next screen I added a price and SKU and chose shippable product, and clicked Continue to product details. On the next screen I set number in stock to 2 (left inventory management disabled) and availability to 24 hours, and clicked Create product. The title and description of the product are displayed, but not the price. The entry in the ec_product table is correct.
The problem seems to be that theme_node_product is never called.
Thanks to Tom Wood for help with the analysis of this.
-- Roger
System: Fedora Core 1 Linux, Apache 2.0.48, PHP 4.3.4
Setup:
Edited /var/www/html/drupal/.htaccess as directed:
--- .htaccess.orig 2003-12-18 13:53:11.000000000 -0500
+++ .htaccess 2004-04-22 13:29:43.000000000 -0400
@@ -19,7 +19,7 @@
DirectoryIndex index.php
# Overload PHP variables:
-<IfModule mod_php4.c>
+<IfModule sapi_apache2.c>
# If you are using Apache 2, you have to use <IfModule sapi_apache2.c>
# instead of <IfModule mod_php4.c>.
php_value register_globals 0---------------
Edited includes/conf.php (www.example.com isn't the real hostname):
--- conf.php.orig 2004-03-12 13:27:28.000000000 -0500
+++ conf.php 2004-04-22 13:33:27.000000000 -0400
@@ -28,7 +28,7 @@
# The URL of your website's main page. It is not allowed to have
# a trailing slash; Drupal will add it for you.
#
-$base_url = "http://localhost";
+$base_url = "http://www.example.com/drupal";
#
# PHP settings:---------------
Created a directory for the file system path:
# cd /var/www/html/drupal
# mkdir files
# chown apache files
# chmod 775 files
# ls -ld files
drwxrwxr-x 2 apache root 4096 Apr 22 13:57 files---------------
/etc/httpd/conf.d/drupal.conf contains:
<Directory "/var/www/html/drupal">
AllowOverride FileInfo Indexes Options Limit
</Directory>---------------
Created and populated the database:
# mysqladmin -p create drupal
Enter password:
# mysql -p drupal < database.mysql
Enter password:
# mysql -p drupal
Enter password:
mysql> grant all on drupal.* to drupal@localhost identified by 'drupal';
Query OK, 0 rows affected (0.02 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.03 sec)---------------
Restarted httpd:
# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]---------------
Created the first Drupal account and set its timezone to -0500. Set a valid email address in the Configuration screen, turned on clean URLs, and set the default timezone to -0500.
---------------
Untarred http://drupal.org/files/projects/ecommerce-cvs.tar.gz downloaded 2004-04-22 into /var/www/html/drupal/modules:
# tar xvzf ecommerce-cvs.tar.gz
ecommerce/
ecommerce/address/
...
# chown -R root.root ecommerce---------------
Loaded the ecommerce database file:
# mysql drupal < store.mysql
---------------
Patched node.module:
# patch < node.module.patch
patching file node.module---------------
Enabled blog module and ecommerce modules address, cart, parcel, payment, paypal, product, shipping, store, and tangible. Checked administer > configuration > modules > store to be sure the ecommerce modules are all enabled.
---------------
Created an administrator role, granted it all permissions, and assigned it to the first user account.
Comments
Comment #1
matt westgate commentedYou've done everything right. The price doesn't show up because the theme your using doesn't know anything about blogs being products. If you're using the chameleon theme (xtemplate is trickier), you would add the following at the top of chameleon_node
It is reccomended at this time to create actual products rather than converting blog entries to products. Once Drupal has a solid image API, I don't see a reason for this functionality to exist. Am I missing something?
Comment #2
matt westgate commentedThis is not a bug, but rather a documentation issue. You have to make the theme aware of the nodes you also want to function as products.