Skip Navigation

[Resolved] Turn off compare products on Ecommerce starter theme

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to Turn off or remove or delete compare products on Ecommerce starter theme

Solution:
You need to remove the specific code that is displaying the compare product options from the specific views.

You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/turn-off-compare-products-on-ecommerce-starter-theme/#post-614122

Relevant Documentation:

This support ticket is created 6 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 10 replies, has 2 voices.

Last updated by craigB-6 6 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#614026
Screen Shot 2018-02-08 at 1.06.16 pm.png

Tell us what you are trying to do?
Get rid of the Compare Products feature for WooCommerce

Is there any documentation that you are following?
I did a search for TURN OFF COMPARE PRODUCTS but could find no information

#614073

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - what if you try to deactivate ALL Toolset plugins - do you still see the compare product options active?

#614075

That just breaks the site entirely when I do that

#614078

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - Could you please send me debug information that will help us to investigate your issue.
=> https://toolset.com/faq/provide-debug-information-faster-support/

I need to know which theme exactly you are using.

#614080

Thanks for looking at this, that compare feature is in your eCommerce Starter theme

#614082

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

It looks like you need to adjust your layout for this. Can I've temporary access to your site.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

I have set the next reply to private which means only you and I have access to it.

#614122

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Following code I've removed to remove the compare product functionality:

<div class="compare-submit well well-default">
      <header>
        <h3>[wpml-string context='refsite']Compare selected products[/wpml-string]</h3>
        <p class="info">[wpml-string context='refsite']Select up to 4 products by clicking on compare icon in product boxes[/wpml-string]: <span class="add-to-compare example"> <i class="glyphicon glyphicon-sound-stereo"></i></span></p>
      </header>
      <section>
        <input id="compare" disabled="disabled" type="submit" class="disabled btn-lg" value="[wpml-string context='refsite']Compare[/wpml-string]">
        <span class="submit-info"></span>
        <span aria-hidden="true" id="onemoreprodtext">[wpml-string context="refsite"]Select at least 1 more product[/wpml-string]</span>
        <span aria-hidden="true" id="fourprodatmost">[wpml-string context="refsite"]You can compare 4 products at most[/wpml-string]</span>
      </section>
  </div>

The code was added to taxonomy archive layout - and as I already confirm I've deleted above code from following layout:
=> hidden link

#614123
Screen Shot 2018-02-08 at 7.24.08 pm.png

That's great, thank you, very good!

Could you also remove the button for Compare Products which is at the Top-Right of the Product Images (see screenshot)

#614126

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - I've removed that part as well - following code is deleted.

<label class="add-to-compare">
    <input type="checkbox" name="post_ids[]" value="[wpv-post-id]">
    <span class="sr-only">[wpml-string context="refsite"]Add to compare[/wpml-string]</span> 
    <i class="glyphicon glyphicon-sound-stereo"></i>
  </label>
#614130

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I hope the issue is resolved now :).

Please feel free to create a new ticket with any question you may have.

#614139

Thank you so much for fixing this issue! This site is almost ready to publish now, very happy.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.