VirtueMart Forum

VirtueMart General => Your Live Sites => Topic started by: wheat on January 16, 2007, 06:57:23 AM

Title: www.moonshineshades.com
Post by: wheat on January 16, 2007, 06:57:23 AM
Howdy,

I have incorporated several custom hacks and a custom flatrate shipping module with this website; utilizes mosforms and moslates too.  Any recommendations or thoughts?

http://www.moonshineshades.com

Title: Re: www.moonshineshades.com
Post by: Vdub on January 16, 2007, 13:19:10 PM
I like the flash main navigation menu, is this a module or your own work?
Title: Re: www.moonshineshades.com
Post by: youngmoneyblog on January 16, 2007, 19:24:21 PM
now did you make the attributes link to a popup with explanations? I could use this on my website.
Title: Re: www.moonshineshades.com
Post by: wheat on January 18, 2007, 11:32:16 AM
QuoteI like the flash main navigation menu, is this a module or your own work?
Yes, in fact I had carried it over from the old html version of the site pre-Mambo.  I unpublished the links so Joomla wouldn't create its own navigation for those choices.  I then only had to re-export the flash with the new Joomla links.

Quotenow did you make the attributes link to a popup with explanations? I could use this on my website.
Yes, that was hardcoded hack I had done.  I modified the list_advanced_attribute function in the ps_product_attribute.php file.  It isn't pretty and I'm sure it could be coded much more elegantly, but it goes something like the following.
if (($category_id>=2)&&($category_id<=5)){ // popups if certain attributes exists for these categories
switch ($title){
case (substr($title,0,6)=="Lacing"):
$html .= "<a href='#' onclick='window.open(\"index2.php?option=com_content&task=view&id=52&pop=1\",\"popup\",\"scrollbars=yes,width=520,height=600,left=\"+(screen.availWidth/2-260)+\",top=\"+(screen.availHeight/2-300));return false;'>$title</a>";
break;
...etc...


Basically the initial check to see if the $category_id is between/equal to 2 thru 5, on this site they just happen to be the category of lampshadesitems that would utilize the particular popups on the options, like lacing, as shown here.  Also, keep in mind that the product's attributes title has to be consistently labelled for this to work correctly.
Title: Re: www.moonshineshades.com
Post by: UglySign on January 23, 2007, 01:06:39 AM
Neat! Wheat!

I like it