WordPress.org

Ready to get started?Download WordPress

Forums

eShop
[resolved] [closed] Product page links location (5 posts)

  1. Posthoc
    Member
    Posted 1 year ago #

    Hi guys,

    First, great plugin, does everything you need, does it fast and discreetly.

    Here's my problem :
    I'm using posts as products, and I display all the posts excerpts on one page (like a catalog). I'd like to add a class to the links on this page (each product title and thumb image) that go to each product detail (= post). This class would allow me to show the product detail (= post) in a lightbox instead of going to the post directly.

    I tried adding the class dynamically (jquery "addClass") but it doesn't work. And I can't find the php source of the product thumbs layout, generating the links, so I can't add them manually either.

    I'm sure this is a very basic operation, but I couldn't find any piece of information neither in the documentation nor in the forum.
    Please bear with me if I read past through it ! In which case just tell me where it is and I'll go check it myself.

    Thanks for you help,

    Posthoc.

    http://wordpress.org/extend/plugins/eshop/

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    I'd like to add a class to the links on this page

    That would be handled by your theme - not eShop.

  3. Posthoc
    Member
    Posted 1 year ago #

    Hey esmi,

    Thanks for your answer.

    The thing is, the links that I'm talking about are those generated by eShop. They're the ones in the title and the image of products when I display them as posts on a page (with a shortcode). Their class is "itemref". I can't find the php responsible for their creation. Do you have any idea where I can find it/them ? I pretty much opened every php file in the eShop plugin folder, with no success.

    Thanks for your help,

    Posthoc.

  4. elfin
    Moderator
    Plugin Author

    Posted 1 year ago #

    I wouldn't recommend changing the plugin anyway. It is used in several places within the plugin. If you provide a sample page and identify which portion you think needs another class I'll see if it is possible within eShop itself.

  5. Posthoc
    Member
    Posted 1 year ago #

    Well, thanks.

    For those who are having the same problem as I was : I didn't find the source, but could achieve most of what I wanted using jQuery. I would however suggest trying out other plugins to see if they don't fit more easily with you solution.

    After struggling quite some time, I switched to Wp e-commerce, which code is much more structured and commented.

    Thanks guys,

    Keep it up.

    Posthoc.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic