Theming Drupal ecommerce
Well, I had a breakthrough today with ecommmerce.
Theming ecommerce has always been hard. Ecommerce checkout is basically a bunch of forms that are merged together in a non-drupal way. It has to do with the custom apis that come with ecommerce.
For example, in the cart module, to show the review form, the module searches for any other module having a _review_form function within it. It then takes the output of that function and merges it with the $form array for checkout_review_form.
But to modify the form via form api, you call hook_form_alter with checkout_review_form. To theme it with your custom theme, you would have to use the theme hook: mytheme_ec_anon_review_form.
This is quite confusing but I post it here for your consumption.
Submitted by davea on Thu, 2009-02-05 07:59. categories [ ]
Scam Alert Service