VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: guardiano78 on July 14, 2014, 17:51:21 PM

Title: shoppergroups
Post by: guardiano78 on July 14, 2014, 17:51:21 PM
hi,
I'm analyzing the table {prefix}_virtuemart_shoppergroups and I would read what is written in the "price_display."
I would also read and write.
I dont't know how BLOB field work's.

Can anyone help me?
Thank you.
Title: Re: shoppergroups
Post by: slammy on July 14, 2014, 20:38:11 PM
Hi guardiano78,
as far as I know BLOB“s are binary-file-data saved in a db instead as a file on a directory-path. What do u want to do?
regards jens
Title: Re: shoppergroups
Post by: guardiano78 on July 14, 2014, 21:31:41 PM
I'm trying to create php scripts through an external xml file to import and export data from the database. I noticed that "price_display" is the only field in the database to be "blob". Unfortunately I have no idea how it handles.
Maybe it could be useful to find queries that deal to do insert and update shopper group, but I do not find.
Title: Re: shoppergroups
Post by: Milbo on July 15, 2014, 09:11:25 AM
Make your live easier and learn how to use the VM API. http://dev.virtuemart.net/projects/virtuemart/wiki/Developing_a_module_or_plugin_for_VirtueMart_2
Title: Re: shoppergroups
Post by: guardiano78 on July 15, 2014, 10:59:43 AM
Thank you Milbo,
but to achieve my goal I have to work outside the joomla.
I need only to know how to read e write "price_display" (blob) in _virtuemart_shoppergroups
Title: Re: shoppergroups
Post by: GJC Web Design on July 15, 2014, 11:19:50 AM
Still think you should look into building a vm custom plugin - you are then "inside" VM and can use all the Joomla & VM classes
Title: Re: shoppergroups
Post by: slammy on July 15, 2014, 11:34:19 AM
take a look here:

http://dev.mysql.com/doc/refman/5.0/en/blob.html
http://dev.mysql.com/doc/connector-net/en/connector-net-programming-blob-writing.html ( VB-Example with MySQL and C# )
http://www.mysqltutorial.org/php-mysql-blob/
http://php.net/manual/en/function.fbsql-read-blob.php