test
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • matgray87 Friend
    #201765

    Hi,
    I want to include the mijoshop module on the store page in the features position, so I changed

    <?php $this->loadBlock('mainbody') ?>

    to
    <?php $this->loadBlock('mainbody-features') ?>

    in the default.php template.

    The module displays properly in the store after removing

    .box-product > div {
    width: 130px;
    display: inline-block;
    vertical-align: top;
    margin-right: 20px;
    margin-bottom: 20px;
    }

    from the default mijoshop stylesheet…

    However, when used on different pages, i.e. here, the class of the ‘product-item’ is being changed from ‘product-item grid-1×1’ to ‘product-item col-xs-12 col-sm-6 col-md-3 col-lg-3’ and I can’t figure out why… seeing as in the module template ‘latest.tmp’ the class is ‘product-item grid-1x’

    Sounds a bit confusing, so apologies for that… but any ideas?

    Thanks,
    Matt

    Saguaros Moderator
    #551501

    Hi Matt,

    Thought that it’s not so confusing like that as in the homepage, you use a module (in features-4 position) to show products while the page you’re mentioning is Mijoshop page with grid layout. Hence, these 2 pages will have different layouts, different markup and CSS class used.

    Kindly take a look again.

    matgray87 Friend
    #551572

    <em>@Saguaros 448272 wrote:</em><blockquote>Hi Matt,

    Thought that it’s not so confusing like that as in the homepage, you use a module (in features-4 position) to show products while the page you’re mentioning is Mijoshop page with grid layout. Hence, these 2 pages will have different layouts, different markup and CSS class used.

    Kindly take a look again.</blockquote>

    Hi,
    I understand what you mean… however I’ve sorted the CSS fine… just from somewhere there seems to be a string replace of

    product-item grid-1x1
    to
    product-item col-xs-12 col-sm-6 col-md-3 col-lg-3
    , as if I leave everything the same, other than change ‘product-item’ to e.g. ‘product-item2’, then it styles perfectly, and leaves grid-1×1 as a class…
    Where is the somewhere that the replacement of the string is being controlled?
    Thanks,
    Matt

    Saguaros Moderator
    #551588

    Hi Matt,

    You can find these classes in template files of latest product and latest module of Mijoshop component:


    componentscom_mijoshopopencartcatalogviewthemedecortemplateproductlatest.tpl
    componentscom_mijoshopopencartcatalogviewthemedecortemplatemodulelatest.tpl

    matgray87 Friend
    #551722

    Perfect… found it, thanks!
    Is there a way to distinguish whether or not the products are in a module or not before stripping and replacing the class?
    Cheers

    Saguaros Moderator
    #551902

    Hi Matt,

    I think that which products display on module or in Mijoshop grid view will depend on the configuration in module or menu item of Mijoshop.

    You can control the classes which are used in module (or grid view page) by overriding/customizing above template files.

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 2 voices, and was last updated by  Saguaros 10 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum