-
AuthorPosts
-
April 17, 2015 at 7:31 pm #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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
April 20, 2015 at 4:54 am #567561Hi
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>
This is how our VM template was designed so you will need to add some css styles to make it looks good.
Regards,
Saguaros1 user says Thank You to Saguaros for this useful post
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
April 20, 2015 at 4:54 am #732671Hi
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>
This is how our VM template was designed so you will need to add some css styles to make it looks good.
Regards,
Saguaros1 user says Thank You to Saguaros for this useful post
April 20, 2015 at 6:48 am #567572Thanks 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.
April 20, 2015 at 6:48 am #732682Thanks 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.
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by Saguaros 9 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum