New Landing How can we help? Atelier "Variation #123 of $productname" in Flyout Cart and error messages

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Atelier
  • #311755
    kommuni
    Member
    Post count: 16

    Hey,

    we’re only building a small shop, We will be starting with 2 products, each of which has two variations based on Material.

    Instead of “Material: Metal of product Hammer” the flyout cart in the menu shows “Variation #123 of product Hammer”. Also this confusing title appears in stock error messages.

    Is there any chance to get something into the theme that is of more use for the customer? Finding which product is out of stock in the cart isn’t that easy if you don’t know the variation but only its ID.

    Thanks,
    Frank

    #311784
    David Martin – Support
    Moderator
    Post count: 20834

    Hi Frank,

    What version of the theme do you have? Are all the plugins updated?

    The cart uses default WooCommerce functionality so I’d need to see a link also to see this.

    #311826
    kommuni
    Member
    Post count: 16
    This reply has been marked as private.
    #311861
    kommuni
    Member
    Post count: 16

    Found a fix that seems to do the trick. It looks like the problem is indeed in the framework files which don’t seem to be overwritable by the child theme.

    in swift-framework/core/sf-woocommerce.php line 600.

    Here’s what I did to fix it:

    //$product_title       = $_product->get_title();
    $product_title       = apply_filters( 'woocommerce_cart_item_name', $_product->get_title(), $cart_item, $cart_item_key );

    Found this solution on the WPML forums where they fixed it for a customer https://wpml.org/forums/topic/variable-product-title-not-translated-in-shopping-cart-drop-down/

    #311915
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Glad it’s sorted and thanks for sharing.
    Will forward it to the development team.

    -Rui

    #311919
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Thanks, we have adjusted that for the next update.

    – Ed

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register