• Resolved davidgimenez

    (@davidgimenez)


    Hello, since the last update I see that the custom attributes of the simple product are not shown, it shows me the old attributes already saved in all the products, but if I am going to create a new product with its specific attributes, it does not show them on the simple product page. I need help please

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @davidgimenez

    Thanks for reaching out!

    I understand that the custom attribute of your simple products is not showing when you create a new product, is that correct?

    This is the expected behavior for custom product attributes, it will only be shown to the specific product where you created it. However, if you add it as a Global Attribute under Products >Attributes, it will be shown whenever a new product is created.

    You can learn more about Product Attributes here: https://woocommerce.com/document/managing-product-taxonomies

    I hope this helps point you in the right direction! But if I’ve overlooked something or didn’t fully grasp your question, please don’t hesitate to let me know. Please feel free to share more information about your end goal, so that we can assist you more effectively.

    If a screenshot would be helpful, I’d recommend using https://snipboard.io. You can share the direct link to the image as a response to this topic.

    Thread Starter davidgimenez

    (@davidgimenez)

    Hi, I’m not talking about global attributes, but about custom attributes for individual products. I already have them created for 600 products, but since I updated woocommerce to the latest version, it doesn’t show me the attributes. If I’m going to create a new product, it shows them for the other products. They were already created but the same if I edit them, what was edited is no longer shown, I mean the attributes of simple products

    • This reply was modified 1 year, 8 months ago by davidgimenez.
    Thread Starter davidgimenez

    (@davidgimenez)

    Here you can see screenshot of the attributes created for a single product, but the attributes are not displayed on the single product page after saving https://snipboard.io/6eRNiZ.jpg

    • This reply was modified 1 year, 8 months ago by davidgimenez.

    Hi @davidgimenez

    Thanks for sharing further information about your issue here.

    I understand that the custom product attributes are not displaying for some products when you try to edit them. Furthermore, these are also not showing on the front end of your single product page, correct?

    Can you please try to switch to the default Storefront theme and only WooCommerce plugin is enabled and see if this works?

    If so, then this kind of problem is usually caused by your theme or a third-party plugin present on your site. We can run a conflict test to verify this. I’d recommend cloning your site to a staging environment and performing the tests described on this guide without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin.

    If this was caused by a third-party plugin present on your site, it would be best to reach out to the developers for further assistance here.

    If this did not resolve the issue, please share your System Status Report, that will help us further troubleshoot.

    You can find it via WooCommerce > Status. Select Get system report and then Copy for support. Once you’ve done that, you can paste it into your reply here.

    If you could also provide the fatal error logs (if any) under WooCommerce > Status > Logs.

    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Let us know how it goes!

    Thread Starter davidgimenez

    (@davidgimenez)

    I am using the storefront theme with woocommerce since I always tell you I already have attributes in each product and they are displayed but if I want to edit them it does not show what has been edited or what has been added and this has happened since I updated the last version of woocommerce I have no conflicts because I already checked before contacting them

    Thread Starter davidgimenez

    (@davidgimenez)

    With this code I was showing the attributes on the product page it shows me the old attributes but not the new ones added

    function woo_cbp_custom_attributes(){
    global $product;
    $attributes = $product->get_attributes();
    if ( ! $attributes ) return;
    $out = ‘

    ‘; foreach ( $attributes as $attribute ) { if ( $attribute->get_variation() ) { continue; } $taxonomy = $attribute->get_name(); $value_string = implode( ‘, ‘, $attribute->get_options() ); $out .= ‘

    ‘; $out .= ”.$taxonomy.’ ‘; $out .= ”.esc_html( $value_string ).”; $out .= ‘

    ‘;
    }
    $out .= ”;
    echo $out;
    }
    add_action(‘woocommerce_after_add_to_cart_button’, ‘woo_cbp_custom_attributes’, 20);

    Thread Starter davidgimenez

    (@davidgimenez)

    I solved the problem

    Hi @davidgimenez

    Glad to know you were able to sorted it out, if you have any new questions, please create a new ticket.

    Cheers!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘unique product attributes’ is closed to new replies.