Ecommerce + Slate

Permalink Browser Info Environment
I'm developing a site which uses the Slate Theme and ecommerce add-on and am finding the individual product detail page is displaying duplicate information.

I though it might be something I had done, so I did a fresh install of both with demo content and discovered the same issue (photo attached).

Title and content is repeated above the normal product info in a non-editable text area. I'l update this post as I find out where the duplication is appearing from, but just thought it would be good for others to be aware of.

1 Attachment

Type: Discussion
Status: New
jamesleech
View Replies:
jamesleech replied on at Permalink Reply
jamesleech
It seems that by removing the following lines from pagemeta.php solves the issue of content duplication, however, I am currently unsure what I lose for this change.

<?php  if ($c->getCollectionTypeHandle() == 'blog_entry' || $c->getCollectionTypeHandle() == 'pb_post') { ?>
            <h1><?php  echo $parentPage->getCollectionName();?></h1>
            <?php  if ($parentPage->getCollectionDescription()) { ?>
                <p><?php  echo $parentPage->getCollectionDescription() ?></p>
                <?php  } ?>
         <?php  } else {?>
               <h1><?php  echo $c->getCollectionName() ?></h1>
            <?php  if ($c->getCollectionDescription()) { ?>
                <p><?php  echo $c->getCollectionDescription() ?></p>
                <?php  } ?>
         <?php  } ?>


Is the ecommerce add-on somehow conflicting with other data sources such as blogging content? I'll keep an eye out for the more experienced folk to comment on this.
c5mix replied on at Permalink Reply
c5mix
Yeah, removing that from pagemeta.php will remove that section from all other page types. You could just remove the following line from the theme's view.php file (located at theme_slate/themes/slate/view.php):
<?php $this->inc('elements/pagemeta.php'); ?>

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.