Support » Plugin: WPC Smart Compare for WooCommerce » Error on names of products in the comparison table

  • giammimosc

    (@giammimosc)


    Hi Dear,

    when the comparison table appears, the names of the products selected has also a code number e.g. (#1469) that I cannot remove. I checked everywhere in the product, but that code it is not in the name, never.

    So for each product in the table I have the name of the product and the undesiderable code in brackets: e.g. iPhone 8 (#1256), iPhone 7 (#4376) and so on… but I would only see iPhone 8, iPhone 7 and so on.

    Can you tell me how to remove that code in brackets ?

    Other than this, I cannot also see custom attributes from desktop (pc) view, but I can do that only on mobile. How is it possible?

    Thank you very much,
    Gian

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WPClever

    (@wpclever)

    Hi @giammimosc

    #1. Please add below snippet to current-theme (or child-theme) / functions.php:

    add_filter( 'wooscp_product_title', 'your_wooscp_product_title', 99, 2 );
    function your_wooscp_product_title( $title, $product ) {
    	return '<a href="' . $product->get_permalink() . '" draggable="false">' . wp_strip_all_tags( $product->get_name() ) . '</a>';
    }

    And the result https://www.screencast.com/t/MysPK5Ke2

    #2. About custom attributes: We don’t hide it on the mobile, maybe have a conflict with another theme/ plugin. Please send me your website link then I can check it first.

    Thread Starter giammimosc

    (@giammimosc)

    Hi Dear,

    super thanks for your answer.

    1) It works. So now I can see the correct names, how can I just center them in each slot? Since for now they are aligned to the left and are not centered.My website is: http://www.worldtech360.it and you can see the comparison table in the “Comparatore” section by adding products to comparison.

    2) I cannot solve this issue also by disabling other plugins. From PC the custom attributes can not be shown. They are just shown for mobile devices.

    3) How to disable click on products images and names in the table? Since I don’t want them to click there

    If you have an email address to provide me I can send you some photos of the problems. My email is giammimosc@hotmail.it

    • This reply was modified 3 years ago by giammimosc.
    • This reply was modified 3 years ago by giammimosc.
    Plugin Author WPClever

    (@wpclever)

    Hi @giammimosc

    #1. To centered the product name, please add below CSS code to WP-Admin → Appearance → Customize → Additional CSS:

    .wooscp_table thead tr th {
        text-align: center !important;
    }

    #2. You need to buy the premium version to show the attributes on the compare table.

    #3. You can add the below SS code to prevent clicking on these links:

    .wooscp_table thead a, .wooscp_table .tr-image a {
        pointer-events: none !important;
    }

    We’ll add an option to enable/disable it soon.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error on names of products in the comparison table’ is closed to new replies.