Author Topic: Custom Fields in Category View  (Read 436 times)

hendrikdebeer

  • Beginner
  • *
  • Posts: 42
  • A beginner
Custom Fields in Category View
« on: October 08, 2018, 14:29:09 pm »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8561
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Custom Fields in Category View
« Reply #1 on: October 08, 2018, 16:10:53 pm »
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

hendrikdebeer

  • Beginner
  • *
  • Posts: 42
  • A beginner
Custom Fields in Category View
« Reply #2 on: October 09, 2018, 06:19:29 am »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8561
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Custom Fields in Category View
« Reply #3 on: October 09, 2018, 11:22:43 am »
have u enabled themin the vm admin?

Show product customfields in browse views
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3519
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Custom Fields in Category View
« Reply #4 on: October 10, 2018, 00:22:18 am »
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

  • Beginner
  • *
  • Posts: 42
  • A beginner
Custom Fields in Category View
« Reply #5 on: October 23, 2018, 10:49:30 am »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8561
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Custom Fields in Category View
« Reply #6 on: October 23, 2018, 10:55:22 am »
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

hendrikdebeer

  • Beginner
  • *
  • Posts: 42
  • A beginner
Custom Fields in Category View
« Reply #7 on: October 23, 2018, 11:53:14 am »
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

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27097
  • Always on vacation
    • Jenkin Hill Internet
Re: Custom Fields in Category View
« Reply #8 on: October 23, 2018, 12:07:22 pm »
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

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.4.3.9989 on Joomla 3.9.1 PHP 7.0.32
Testing VM 3.4.3.9993 on Joomla 3.9.1

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8561
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Custom Fields in Category View
« Reply #9 on: October 23, 2018, 12:53:25 pm »
.product-cart-variants {
    font-size: 150%;
}
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9743
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Custom Fields in Category View
« Reply #10 on: October 24, 2018, 08:04:32 am »
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)
Code: [Select]
<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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

hendrikdebeer

  • Beginner
  • *
  • Posts: 42
  • A beginner
Custom Fields in Category View
« Reply #11 on: October 24, 2018, 10:28:39 am »
Thank you GJC

This code actually worked well...

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

I just adjusted the %