Get add to cart product info and bring to url-arguments
Hi,
Now I finally am able to get visitors to click on my contact category page when a product is not available, see: http://www.drupalcommerce.org/questions/8363/how-alter-add-cart-button-d...
I would very much like to be able to have the productinfo attached to the contactpage category.
I am able to show this using this module: https://drupal.org/project/contact_forms
With this module I can show contactforms with /contact/category/subject
But I am unable to build the needed url with in the subject the SKU and product Title.
How can I get the product SKU and product title to be set in a url using something like form_state may be?
I see http://drupal.stackexchange.com/questions/24279/populating-fields-from-t... for users, but do not see a product example.
Greetings, Martijn
Comments
Hi,
I didn't solve this quite yet.
There is a problem using:
unset($form['submit']['#validate']);
After this the values are not shown anymore from: $form_state['values']
Anyone has a solution for this.
Without the unset I got all the errors from: http://www.drupalcommerce.org/questions/8613/add-cart-errors-when-trying...
greetings, Martijn