Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • jhexp Friend
    #205626

    In the cagox template is it possible to show the “add to cart” button from the category? (like the standard option for V3.x).

    Best regards

    Saguaros Moderator
    #567561

    Hi

    Since there is not enough space and it didn’t look good to include “add to cart” button in the category layout. We have decided to not have the “add to cart” appears in category page. This our decision and we developed it that way.

    If you want to customize it, you would some coding changes in the category browse page PHP file, which is located here: templatesja_cagoxhtmlcom_virtuemartsublayoutsproducts.php

    Below this snippet of code:


    <?php //echo $rowsHeight[$row]['price'] ?>
    <div class="vm3pr-<?php echo $rowsHeight[$row]['price'] ?>"> <?php
    echo shopFunctionsF::renderVmSubLayout('prices',array('product'=>$product,'currency'=>$currency)); ?>
    <div class="clear"></div>
    </div>

    Add this code:


    <div class="vm3pr-<?php echo $rowsHeight[$row]['customfields'] ?>"> <?php
    echo shopFunctionsF::renderVmSubLayout('addtocart',array('product'=>$product,'rowHeights'=>$rowsHeight[$row])); ?>
    </div>

    http://prntscr.com/6vx98z

    This is how our VM template was designed so you will need to add some css styles to make it looks good.

    Regards,
    Saguaros

    Saguaros Moderator
    #732671

    Hi

    Since there is not enough space and it didn’t look good to include “add to cart” button in the category layout. We have decided to not have the “add to cart” appears in category page. This our decision and we developed it that way.

    If you want to customize it, you would some coding changes in the category browse page PHP file, which is located here: templatesja_cagoxhtmlcom_virtuemartsublayoutsproducts.php

    Below this snippet of code:


    <?php //echo $rowsHeight[$row]['price'] ?>
    <div class="vm3pr-<?php echo $rowsHeight[$row]['price'] ?>"> <?php
    echo shopFunctionsF::renderVmSubLayout('prices',array('product'=>$product,'currency'=>$currency)); ?>
    <div class="clear"></div>
    </div>

    Add this code:


    <div class="vm3pr-<?php echo $rowsHeight[$row]['customfields'] ?>"> <?php
    echo shopFunctionsF::renderVmSubLayout('addtocart',array('product'=>$product,'rowHeights'=>$rowsHeight[$row])); ?>
    </div>

    http://prntscr.com/6vx98z

    This is how our VM template was designed so you will need to add some css styles to make it looks good.

    Regards,
    Saguaros

    jhexp Friend
    #567572

    Thanks Saguaros.

    It works fine. 🙂

    For my ecommerce, many user know the products and I prefer to include the possibility to buy in the category view rather than open the product detail view to do this.

    jhexp Friend
    #732682

    Thanks Saguaros.

    It works fine. 🙂

    For my ecommerce, many user know the products and I prefer to include the possibility to buy in the category view rather than open the product detail view to do this.

    Saguaros Moderator
    #567573

    Yea! it makes senses 🙂

    Glad to be of help!

    Have a nice day!!!!

    Saguaros Moderator
    #732683

    Yea! it makes senses 🙂

    Glad to be of help!

    Have a nice day!!!!

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

This topic contains 7 replies, has 2 voices, and was last updated by  Saguaros 9 years, 1 month ago.

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