• Resolved noritarte

    (@noritarte)


    Hi, I would like to add an “author” field to my product page to put the author’s name under the product title (which is the title of the book). Possibly with links to books by the same author. More or less as it is done here with storefront:
    https://www.setantabooks.com/product/half-frame/

    What’s the easiest way to make it? Thanks!

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

Viewing 12 replies - 16 through 27 (of 27 total)
  • Thread Starter noritarte

    (@noritarte)

    Hi, I’m going back to this post because I have a permalink problem. Until a week ago, products were stored like this:

    https://www.noritarte.it/books/fotografia-italiana/luigi-ghirri/infinito/

    A week ago the name of the author who appeared after the category disappeared, and I don’t know why, see example below:

    https://www.noritarte.it/books/fotografia-italiana/photedition-3/

    I’ve tried to put it back on anyway, but I can’t.
    The Author (slug book-author) attribute is enabled for archiving. At the moment the permalink of the products is:
    /books/%product_cat%/

    I tried
    /books/%product_cat%/%book-author%
    /books/%product_cat%/%author%

    but it doesn’t work…

    Jarret

    (@jarretc)

    Hi, looking at those 2 links right now they look the same to me. Not quite sure exactly what I’m looking for here.

    Are you able to get a screenshot using https://snipboard.io highlighting the issue you’re seeing?

    Thread Starter noritarte

    (@noritarte)

    If you notice after “Italian photography” (it’s the category) in the first link there is the author (luigi ghirri) and then the title of the product.
    In the second link is missing the author’s noem (which is an attribute).

    Jarret

    (@jarretc)

    Are you talking about the category section right under the Add to Cart button? The author name shows up on both of those links right after the ‘Fotografia italiana’ category for me.

    Thread Starter noritarte

    (@noritarte)

    Here my permalink settings (I apologizem, are in Italian):
    https://snipboard.io/oEfxb3.jpg
    https://snipboard.io/kLTVd3.jpg

    Here you can see the different permalinks:
    https://snipboard.io/Z1dfPE.jpg
    https://snipboard.io/N5dLnB.jpg

    Jarret

    (@jarretc)

    Ah I see, this is because you’re going to have 2 different “versions” of the same product. One with the product listed under a particular author:

    /books/fotografia-italiana/luigi-ghirri/infinito/

    Then you’ll also have just the direct product itself:

    /books/fotografia-italiana/infinito/

    Both show the exact same information, just that one is listed as a product under a particular author and the author is just listed under the Italian Photography category if that makes sense.

    Thread Starter noritarte

    (@noritarte)

    yes I would prefer the version with the author’s name (which I entered as a product attribute) so it is detected by search engines. Unfortunately maybe because of a seo program, the permalink structure has been changed and since some days I don’t see the author anymore and I can’t insert him again.

    Jarret

    (@jarretc)

    I think it may be because Franco only has one product assigned to him, are you able to add a test product assigned to him just to see if that fixes it? I noticed that Luigi has multiple products

    Thread Starter noritarte

    (@noritarte)

    Unfortunately this is not the case: if you see these two products with the same author they don’t have the author’s name in the permalink:
    https://www.noritarte.it/book-author/berengo-gardin/

    Maybe I should change something on the permalink page but I don’t know what syntax to use.

    Jarret

    (@jarretc)

    Yeah, not really sure on that one. For some reason Luigi’s page works but the one you linked doesn’t.

    I think this would be more related to WooCommerce though and not Storefront as WooCommerce handles that data and the theme just displays it.

    Thread Starter noritarte

    (@noritarte)

    I solved the problem by setting always the author category as primary, so automatically both the author category and the parent category appear in the file name. Maybe something changed with the last woocommerce update, but once I understood the problem it was easy to solve it.

    Thread Starter noritarte

    (@noritarte)

    Solved!

Viewing 12 replies - 16 through 27 (of 27 total)

The topic ‘add author name to product page’ is closed to new replies.