VirtueMart Dev/Coding Central: VM1 (old version) > Development Projects, Modifications, Hacks & Tweaks. VM1.1
product types modification
DirtySnipe:
I cant figure this out????
IM using a custom theme. uploaded the files made added the details on product types. They save in backend but i cannot get them to show on product details page.
ataxel:
--- Code: ---[code][code]
--- End code ---
Thank you for this great mod... WORKs WONDERFULLY!
I still have a question that is probably simple for a lot of php developper :
I have 2 product type and i want to display it on the same FlyPage (one or the other) according to wich product type it is.
So my 2 product types are caracteristics and custom.
Can you help me transform this to code :
if producttype==$caracteristic
display this part of code
--- Code: ---<?php if ($caracteristiques == !"")?>
{
<ul>
<?php
if ($caracteristiques_quantite != "")
{
?>
<li><?php echo $caracteristiques_quantite;} ?></li>
<?php
if ($caracteristiques_biologique != "")
{
?>
</ul>
--- End code ---
else
if producttype==$custom
display this other part of code
[/code]
--- Code: ---<?php if ($custom == !"")?>
{
<ul>
<?php
if ($custom_quantite != "")
{
?>
<li><?php echo $custom_quantite;} ?></li>
<?php
if ($custom_conservation != "")
{
?>
<li><?php echo $custom_conservation;} ?></li>
</ul>
--- End code ---
[/code]
Huge thank you!
QubeSys Technologies:
Sorry, another issue.
I have created a Product Type and then created a Paramter with text .
Now I have assigned all of my products to that product type and entered text for all of those products.
Now, i want to show this info on the product flypage.
So, I just went to the flypage.tpl.php in my custom VM theme folder and entered this <?php echo $product_more_info ?>
, just after the description bloc, so it appears below it.
But it doesnt show anything.
But If I put this,
<?php echo $product_type ?>
It works.
But it shows this way,
I dont want that strings to come ,
"Parameters of Product: Product Info
Product More Info"
Where can I remove it ?
And why <?php echo $product_more_info ?> this doesnt work ?
serge-web54:
hello, (please excuse my english, i'm french ... and my syntax, i'm also french )
i tried your mod
it works fine, exept : id'like to have an image instead the text in the description of the product type.(for exemple a bio label when product type is bio)
and it doesn't work.
that's not your fault
it s in joomla code
but i don't know how to solve it
Dallasjmoore:
Hello Mark,
First I wanted to thank you for product type patch. It works wonderfully.
I noticed that there has not been much activity on this topic for some time but I was hoping that you could answer a question for a fellow Joomla user.
I'm creating a site that sells auto parts. The product in question is regarding belts. We don't feel that it is necessary to list all the belts as individual products, so we want to include all the different belt products as a child list.
Each belt has cross reference parts (product types) that it can replace from other manufacturers
In vmart 1.1.4 I am trying to get the product types to display the same way in the product's child list.
example: With your hack, my product type param that I'm using on the flypage is $Cross_Reference_gates, but I can't seem to get it working in the child list.
I have been doing some trial and error on this file:
/components/com_virtuemart/themes/default/templates/product_details/includes/addtocart_list_multi.tpl.php
I really appreciate any knowledge you can provide.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version