[Resolved] Compare button jumps to footer upon clicking

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by jeleenC 4 months, 1 week ago.

Assigned support staff: Luo Yang.

Author
Posts
#1392903

I am trying to: Test the compare button that was built using the following doc: https://toolset.com/learn/create-an-ecommerce-wordpress-site/product-comparison/

Link to a page where the issue can be seen: hidden link

I expected to see: Go to the following page: hidden link

Instead, I got: Jumps to footer

#1393073

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Hello,

Thanks for the details, I can log into your website and see the problem you mentioned above.

I think you have missed some steps, for example:
In the document you mentioned above:
https://toolset.com/learn/create-an-ecommerce-wordpress-site/product-comparison/#adding-product-comparison-with-toolset
section "Part 3: Connecting the pages"
Step 4) Add a form submit button immediately after the line with the form
And
Step 5) Position the cursor before the [/wpv-items-found] shortcode, and complete the form by adding the form closing tag:

I have done below modifications in your website:
Edit the post view:
hidden link
in section "Loop Editor":
line 21~30, add the chekcbox HTML codes as below:

<div class="row ">
			<div class="col-md-4"><input type="checkbox" name="post_ids[]" value="[wpv-post-id]">
<label>Add to compare</label>[wpv-post-body view_template="content-template-for-property-thumbnails"]</div>
		[wpv-item index=other]
			<div class="col-md-4"><input type="checkbox" name="post_ids[]" value="[wpv-post-id]">
<label>Add to compare</label>[wpv-post-body view_template="content-template-for-property-thumbnails"]</div>
		[wpv-item index=3]
			<div class="col-md-4"><input type="checkbox" name="post_ids[]" value="[wpv-post-id]">
<label>Add to compare</label>[wpv-post-body view_template="content-template-for-property-thumbnails"]</div>
		</div>

line 42, add the close form HTML tag:

</form>

Please test again, check if it is fixed. Thanks

#1394195

My issue is resolved now. Thank you!