jimmy1234 0 Newbie Poster

How would I go about changing this to grab the sku without making it static as I have it below:

<?php if($this->getProduct()->getSku()=='SKU###'){	
$titles=array('Color 1:','Home Color 2:');	
$url = Mage::getBaseUrl();
$skinUrl = $this->getSkinUrl('images/catalog/product/placeholder/');
require_once 'app/code/local/Temgra/ColorCustomOptions/colorCustomOptions.php';
colorCustomOptions1($this->getProduct(), $titles, $url, $skinUrl);
}
?>

What this does is grabs the sku of a product (SKU###) matches that with a directory, looks inside that directory to find the option folders named ('Color 1:','Home Color 2:') that have specific color options inside the user can select.

Newbie here any help would be appreciated.

Jim

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.