Alpha Codemonkey
  • Member for 10 years, 9 months
  • Last seen more than 2 years ago
  • Roscoe, IL, United States
How do I automatically deliver static content using a CDN?
4 votes

Use the Cloud Files module. You can set the file system to Rackspace Cloud Files so that files uploaded to Drupal will be stored and delivered from Rackspace Cloud Files CDN directly (no copying).

View answer
How to display all product prices on the page at once with Drupal commerce?
Accepted answer
4 votes

If themeing is considered "involving code", then you could create a view block. Using Contextual Filters and Relationships, a View will be able to list all the referenced products on a node (...

View answer
How can I run javascript code after an item added or removed from an unlimited value field?
Accepted answer
4 votes

Create a Drupal behavior. It will be attached to each field when the page loads as well as to new fields added after any ajax calls (adding or removing). Here is a basic example that will log a click ...

View answer
How to set the number of front page's promoted nodes?
Accepted answer
4 votes

Configuration -> System -> Site Information In the Front Page section there is an option for 'Number of posts on the front page'

View answer
How to add more Fields using Form Api
Accepted answer
3 votes

Use Drupal's AJAX Form functionality to add elements to a form from the client. If you try to update a Drupal form with JavaScript on the client side, it will not be submitted correctly. Drupal knows ...

View answer
How to add a flat amount to an order. Using Drupal commerce module
3 votes

You should be able to accomplish that using Rules. Create a product that has the flat amount of 230€ and use the Rules action "Add product to the cart" to add that product to the cart. To create the ...

View answer
Cron queue not working
3 votes

You need to add items to your queue. You have created a queue, but haven't added anything to it, so nothing is being done. $queue->createItem($item); $item will get passed to the queue callback ...

View answer
Creating new users with Commerce & Rules: ERROR
Accepted answer
2 votes

During anonymous checkout, an email address is collected from the 'Account information' pane to create a new user (or append the order to an existing user). You should be able to hook into the form ...

View answer
Getting the number pad to show up for text fields
2 votes

hook_field_widget_form_alter Alter forms for field widgets provided by other modules. or use hook_field_widget_WIDGET_TYPE_form_alter to hook into the Number field specifically. /** * Implements ...

View answer
Custom actions kicktart commerce cart
Accepted answer
2 votes

You need to create a custom module and use hook_form_alter to modify the form. That particular form id is views_form_commerce_cart_form_default, so in your custom module, you could have something ...

View answer
Text format and field profile
1 votes

Make sure "registered users" have permission to use that input format and "role test" does not have permission to use that input format. "role test" could have permissions for the editor format ...

View answer
Print #field_suffix with drupal_render($form['field_custom_text_field'])
1 votes

Try $form['field_url']['#field_suffix']='text goes here'; Also, in your example, the suffix is being set on field_url but you are printing field_reg_site_url. That could be causing some confusion.

View answer
Cron queue not working
0 votes

If you are not processing multiple items, you could just run _import_all_jobs from the cron: function mymodule_cron() { _import_all_jobs(); // Create cache drupal_flush_all_caches(); } ...

View answer
Redirect user to login page when they have to access to a view?
0 votes

With LoginToboggan, the login form can be added to Access Denied (403) pages. No redirects needed.

View answer