VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Products, Prices, Tax and Categories VM 1.1 => Topic started by: kontrolfreek on December 18, 2008, 19:25:46 pm

Title: product description and images
Post by: kontrolfreek on December 18, 2008, 19:25:46 pm
ok, i have searched these forums back as far as 07 without any luck fixing this issue.  i am using 1.1.2 stable and have added 3 products to my shop.  the fps freek seems to be working fine, the image in the description shows up no problem.  i added two others that dont work, the image just dont show and they were created exactly the same way as the other, whats going here.  i have changed permissions and changed them back, refreshed and cleared temp files, everything i know to do, please help.

the one that works is here
http://www.kontrolfreek.com/content/index.php?page=shop.product_details&product_id=2&flypage=flypage.tpl&pop=0&option=com_virtuemart&Itemid=200

one that done here
http://www.kontrolfreek.com/content/index.php?page=shop.product_details&product_id=5&flypage=flypage.tpl&pop=0&option=com_virtuemart&Itemid=200

thanks
Title: Re: product description and images
Post by: kontrolfreek on December 18, 2008, 20:13:12 pm
screw it ill remove the images and just do text unless some one posts in here a fix but the links above might not be same
Title: Re: product description and images
Post by: klutzon on January 21, 2009, 02:03:15 am
Hey kontrolfreek,

Let me understand you correctly: you want to put multiple images into the long description area, and only one of them shows up on the front-end? I'd like to help solve this, because this could potentially be really useful...
Title: Re: product description and images
Post by: kontrolfreek on January 21, 2009, 06:17:11 am
im not sure now, been like 3 weeks, i really dont remember but i do think that was the issue
Title: Re: product description and images
Post by: klutzon on January 21, 2009, 10:32:45 am
im not sure now, been like 3 weeks, i really dont remember but i do think that was the issue

Well, I'm sorry that you had to wait so long for a response, sometimes people really don't know how to help and others don't have the time to. Fortunately, I'm neither. :D

Do you still want to be able to put multiple images in the long description area? Or rather, what would you like to do that you weren't able to before? :)
Title: Re: product description and images
Post by: kontrolfreek on January 21, 2009, 16:40:39 pm
no im good with no images in title, just was going to before, but its all good seriously.  i do have a few issues that paypal related if you are real eager to help someone :-) 
Title: Re: product description and images
Post by: klutzon on January 21, 2009, 17:19:06 pm
Hehe, unfortunately I can only help in XHTML / CSS related issues, and the little PHP that I understand. I'm not a big programmer, I'm more of a designer, so I can't help you out with Paypal code. :( But I hope someone else will pitch in to assist.

You should start another thread in the appropriate section for that problem you've got, if you haven't already. :)
Title: Re: product description and images
Post by: kontrolfreek on January 21, 2009, 17:22:09 pm
got ya, thanks for replying ill remember ya if i have more css and html issues, thanks
Title: Re: product description and images
Post by: klutzon on January 21, 2009, 17:52:14 pm
got ya, thanks for replying ill remember ya if i have more css and html issues, thanks

I'll be here. :)
Title: Re: product description and images
Post by: kontrolfreek on January 21, 2009, 18:01:11 pm
http://www.kontrolfreek.com/content/index.php?option=com_virtuemart&page=shop.browse&category_id=1&Itemid=200&vmcchk=1&Itemid=200
feel free to take a look at what im doing here, give me feedback / suggestions for improvement if you like.  we have a new product launching maybe for sale this weekend, i expect about 3k orders next week or two, thanks
Title: Re: product description and images
Post by: klutzon on January 21, 2009, 18:12:05 pm
http://www.kontrolfreek.com/content/index.php?option=com_virtuemart&page=shop.browse&category_id=1&Itemid=200&vmcchk=1&Itemid=200
feel free to take a look at what im doing here, give me feedback / suggestions for improvement if you like.  we have a new product launching maybe for sale this weekend, i expect about 3k orders next week or two, thanks

I really really like. :D In fact, your layout has helped me cement the idea I have for the site I'm working on. I will show you what I'm working on once I've got something to show.

I wish you the best of luck with your weekend sale! :) That looks like a 360 pad we could really use here, 360 pads are notoriously slow for FPS gaming. But that's off-topic totally...
Title: Re: product description and images
Post by: kontrolfreek on January 21, 2009, 18:17:54 pm
hehehe yeah the products we sale snap on to the analog sticks on the 360 and one helps with racing games and the other helps with fps games, thanks again, look forward to viewing your idea
Title: Re: product description and images
Post by: maris_mortis on January 21, 2009, 18:21:41 pm
Kontrolfreeks homepage needs my thoughts about the product list - but Im not be able to put the pics like you, maybe some1 can have a look at my page to help me a bit (i tried everything with the flypages but nothing works for me) www.black-jewels-clothing.com (or use this link: http://www.black-jewels-clothing.com/index.php?page=shop.browse&category_id=6&option=com_virtuemart&Itemid=1 )then click on "Accessoires" and then on "Taschen" then pick one of them, only one picture is shown but I really want all pics to be shown

thx in advance
Title: Re: product description and images
Post by: klutzon on January 21, 2009, 21:34:46 pm
Kontrolfreeks homepage needs my thoughts about the product list - but Im not be able to put the pics like you, maybe some1 can have a look at my page to help me a bit (i tried everything with the flypages but nothing works for me) www.black-jewels-clothing.com (or use this link: http://www.black-jewels-clothing.com/index.php?page=shop.browse&category_id=6&option=com_virtuemart&Itemid=1 )then click on "Accessoires" and then on "Taschen" then pick one of them, only one picture is shown but I really want all pics to be shown
thx in advance

I see your problem, you mean when you click on the product page of a particular problem, only the thumbnail shows, but when you click on the thumbnail, the full image shows and you can select between the 5 images in the Lightbox, yeah?

Within VirtueMart, there is a parameter that you could use to modify your current flypage.tpl and add a link that will take you the "Product Images" page when the product has additional product images. Open your flypage.tpl, find the appropriate place to insert it, and add the following:

Code: [Select]
<?php echo $more_images ?>
If what you're after is showing those extra pics on the same page as the product page, within the long description area, then you can add the pictures you want directly into the long description, but then you'll have to style them if you want them to look good, and if you want them to use a Lightbox as well, you'll need to have the Javascript loaded and the pictures wrapped in the appropriate tags to activate the Lightbox when you click on them.

I'm working on something like this myself, I'll show you guys when it's done... ;)
Title: Re: product description and images
Post by: kontrolfreek on January 21, 2009, 21:47:04 pm
i do have a question for you klutzon, if i have the virtue mart module running on the my page, like in the right position, and i am on the home page for my site, when i click on a category or product, the redirect takes me to the category or product and uses my home template to display the info.  this is confusing, lets say i have a slideshow module i only want to show on my home page ok, now if you are on the home page when you click the category link, the store comes up and the slideshow is open, what i have done is created a link in my menu to go to the category i want them to go to and added Itemid=200&vmcchk=1&Itemid=200 this to the link so it looks at item 200 (which dont exist) to get the modules for the page.  does all this make sense, i dont want the slideshow and stuff to show when i click the info in the virtuemart module but it does, so i disabled the module and use direct links, which blows.
Title: Re: product description and images
Post by: klutzon on January 21, 2009, 22:05:28 pm
i do have a question for you klutzon, if i have the virtue mart module running on the my page, like in the right position, and i am on the home page for my site, when i click on a category or product, the redirect takes me to the category or product and uses my home template to display the info.  this is confusing, lets say i have a slideshow module i only want to show on my home page ok, now if you are on the home page when you click the category link, the store comes up and the slideshow is open, what i have done is created a link in my menu to go to the category i want them to go to and added Itemid=200&vmcchk=1&Itemid=200 this to the link so it looks at item 200 (which dont exist) to get the modules for the page.  does all this make sense, i dont want the slideshow and stuff to show when i click the info in the virtuemart module but it does, so i disabled the module and use direct links, which blows.

Okay, I'm not exactly sure what the problem is, but tell me if I got this right: do you have a module which you have set to show on a page which you would not want it to show on? If, for example, you have that slideshow on the home page, you don't want it to show anywhere else? Are you trying to hide the VirtueMart Module from showing on every page but the Home Page? Have I got the general gist of it? ;)

If that's the case, then it looks like you want to be able to select what pages, or rather, what links the module will show up on. That is a standard Joomla feature with the Module Manager, you open your module and select what links you want the module to appear. But I don't know if Joomla will let you specify VirtueMart pages as ones to exclude the module from. I've not seen a way to do it anyway, unless you manually create external URL links to the VirtueMart pages in a menu, and then exclude the module from showing on those pages. Hmm...

Well...

The most direct way I'd attack this problem, and it's probably the sneakiest too, is to make a module position that only appears in the front page template, and assign your module to that position. That way, the module won't show up on any other template.

For example: if your front page template has a module position called "slideshow", and the template used for the rest of the site doesn't, that means that whatever module you've assigned to the "slideshow" position will only show on pages with the "slideshow" position. So in this case, "slideshow" will only appear on the front page, since the position only exists there. :)

