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

[fixed] 2.9.9b Custom Field Plugins - Can't add Custom Field Plugins to product

Started by nordmograph, September 17, 2014, 15:08:23 PM

Previous topic - Next topic

nordmograph

Hi,

Core custom fields plugins such as Text input or Specifications were being added to a product without issue till 2.9.9a.
Now on 2.9.9b nothing happen when selecting the text input .

The browser console is showing this error when selecting the Specification custom field plugin in a product edit page
http://localhost/virtuemart3/administrator/index.php?option=com_virtuemart&...task=getData&format=json&virtuemart_product_id=195&type=fields&id=60&row=9 500 (Internal Server Error)

When opening that url I get:
1146 Table 'vm3.xxx_virtuemart_product_custom_plg_specification' doesn't exist SQL=SELECT `id` FROM `ywla4_virtuemart_product_custom_plg_specification` WHERE `virtuemart_product_id`=195 and `virtuemart_custom_id`=60


John2400

Yes - I added a custom field drop down string of colours.

The custom field can be seen on the product but does not add to the cart. (nor the invoice)

2.9.9b - 3.3.3 joomla

nordmograph

Hello John , thank you for your reply.

Sorry if I have not been clear. I meant a custom field of type "Plugin" . Other core custom fields work fine for me too.
But the issue I described is related to Custom field plugins only. Can you try?

John2400

Interesting... the text plugin ?


Try this page http://www.simplystuck.com.au/shop/index.php/component/virtuemart/view/productdetails/virtuemart_product_id/5/virtuemart_category_id/1

Ok you can see that no colours are added to the cart.
I got text to work but product specific. Not something I use.. But I did try and set one up and I had no luck..

Give me an idea of what you might add as a plugin product specific you might set?

nordmograph

Hey John, thanks

Well any.
The text input plugin seems to workfine for you. This is weird, I tryed on 2 diffeent setups.
Can you also try the Specifictions plugin custom field (I don't need a demo, I trust your word :)  )
This Specification plugin throws an error in my Browser's console, as described in the first post of this topic.


John2400

Hi,

Sorry I did try it ... It did nothing for me. I said so on my previous post.. No good, did not work for me..

But I'm not sure exactly what that option should do? Show me an example ... Image ..of a setting.? What is that plugin used for?

Milbo

You must store the custom first, at least one time. so that the table is created.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

nordmograph

Thanks Milbo and John, but I think you got me wrong.

Yes the custom field is created when using the plugin (text input (2 options) or specifications (no setting) ) , but selecting it in the product details as a custom field does'nt load it. and the specifications one throws the table doesn't exist message in the browser console.

I have this behaviour on 2 of my 2 different vm2.9.9b setups and I usually know, for few years now, how vmcustom fields are supposed to be added. :)

Screenshot attached:



[attachment cleanup by admin]


Milbo

you should open your skype and take the new version, which is waiting to be accepted
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

nordmograph

Done  , I should also say thank you !
Yes this issue is fixed now: Custom field plugins work as expected and can be added to products.
I still get the errors with product specs, though but this would be another topic.
Well done !