Please refer to TemplateMonster Support for any issues surrounding TemplateMonster/TemplateTuning Themes – thanks, Jigoshop Team

Removing "Posted in" on Product pages

ponyvixen

27 Dec, 2011 01:01 AM

I feel like this is something very simple that I am overlooking... I'd like to get rid of the little bit that says, "Posted in ______(category)" that appears under the Summary/Add To Cart section of my product pages. I can't seem to figure out what php file that's in, or find any toggle switches to turn it off.....

Thanks for anyone's help!!

  1. 2 Posted by liviuboldis on 09 Jan, 2012 09:25 AM

    I want to do the same thing. Any help here ?

  2. Support Staff 3 Posted by chriscct7 on 09 Jan, 2012 01:00 PM

    chriscct7's Avatar

    Hey guys,
    Its line 240 in jigoshop_theme_functions.php

    It says:

        <div class="product_meta"><?php if ($_product->is_type('simple') && get_option('jigoshop_enable_sku')=='yes') : ?><span class="sku">SKU: <?php echo $_product->sku; ?>.</span><?php endif; ?><?php echo $_product->get_categories( ', ', ' <span class="posted_in">' . __( 'Posted in ', 'jigoshop' ) . '', '.</span>'); ?><?php echo $_product->get_tags( ', ', ' <span class="tagged_as">' . __( 'Tagged as ', 'jigoshop' ) . '', '.</span>'); ?></div>
    

    Remove this out of there:
    <?php echo $_product->get_categories( ', ', ' ' . __( 'Posted in ', 'jigoshop' ) . '', '.'); ?>

    Then it will be gone

    -Chris

  3. Support Staff 4 Posted by chriscct7 on 09 Jan, 2012 01:01 PM

    chriscct7's Avatar

    My apologies,
    the correct file is jigoshop_template_functions.php

    -Chris

  4. Support Staff 5 Posted by chriscct7 on 09 Jan, 2012 01:04 PM

    chriscct7's Avatar

    Wierd,
    The comment moderator axed my code up there. Hoping you guys see that. You need to remove everything from the <?php echo $_product->get_categories

    to the 'Posted in ', 'jigoshop' ) . '', '.'); ?>

    -Chris

  5. 6 Posted by liviuboldis on 09 Jan, 2012 02:14 PM

    Thanks !

    It worked !

  6. Support Staff 7 Posted by chriscct7 on 09 Jan, 2012 02:18 PM

    chriscct7's Avatar

    Yeah, no problem

    -Chris

  7. 8 Posted by liviuboldis on 09 Jan, 2012 05:18 PM

    Chris,

    I want to ask one more thing - can i put a link instead of that line ?

    e.g. - Instead of Posted in and Tagged as, i want to put a link to a page.

    Can i do this ? Thanks ! U are the best ! :)

  8. Support Staff 9 Posted by chriscct7 on 09 Jan, 2012 11:17 PM

    chriscct7's Avatar

    It's not letting me answer your question here (@Jigoshop staff: is there a way to stop it auto-moderating code segments?) so I posted the answer here: http://pastebin.com/hPFuQ4Qz

    If this is not what you need, comment back here.

    -Chris

  9. 10 Posted by Matt on 10 Jan, 2012 01:22 AM

    Matt's Avatar

    Comment moderation is to prevent spam from anonymous users. It would probably not have marked your post as spam if you were logged in :p

  10. Support Staff 11 Posted by chriscct7 on 10 Jan, 2012 01:39 AM

    chriscct7's Avatar

    @liviuboldis Use the one that I didn't delete (has a Pastebin link). Seems the comment moderator took my code literally
    @Matt By now the system should realize that Chris=not spam. Someone (not Jigoshop; they have some important VARIATION wink wink features to add)) needs to add some AI into Tender.

  11. 12 Posted by liviuboldis on 10 Jan, 2012 09:54 AM

    Chris - thanks again ! U are so fast ! :) Thank you !

    I u want, u can check how i customized the product pages here : http://vreaucanapea.ro/magazin/canapele-barcelona/

  12. Support Staff 13 Posted by chriscct7 on 10 Jan, 2012 10:16 AM

    chriscct7's Avatar

    Yeah no problem.
    I see we are designing a site off of the Sommerce theme.
    Instead of having that big warning thing in the header, you could achieve the same effect by going into Jigoshop->Settings and set it as a demo store.
    Just a thought

    -Chris

  13. 14 Posted by liviuboldis on 10 Jan, 2012 11:12 AM

      Thanks again Chris, but i can`t translate that ( i can`t find that string. even on the code i can`t find it ) and i want to say in Romanian that the shop is in construction.

     Thank you again !

  14. Support Staff 15 Posted by chriscct7 on 10 Jan, 2012 12:17 PM

    chriscct7's Avatar

    Oh okay.
    Well have fun developing :)

    -Chris

  15. 16 Posted by Matt on 10 Jan, 2012 02:49 PM

    Matt's Avatar

    Here's where that demo message is.

    jigoshop.php, function jigoshop_demo_store() {

    Though I'll note that the message is translatable through PO files.

  16. Support Staff 17 Posted by chriscct7 on 11 Jan, 2012 04:17 AM

    chriscct7's Avatar

    The URL to Romainan

    http://codex.wordpress.org/WordPress_in_Your_Language#Romanian-Rom.C3.A2n.C4.83_.28ro_RO.29

  17. 18 Posted by liviuboldis on 11 Jan, 2012 08:15 AM

      Thank you all for answering so fast !

      I have the romanian Wordpress installed and i`ve translated the jigoshop .po file 100% but that string with the Demo store was not there. Anyhow, i will translate that string on the code.

      Again, thank you all !

       I`m on the internet since 1998 but i didn`t find support or forum like this ! Simply awesome ! U guy are fast and understanting ! Thank you !

  18. 19 Posted by ponyvixen on 22 Oct, 2012 08:54 PM

    I'm trying to get rid of the slug titles for the attributes in variable products. Does anyone know where to delete it, or at least recode it so it pulls from the variation Name instead of Slug?

    Earlier this year I was able to delete it completely so it was just the dropdown menu, but I don't recall how to do it and can't find that thread on the Jiigoshop forums anywhere...

    Thanks!

  19. Support Staff 20 Posted by chriscct7 on 23 Oct, 2012 12:39 AM

    chriscct7's Avatar

    Please post your own thread. Do not reopen old threads.

  20. chriscct7 closed this discussion on 23 Oct, 2012 12:39 AM.

  21. ponyvixen re-opened this discussion on 23 Oct, 2012 04:55 AM

  22. 21 Posted by ponyvixen on 23 Oct, 2012 04:55 AM

    Since it hadn't been closed, I didn't reopen it. Though now you've closed it after the fact.

    PS. I started this thread to begin with. It's already mine.

    Cheers.

    Ponyvixen.

  23. Support Staff 22 Posted by chriscct7 on 23 Oct, 2012 09:23 AM

    chriscct7's Avatar

    Right, but its a year+ old.
    Working on going back and closing some of these old ones now.

  24. chriscct7 closed this discussion on 23 Oct, 2012 09:24 AM.

Comments are currently closed for this discussion. You can start a new one.