This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

How to add shopping cart button to webform

I have a pretty large webform which is submitting fine. Owners of the site now want to levy a charge for submitting the form by adding an Add To Cart button.

I don't want to create a whole product to include all the webform fields but will need the new product to include a couple of the existing webform field values.

I'm not sure how to go about doing this. All help appreciated.

Peter

Set default value of field on inline entity reference widget, from field on parent entity form

I have a few custom entities defined by a custom module. One entity called, 'scene' contains an entity reference field to another entity called 'placed_asset'. When a user is editing or adding a new 'scene' entity, they can also add a new 'placed_asset' entity via the inline complex widget.

How to avoid customer ordering item that are out of stock

I am new to drupal and running drupal 7. What setting do I need to change to avoid customer ordering out of stock items. Currently its causing a lot of issues as I have to call customers manually to inform them for a replacement or a refund. 

Drupal 11 - AVIF not listed in supported image type?

I have trouble making AVIF compatible with Drual 11.

Thought it is natively supported, but in node editor's image upload, I cannot see AVIF in available image type list.

I tried to add it to 

[Modules Newbie] Change text exposed filter in select list exposed filter

I spent a whole day trying to display a url query from a view with exposed filters that would display the names of the terms instead of their IDs. Only to discover that the only way to do this is to enter the referenced field as a required relation in 'relations' and the same field again as an exposed filter, specifying the filter identifier of the referenced field.

Great, but there's the small problem that the exposed filter is a plain text field, which is of little use to a user.
So I try to turn this text field into a drop-down list.

How to alter form and send email with results

Hi there, 

I'm working in a module to alter a form (bee reservation form) and i want to send emails to node author and email address from the form.

At this time, a can alter the form (OK), stock the fields values in session, but no way to send emails....

This is my code with e lot of logs alerts. It stops in "Stored form values in session..." notice.

 

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions