• Resolved Phreek

    (@phreek)


    Hey there

    Love your plugin, really awesome and does a lot of the heavy lifting for our site.
    Now I’m trying to create subpages with different product categories such as men’s shirts and so on. Now I cant get the parameter shop_productcategory to work.
    This is the shortcode used:

    [spreadplugin shop_limit=”44″ shop_productcategory =”D1″ shop_sortby=”name”]

    The limits and sort parameters work as they’re supposed to but the category doesn’t work (independent of which value I input).

    What am I doing wrong? Do I need to do some config on spreadshirt as well for this to work?

    Thanks for your help.
    Cheers

Viewing 15 replies - 1 through 15 (of 15 total)
  • Sieht für mich so aus als h?ttest du zwei verschiedene Anführungszeichen benutzt. Hatte mal das selbe Problem… Versuch es mal damit:

    [spreadplugin shop_limit=”44″ shop_productcategory=”D1″ shop_sortby=”name”]

    Gruss,
    Felix

    Plugin Author Thimo Grauerholz

    (@pr3ss-play)

    Hi

    as Felix said, keep an eye on the quotations:

    [spreadplugin shop_limit="44" shop_productcategory="D1" shop_sortby="name"]

    You can also just use following code, Spreadplugin will then take the default values set in the Settings and not overwrite them:

    [spreadplugin shop_productcategory="D1"]

    It’s always a good idea to split by product types, too. Like Women -> T-Shirts:
    [spreadplugin shop_productcategory="D1"]

    Cheers,
    Thimo

    Hi,

    I do have an issue with shop categories as well. I tried several approaches, but none of them lead to success… Any shortcode setup seems to be ignored, even if I copy and paste the recommended format from above.

    My tests have been done using:
    [spreadplugin shop_limit="44" shop_category="Q1" shop_sortby="name"]

    as well as
    [spreadplugin shop_category="D1"]

    The result is always the same: All products are shown, not only those who are associated to the given category.

    Do I have to change anything in my setup?

    Frank

    BTW: WP fresh install (current version), Plugin current version.

    BTW^2: Gern auch auf Deutsch…

    EDIT:
    In debug mode, I examined the array data returned (?) or processed by the plugin. Strange enough, but there is NO item called anything like “category” in the given data.

    • This reply was modified 5 years, 2 months ago by fwtag.
    • This reply was modified 5 years, 2 months ago by fwtag.
    • This reply was modified 5 years, 2 months ago by fwtag.
    Plugin Author Thimo Grauerholz

    (@pr3ss-play)

    Ich glaube du suchst eher nach

    
    [spreadplugin shop_productcategory="D1"]
    

    Ja, das stimmt. das war aber nur ein Kopierfehler von mir. Meine Test waren mit:
    [spreadplugin shop_productcategory="D1"]

    Plugin Author Thimo Grauerholz

    (@pr3ss-play)

    dann rebuild cache geklickt?

    Ich nutze den Gutenberg-Shortcode-Block für die Einbindung. Muss ich den Code irgendwie quoten oder escapen?

    Cache: Nicht immer, aber manchmal … ??

    Gerade eben probiert, aber auch das führt zu keiner Ver?nderung.

    • This reply was modified 5 years, 2 months ago by fwtag.
    Plugin Author Thimo Grauerholz

    (@pr3ss-play)

    Shortcode Block in Gutenberg reicht, dort den Shortcode einfügenn, dann Rebuild Cache unter den Einstellungen und es sollte klappen.

    *facpalm*

    OK, das muss einem auch gesagt sein. Ich wusste nicht, dass man nach jeder ?nderung des Shortcodes den Cache neu aufbauen muss. So geht es.

    Mglw. Off-Topic, aber n?chstes Problem: Es ist wohl nicht m?glich, auf einer Seite mehrere Shortcodes zu verwenden? Ich k?nnte damit z. B. mit einem Akkordeon “M?nner”, “Frauen”, “Kinder” unterscheiden.

    Plugin Author Thimo Grauerholz

    (@pr3ss-play)

    Es ist wohl nicht m?glich, auf einer Seite mehrere Shortcodes zu verwenden? Ich k?nnte damit z. B. mit einem Akkordeon “M?nner”, “Frauen”, “Kinder” unterscheiden

    Es ginge, wenn dein Akkordeon die Inhalte von verschiedenen Seiten laden kann, ansonsten nicht.

    OK, Danke. Letzte Frage: Kann ich mehrere Kategorien als Aufz?hlung kombinieren? Also z. B. “T-Shirts”, “Polos”, “Hoodies” gemeinsam und dann idealerweise noch für “Frauen” oder “M?nner”?

    Plugin Author Thimo Grauerholz

    (@pr3ss-play)

    Da bin ich mir nicht so sicher, kannst du sonst gerne einmal ausprobieren ?? Einfach mal hintereinander unter shop_productcategory="D1,D2" oder shop_productcategory="D1D2"

    Nee, geht wohl nicht. Aber interessanterweise geht offenbar auch alles <> [D1,D3,D5] (bei EU-Shop) nicht. Wenn ich z. B.
    [spreadplugin shop_productcategory="Q2"]
    (Hoodies) nehme, kommen wieder alle Ergebnisse.

    Plugin Author Thimo Grauerholz

    (@pr3ss-play)

    Hm, also wenn du z.B. die Navigation des Spreadshops verwendest und dort die Links untersuchst siehst du am Ende immer q=XXX, dieses XXX kannst du dann im Shortcode verwenden [spreadplugin shop_productcategory="XXX"].

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘shop_productcategory not working’ is closed to new replies.