• Resolved climbingsocks

    (@climbingsocks)


    Hallo,
    wie geht’s?

    Bei der Installation des WooCommerce Subscriptions Plugin in Kombination mit All Products for WooCommerce Subscriptions Plugin kommt es auf unserer Seite zu einem Konflikt mit Germanized for WooCommerce. Konkret hei?t das, dass das Feld zur Auswahl zwischen One-Time Purchase und Subscription zweimal auf der Produktdetailseite angezeigt wird (siehe hier: https://imgur.com/nUS1jEZ)
    Hier auch live auf unserer Staging-Umgebung: https://climbingsocks.com/product-bundles/?product=klettersocken-von-climbingsocks

    Für oben genannten Konflikt konnten wir im Rahmen einen Konflikttests eindeutig das Germanized for WooCommerce Plugin ausmachen.

    Nach Kontaktaufnahme mit dem (hervorragenden) Support des All Product for WooCommerce Subscription Plugins bekamen wir dazu folgende Rückmeldung:

    “On our side, we do not maintain any compatibility with Germanized for WooCommerce. Moreover, we have received a couple of compatibility issue reports about this extension in the past and we had a chance to have an in-depth look at this. Here’s what we found out:

    First, WooCommerce calculates the Variable Product’s Catalog Price as a price range from the cheapest to the most expensive variation. Then, All Products for WooCommerce Subscriptions edits this Catalog Price and adds a Subscription suffix (for example, available on subscription from $X).

    After that, the page loads.

    Then, if a variation is pre-selected, Germanized for WooCommerce replaces the Catalog Price with the variation price. This replacement happens every time a new variation is selected. This seems to cause the subscription options to be duplicated.

    The best way to proceed with this is to ask Germanized for WooCommerce developer to update their codebase so that they check for Subscription plans changes and update the Catalog Price to include only the price of the selected Subscription plan instead of all subscription options. In case they need us to add any code on our side to make our plugin more friendly to this integration, please let us know!”

    Das Problem scheint also bereits bekannt zu sein und nicht das erste Mal auzutreten. Inwieweit gibt es die M?glichkeit, diesen Konflikt zu beheben?

    Vielen Dank im voraus für eine Rückmeldung und weitere Unterstützung.

    Mit den besten Grü?en,
    Magnus

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author vendidero

    (@vendidero)

    Hi Magnus,

    tja, so leicht macht man es sich dann gern mal als Entwickler ??

    Fakt ist, dass die Entwickler des Plugins das Attribut price_html (das ja nicht umsonst so benannt ist) “missbrauchen” um zus?tzlichen Optionen darzustellen.

    Andere Plugins, die Produkte z.B. um die Auswahl zus?tzlicher Optionen erweitern, nutzen dafür im Normalfall geeignete WooCommerce Hooks. Davon scheint man in dem von dir genannten Plugin offenbar keinen Gebrauch zu machen (obwohl das im Normalfall der Weg in Woo ist).

    Germanized ersetzt in der Tat den von-bis-Preis mit dem entsprechenden Preis der Variante auf der Produktseite (price_html) um sicherzustellen, dass deine Preisauszeichnungen (Steuer-, Lieferzeit-, Versandkosten-Hinweis usw.) nicht doppelt (d.h. an beiden Preisen) aufgeführt werden müssen.

    Ich denke die einfachste “L?sung” w?re vermutlich das 1. Element auf der Seite einfach via CSS zu verstecken – das geht vermutlich recht einfach. Ich habe jedoch auf dein Staging-System kein Zugriff, d.h. ich kann mir die HTML-Struktur auch nicht genauer ansehen.

    Grü?e

    Thread Starter climbingsocks

    (@climbingsocks)

    Hallo,
    wie geht’s?
    Erst mal danke für deine schnelle Antwort. Das l?st zwar mein Problem zwar noch nicht direkt, aber immerhin gibt es mir schon mal eine Richtung vor, die ich weiterverfolgen kann.
    Wie kann ich dir Login-Daten für unsere Staging-Umgebung zukommen lassen?

    Danke und Grü?e

    Plugin Author vendidero

    (@vendidero)

    Hi,

    das ginge z.B. über das Kontaktformular:
    https://vendidero.de/kontakt

    Ich würde euch aber generell empfehlen für solche Anpassungen (falls keine Kenntnisse bestehen) einen Webdesigner zu beauftragen. Via CSS sollte das recht einfach m?glich sein:

    .product-type-variable p.price .wcsatt-options-wrapper {
      display: none !important;
    }

    Grü?e

    Thread Starter climbingsocks

    (@climbingsocks)

    Hi,
    danke. Ich komme wohl erst mal so weiter. Hier noch eine Rückmeldung vom Support des All Products for WooCommerce Subscription Plugins:

    Regarding the issues with Germanized, indeed, using CSS to hide the ‘extra’ price is a valid workaround. However, I had a discussion about this with our engineering team and they let me know that in cases where the way we append Subscription Plans to price_html is causing conflicts the following snippet could help:

    add_filter( ‘wcsatt_modify_variation_data_price_html’, ‘__return_false’ );

    Moreover, you could share this snippet with the developers of Germanized, in case they’d like to use it to make our plugins compatible. This is quite a small integration, so we’re happy to do it on our side!

    Vielleicht hilft das irgendwie weiter.

    Grü?e,
    Magnus

    Plugin Author vendidero

    (@vendidero)

    Hi Magnus,

    danke für die Rückmeldung – das klingt doch gut. Ich werde den Code als Kompatibilit?tsscript in unser Plugin aufnehmen.

    Grü?e

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Konflikt mit Germanized und WooCommerce Subscriptions’ is closed to new replies.