You get what I'm saying? ;)
Title: Re: product description and images
Post by: kontrolfreek on January 21, 2009, 22:13:15 pm
well thats not the issue, i have said slideshow set to only show on home page, however, the vm module is designed to when u click a category, it uses said page to display the store.  so lets say you are on my about us page, and on my about us page, i have no modules in the header position turned on, i click on the category in the vm module and it opens the store up with no modules in the header spot, because the about page is where i was at and it has no modules in header.  But, if i am on the home page which does have the slideshow turned on, then i click a category link in the vm module, it pulls the store up with the slideshow showing, due to the fact this is the page i was on when i clicked the link.  this make sense?
Title: Re: product description and images
Post by: klutzon on January 21, 2009, 23:11:10 pm
well thats not the issue, i have said slideshow set to only show on home page, however, the vm module is designed to when u click a category, it uses said page to display the store.  so lets say you are on my about us page, and on my about us page, i have no modules in the header position turned on, i click on the category in the vm module and it opens the store up with no modules in the header spot, because the about page is where i was at and it has no modules in header.  But, if i am on the home page which does have the slideshow turned on, then i click a category link in the vm module, it pulls the store up with the slideshow showing, due to the fact this is the page i was on when i clicked the link.  this make sense?

Ooooh, I see the problem now. The Virtuemart component will use whatever template that page is using...

I see I see. I'll need some time to think about that, can't think of anything at the moment to suggest.
Title: Re: product description and images
Post by: kontrolfreek on January 21, 2009, 23:21:28 pm
yeah i know, crazy right, u would think you could tell it the page template you wanted to use, oh well, i got rid of the module and made my own link, works ok i guess, just bummer
Title: Re: product description and images
Post by: klutzon on January 21, 2009, 23:42:20 pm
yeah i know, crazy right, u would think you could tell it the page template you wanted to use, oh well, i got rid of the module and made my own link, works ok i guess, just bummer

I will seriously look into it and I hope I'll come out at the end with a solution for the both of us, because I have a feeling this problem is going to get in the way of my project as well at some point... :)
Title: Re: product description and images
Post by: lefty on January 23, 2009, 21:41:42 pm
hi ppl, (VirtueMart 1.1.2, Jooomla 1.0.15)

I have been scratching my head for the past 2 weeks to make this work so was wondering if you could help.

This concerns additional images in the product details page.

I have uploaded additional image for one of my products and have added in flypage.tpl.php:
<?php echo $this->vmlistAdditionalImages( $product_id, $images ) ?>
but no additional image present in product details..

I followed your advice and added:
<?php echo $more_images ?>
with this i could at least see a link that opens up a new window with both the images inside.

I was wondering if i can have both images displayed directly in the product details page..(??) ::)

thanx!!
Title: Re: product description and images
Post by: klutzon on January 24, 2009, 11:30:02 am
yeah i know, crazy right, u would think you could tell it the page template you wanted to use, oh well, i got rid of the module and made my own link, works ok i guess, just bummer

Hey kontrolfreak, I found some info which you might find useful... :) On the FAQ page of the VirtueMart Wiki, it talks directly about your problem and how to fix it:

Quote
For correct functionality of modules appearing on VirtueMart pages you must create a menu link to the VirtueMart component. Without this Joomla has no idea that VirtueMart is being used and can't, for example, change template or assign specific modules on VirtueMart pages.

If you don't want an actual menu link, just create a new menu and publish a link to the VirtueMart component. This will create a new Joomla menu module. Don't publish this module! The link has been published but the menu is not displayed.

REMEMBER - Joomla assigns modules to components, not to component pages. If you assign a module to VirtueMart it will display on all VirtueMart Pages. This is the same for all Joomla components that have multiple pages.

http://dev.virtuemart.net/cb/wiki/1381

Just thought I'd help make your day. :D







hi ppl, (VirtueMart 1.1.2, Jooomla 1.0.15)
I have been scratching my head for the past 2 weeks to make this work so was wondering if you could help.
This concerns additional images in the product details page.
I have uploaded additional image for one of my products and have added in flypage.tpl.php:
<?php echo $this->vmlistAdditionalImages( $product_id, $images ) ?>
but no additional image present in product details..
I followed your advice and added:
<?php echo $more_images ?>
with this i could at least see a link that opens up a new window with both the images inside.
I was wondering if i can have both images displayed directly in the product details page..(??) ::)
thanx!!

Hi lefty,

It is entirely possible to get both images to display in the product details page, I'm just not sure why it's not working on your end. This problem of things appearing and disappearing with every new install of VirtueMart is concerning, especially with so many people reporting it. I myself upgraded to VM 1.1.3 last night, and now the "add to cart" button on the Related Product section of the Product Details page has disappeared, and I don't think I've made any changes to the backend parameters.

There must be a common denominator, I hope we can find it, but I don't know if we can find it alone. I'm going to run some experiments, maybe I can figure something out that will help...
Title: Re: product description and images
Post by: lefty on January 24, 2009, 15:19:56 pm
hi klutzon,

i've just checked out the generated html code that the
<?php echo $this->vmlistAdditionalImages( $product_id, $images ) ?>
is producing and it is the following:

/components/com_virtuemart/show_image_in_imgtag.php?filename=%2Fcomponents%2Fcom_virtuemart%2Fshop_image%2Fproduct%2FKF51_75.jpg&amp;newxsize=&amp;newysize=&amp;fileout=

i don't know if this tells you anything..the image is indeed in the folder specified on the above link... :o BUT the thumb size is not specified!!!

I run in the configuration and enabled the dynamic thumbnail option + specified height and width...and guess what...the additional image thumb magically appeared.. ;D

hehe...i found the answer while posting you a reply...
Title: Re: product description and images
Post by: kontrolfreek on January 24, 2009, 19:00:22 pm
wow so all i did was create a menu item not published, and now it works, are you joking me?  ill test it on another site real quick and see, but seems like it works on my kontrolfreek page now.
Title: Re: product description and images
Post by: kontrolfreek on January 24, 2009, 19:09:34 pm
actually i think going to web friendly urls and turning on the apache thing is what help fixed my issue but i added the menu option as well.  if you use web friendly urls, make sure you have a .htaccess file in the root folder and if you have some links going to the old paging system, they might give you issues
Title: Re: product description and images
Post by: klutzon on January 24, 2009, 19:14:52 pm
I'm really happy that you found your solution lefty. :) If there's anything else I can help you out with, let me know.

And kontrolfreek, I knew you'd like the info. Sometimes it's the smallest and most random of things that will end up solving your problems. :P Glad I could help.

[edit]: Just saw your new post, thanks for the tip on the .htaccess file, I'll keep it in mind.
Title: Re: product description and images
Post by: andre_tnng on February 09, 2009, 14:45:10 pm
Hi There
I have a question about the view more image link, i have added it as above and added images to the relative product but only the alt shows up, when you click on the "alt" the large image shows but i need the thumbnail images to show.

http://pulsatorlures.co.za/index.php?option=com_virtuemart&page=shop.product_details&flypage=flypage.tpl&product_id=18&Itemid=77

please please help.
Thanks
Andre
Title: Re: product description and images
Post by: lefty on February 09, 2009, 21:34:22 pm
hi andre,

Was the thumbnail created automatically or have you uploaded your own thumb?

the reason i'm asking is because i think that virtuemart does not like custom thumbnail upload..
Title: Re: product description and images
Post by: deannak on February 15, 2009, 02:06:03 am
Hi Klutzon -

Thank you, thank you, thank you!!!  I've been tearing my hair out wondering why having modules appear on home page & not Virtuemart pages or vice versa was working on my development system & not on production.  Turns out it was due to an old, unpublished test menu item on the dev system -- exactly as you described above.

Never in a million years would I have guessed this one!  Thanks for saving the rest of my hair.  :-)