Welcome, Guest. Please login or register.
Login with username, password and session length


VirtueMart 1.1.8 - [SECURITY RELEASE] is available! Read more....

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
Pages: 1 [2] 3 4   Go Down
Print
Author Topic: Product_types and Custom Fields  (Read 44565 times)
macallf
Hero Member
*****
Posts: 2420



WWW
« Reply #15 on: May 07, 2009, 05:51:34 AM »

That's what child products and advanced attributes are for! Which are already there too!

But you cant search on advanced attributes.
Logged

Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.
Scott
Development Team
Newbie
*
Posts: 2


« Reply #16 on: May 22, 2009, 02:24:53 AM »

Hi Mark,

You seem to have a great understanding of product types and this is exactly what I was looking for. However is there a way to allow better formatting of the text. Is it possible to turn the text area into the tinyMCE editor? I have been playing around with it all day and can't seem to get it working.

Thanks

Scott
Logged
cerealkiller
Newbie
*
Posts: 7


« Reply #17 on: June 06, 2009, 07:23:58 AM »

I use product type but I need it to be printed in product list. I tried to write in my browse.php page <?php echo $product_type ?><br />, but it seems that this script do not load product type in sql request, cause it doesn't work !

Do someone know how to use it ?
Logged
keokeo
Newbie
*
Posts: 2


« Reply #18 on: June 17, 2009, 21:48:09 PM »

Thanks for your posts. They are really very cool, very wonderful.
simulationcredit

Logged
archonmk
Newbie
*
Posts: 3


« Reply #19 on: June 19, 2009, 16:45:38 PM »

I'm making a e-store for selling music and i made two new parameters for one title and author (short text fields). Now i need to enable the shopper to choose whether to search by author or by title. Is there a module or option that i can use to enable this.
Logged
macallf
Hero Member
*****
Posts: 2420



WWW
« Reply #20 on: June 19, 2009, 16:48:49 PM »

advanced search by parameters. this allows you to search on product_type fields
Logged

Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.
control1110
Newbie
*
Posts: 24


« Reply #21 on: June 19, 2009, 22:38:20 PM »

Is there a way to a product type to multiple products at once. I tried hitting all the check boxes then apply but it still only adds one product
Logged
macallf
Hero Member
*****
Posts: 2420



WWW
« Reply #22 on: June 20, 2009, 05:01:44 AM »

There is a problem in 1.1.3 with multiple add, this is corrected with 1.1.4 which should be released soon.
Logged

Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.
manola
Newbie
*
Posts: 4


« Reply #23 on: July 02, 2009, 02:06:32 AM »

Where can I find the instructions for the command line install?
sonnerie portable gratuite
Logged
macallf
Hero Member
*****
Posts: 2420



WWW
« Reply #24 on: July 02, 2009, 05:05:42 AM »

Command line install of what?

Logged

Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.
manola
Newbie
*
Posts: 4


« Reply #25 on: July 06, 2009, 01:55:01 AM »

Thank yopu so much for your posts.
sonnerie portable gratuite
Logged
alexson115
Newbie
*
Posts: 1


« Reply #26 on: July 06, 2009, 05:16:25 AM »


Hello everyone. Nice to meet you all.

pret personnel
Logged
esedic
Jr. Member
**
Posts: 60



WWW
« Reply #27 on: July 08, 2009, 07:14:12 AM »

Product types can also be further enhanced by what are called custom flypages. These are not templates but php scripts that process the info for that product type and enables you to display it as you wish e.g. Displaying icons instead of text for certain parameters dependent on their value etc. Or anything else for that matter. I have a site that uses product types to display icons, extract exif information of a digital information and extract exif information and display a google map according to it's co-ordinates.

Hi Mark!

Can you explain just a little bit in more detail how to display image or even better html code based on the product type parameters? Have anybody else tried to display image or html code dependent on the values of the product type parameters?
Logged

macallf
Hero Member
*****
Posts: 2420



WWW
« Reply #28 on: July 08, 2009, 07:38:15 AM »

Your request is rather specific, but the code below shows how to display an image file based on the paramter label, if the value is set to no then nothing is displayed, if the value is yes then it is.

Code:
if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );

mm_showMyFileName( __FILE__ );

$html1 = "";
            $html1 .= "\n<div class=\"product_type_detail_icon\" >\n";
// SELECT parameter value of product
$q2  = "SELECT * FROM #__{vm}_product_type_".$dbag->f("product_type_id");
$q2 .= " WHERE product_id='$product_id'";
$dbp->query($q2);
// SELECT parameter of Product Type
$dba->query($q.$dbag->f("product_type_id")." ORDER BY parameter_list_order");
           
while ($dba->next_record()) {
                $param_value = $dbp->f($dba->f("parameter_name"));
               
                $icon = "icon_".$dba->f("parameter_label").".png";
                if($param_value != "no") {
                    $parameter_description = $dba->f("parameter_description");
                    if (empty($parameter_description)) {
                        $parameter_description = "";
                    }
                    $html1 .= vmToolTip($parameter_description, "Icon Description",IMAGEURL."product_type/".$icon);
   
                }
}
            $html1 .= "</div>\n";
//$html1 .= "</table>\n";
            return $html1;
           
?>

$q and $dbag are generated by ps_product_type and are just carried over.

$dbp holds the parameters of the product type but not the value
$dba holds product_id and values of the product types
$dbag is the actual product_type being referenced

This file would be stored as e.g. icons.php in the templates directory of the theme, the product type flypage would be set to icons (no .php)

I hope that helps
Logged

Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.
scratch
Newbie
*
Posts: 3


« Reply #29 on: July 09, 2009, 12:36:55 PM »

hi ..can anyone tell me if it's possible to show product images on the homepage...especially for the featured products.
Logged
Pages: 1 [2] 3 4   Go Up
Print
Jump to: