News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Custom Fields in Category View

Started by hendrikdebeer, October 08, 2018, 14:29:09 PM

Previous topic - Next topic

hendrikdebeer

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

GJC Web Design

must be your template -- if show custom fields is selected in admin on a stock template they show
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

hendrikdebeer

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

GJC Web Design

have u enabled themin the vm admin?

Show product customfields in browse views
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

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

hendrikdebeer

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;


GJC Web Design

I think u need to teach yourself the very basics of website building:  start here:  http://forum.virtuemart.net/index.php?topic=102850.0
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

hendrikdebeer

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.

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

GJC Web Design

.product-cart-variants {
    font-size: 150%;
}
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Milbo

#10
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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

hendrikdebeer

Thank you GJC

This code actually worked well...

.product-cart-variants {
    font-size: 150%;
}

I just adjusted the %