Good day
I have added some custom text (size) on products. It seems that shows on all the pages except when in category view.
Is there any way that I can show the custom text fields in Category view as well?
See links hereunder:
http://www.pjdev.co.za/index.php/most-viewed-items
Shows sizes
http://www.pjdev.co.za/index.php/bow-tents1
Doesn't show any sizes at bottom.
Please help!
Joomla! 3.8.12 | VirtueMart 3.4.0
must be your template -- if show custom fields is selected in admin on a stock template they show
I've changed the template to vmbeez3 - Default - and it still does the same thing.
It doesn't show the custom fields in the category view
have u enabled themin the vm admin?
Show product customfields in browse views
The modules do not use exactly same code as sublayouts. So compare virtuemart/sublayouts/products.php and your mod_virtuemart_product/tmpl/default.php or any overrides in your template.
Of course, if you use another module, then check the mod_XXX/tmpl/default.php file
I'm trying to make the custom text to show a bit bigger, it is very small
Does anybody know what the css code will be to make it bigger?
The custom FIELD TYPE IS: STRING
I would think that the code will probably look like this: Just not sure what the NAMING OF ITEM should be for custom string text?
.product-listing.mode-grid .custom-string-text {
font-size: 18px !important;
I think u need to teach yourself the very basics of website building: start here: http://forum.virtuemart.net/index.php?topic=102850.0
I know I have been bombarding this forum since last week, but it's because we had a meeting last week Thursday and I'm SO CLOSE to an end result and just need to tie-up some loose ends.
Our next meeting is tomorrow and I'm trying my best to make the changes before then.
So I just need to find out if it is possible to make the custom text area a bit bigger.
As indicated by GJC you should use Firebug or similar to examine the current css and apply a suitable override. You are not using the default VirtueMart templates so if there are template layout or style changes you wish to make you should ask the template developer. Please see http://forum.virtuemart.net/index.php?topic=108212.0
.product-cart-variants {
font-size: 150%;
}
Quote from: hendrikdebeer on October 08, 2018, 14:29:09 PM
Is there any way that I can show the custom text fields in Category view as well?
There is a function which gathers the customfields to be shown. Usually a product has two main types of customfields, one type changes the product (variant) the other type just gives information about the product. The browse view should usually show only the customfields which change the product, not the ones which keep the specs. I added some years ago a method to controll this.
Check your sublayout "products.php". There you see around line 126 (of course depends on your override)
<div class="vm3pr-<?php echo $rowsHeight[$row]['customfields'] ?>"> <?php
echo shopFunctionsF::renderVmSubLayout('addtocart',array('product'=>$product,'rowHeights'=>$rowsHeight[$row], 'position' => array('ontop', 'addtocart'))); ?>
</div>
The last "parameter" tells VM which customfields positions to show, the default is 'position' => array('ontop', 'addtocart'), which shows all customfields with position "ontop" and "addtocart". So when you want that your customfield appears in the browseview, be sure to use one of these positions or make an override and add your own position.
Thank you GJC
This code actually worked well...
.product-cart-variants {
font-size: 150%;
}
I just adjusted the %