Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Problems with CRED form

$
0
0

I'm using a CRED form to add products into my WooCommerce post type 'product'. The form includes some WooCommerce fields and some custom fields which I have defined.

The form code is;

[credform class="cred-form cred-keep-original"]

[cred_field field="form_messages" value=""]<br>

[wpv-view name="Listing-parent-info"]

	<div class="cred-field cred-field-post_title">
      <div class="cred-label"><b>Give it a title</b></div>
		[cred_field field="post_title" post="product" value="" urlparam=""]
	</div><br>

<div class="cred-field cred-field-_featured_image">
		<div class="cred-label">Featured Image</div>
		[cred_field field="_featured_image" value="" urlparam=""]
	</div>

<div class="cred-field cred-field-post_content">
  <div class="cred-label"><b>Add Additional Images</b></div>
[cred_field field="product-add-images" post="product" value="" urlparam=""]
	</div><br>


<div class="cred-field cred-field-post_content">
  <div class="cred-label"><b>Select the condition</b></div>
[cred_field field="condition" post="product" value="" urlparam=""]
    </div><br>

<div class="cred-field cred-field-post_content">
  <div class="cred-label"><b>Condition description</b></div>
[cred_field field="condition-description" post="product" value="" urlparam=""]
    </div><br>

<div class="cred-label"><b>Add item specifics - OPTIONAL</b></div><br>

<div class="cred-field cred-field-post_content">
  <div class="cred-label"><b>Exact Model Number</b></div>
[cred_field field="model-number" post="product" value="" urlparam=""]
    </div><br>


<div class="cred-field cred-field-post_content">
  <div class="cred-label"><b>Manufacturer's Part Number</b></div>
[cred_field field="mpn" post="product" value="" urlparam=""]
    </div><br>

	<div class="cred-field cred-field-post_content">
      <div class="cred-label"><b>Add more details</b></div>
		[cred_field field="post_content" post="product" value="" urlparam=""]
	</div><br>

<div class="cred-field cred-field-post_content">
  <div class="cred-label"><b>Price</b></div>
[cred_field field="_regular_price" post="product" value="" urlparam=""]
    </div><br>

[cred_field field="form_submit" value="Submit" urlparam=""]

[/credform]

You can see the form at http://audio-gear.org/add-new-product?parent_listing_id=167

I've got a few problems with the form as follows;

1. Images will not upload properly unless I first press the 'Submit' button which invokes the 'required' field function, and then image loading works properly. Same issue with the 'add another' button (for multiple images). It does not generate an additional image input box unless you first press the 'Submit' button.

2. I've used the standard field "_featured_image" for the main product image but I cannot find a way to make this field 'required'?

3. Although the featured image displays in the standard WooCommerce Cart view, it does not provide a clickable link from the Cart item back to the product page. If I go to Admin/Edit/Product post; then if I delete the featured image and then replace it, I then get a clickable link in the Cart. I need to find a way to add the clickable link as part of the featured image input from the CRED form. I am not certain if WooComerce uses a different field for its standard main image? That might be the problem?

4. I'm using the WooCommerce field "_regular_price" to input the product price. I defined this as a numeric field in CRED custom fields but it is accepting non-numeric characters. I need to stop this happening.

Regards

Robert


Viewing all articles
Browse latest Browse all 20145

Trending Articles