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

From 3.0.9 to 3.0.10 Custom Fields dont show up

Started by SnakeFFM, November 01, 2015, 22:00:40 PM

Previous topic - Next topic

SnakeFFM

Hi!

just tried 3.0.10 and everything was working pretty fine except of the 'custom fields" function.

I use custom fields especially to show typical attributes above products, for instance '1. edition', but I then dont use any values or something. For instance: http://www.tradingcards4you.de/de/yugioh/premium-gold-2/Absoluter%20K%C3%B6nig%20D%C3%BCsen-Jack-detail.html (page is in German, therfore 1. edition is equal to '1. Auflage')

In custom field options I've typed in the following parameters: "string" - Show title? 'yes' public? 'yes' layout position 'ontop'

Once I ve updated to 3.0.10 all custom fields were wiped away. I've noticed that once I've stated something in the value field of a certain product, then the certain custom field showed up again.

I now changed back to 3.0.9 and the custom fields are there again - Did i miss something in regarding my custom field options which needs to be changed when using 3.0.10?

I hope this feedback is kind of helpful for you guys.

Best,
Snake

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

SnakeFFM

Hi Milbo,

is this a known issue?

I ll have a try and let you know the results.

Thanks for your swift response.

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

SnakeFFM

Just installed it locally and installed it, result now:

- Custom fields still dont show up and additional error in cart: 'Programmer used an unknown userfield agreed' which only shows up when I use the virtueplanet plugin 'onepage checkout'

Milbo

then you should create the userfield agreed. Sounds like it is missing.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

SnakeFFM

Custom Field

Well, regarding custom fields it's still the same. They are only shown when I add any value. For instance I have the following custom field:

- String
- Title: 'Gold Secret Rare'

If I type in as value '1' then you see it. If the field is empty then it's gone again. In 3.0.9 it was not necessary to enter any value to see the customfields.

Checkout

I am using the plugin as I am not so much into the code of virtuemart (quick solution). Was also working without any alerts on 3.0.9 - Normal checkout works perfectly. I know you guys dont support 3rd party extensions, I ve just noticed that there is also something different than before.

Milbo

It is only a small thing, i am sure there will be an update by the 3rd party.

"If I type in as value '1' then you see it. If the field is empty then it's gone again. In 3.0.9 it was not necessary to enter any value to see the customfields."

in the category browse view?
Yes we removed showing of the title, when the value is empty, usually it is not wanted. Hmmm, I fear I have to create an option for, but you could also just override the function. It is overrideable!
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

SnakeFFM

Havent seen any post in the forum yet, maybe I ll tell the 3rd party guys.

Category Browse view is the view that appear after you ve clicked on a product right? http://www.tradingcards4you.de/de/yugioh/premium-gold-2/ger%C3%BCmpelriese-detail.html

In my "live" version I have still 3.0.9 running thats why you can still see the product fields.

Well, I wouldnt mind to do an override (just a normal override in the html folder of the template, right?). Would you mind to tell me how the override would have to look like?

Have a good night.

SnakeFFM

well, the reason for the error in the cart was related to the shopper field 'agreed' not published...

and for the custom fields I made an override in custofields as stated (sublayouts > customfields.php):

/*|| empty($field->display)*/

foreach ($product->customfieldsSorted[$position] as $field) {
if ( $field->is_hidden /*|| empty($field->display)*/) continue; //OSP http://forum.virtuemart.net/index.php?topic=99320.0
?><div class="product-field product-field-type-<?php echo $field->field_type ?>">
<?php if (!$customTitle and $field->custom_title != $custom_title and $field->show_title) { ?>
<span class="product-fields-title-wrapper"><span class="product-fields-title"><strong><?php echo vmText::($field->custom_title?></strong></span>
<?php if ($field->custom_tip) {
echo JHtml::tooltip (vmText::_($field->custom_tip), vmText::($field->custom_title), 'tooltip.png');
?>
</span>
<?php }
if (!empty($field->display)){
?>
<div class="product-field-display"><?php echo $field->display ?></div><?php
}
if (!empty($field->custom_desc)){
?>
<div class="product-field-desc"><?php echo vmText::_($field->custom_desc?></div> <?php
}
?>

</div>
<?php
$custom_title $field->custom_title;
?>



Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

SnakeFFM

I am not sure how other people use custom fields, but I liked your idea to add an option to show the custom field yet it has no value. However, I dont know how much work that would cause for you, but I was quite happy to use the fields tough they had 'no value'.

Thanks for ur support mate.

jooomlaa

Have installed VM Version 3.0.12 (J!3.4.5). The error is still displayed. :-(

GJC Web Design

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

jooomlaa

#14
The Cart-Message: "Error: Programmer used an unknown userfield agreed".
The Error exists since i have update vm from 3.0.9 to 3.0.12