Custom Gateway - Customer Support


Welcome to the Custom Gateway Support Portal

Here you can raise support tickets and read articles on common queries using the topic sections and search below

Hide print job url and other custom oprions from shopping cart in magento

Follow

 

A) open personaliseit/cart/item/default.phtm

B) add $is3d=false; in the top of the document for example below $options = $this->getOptionList();

C) update

if($productOptions && $options)
{....}

to looks like this

if($productOptions && $options)
{
foreach($options as $option)
{
if(
isset($productOptions[$option['option_id']]) &&
$productOptions[$option['option_id']]->getSku() == "thumburl")
{
$productThumbnail = $option['value'];
}
if(
isset($productOptions[$option['option_id']]) &&
$productOptions[$option['option_id']]->getSku() == "printJobId")
{
$is3d=true;
}

}
}

 

D) below <dl class="item-options"> and above <?php foreach ($_options as $_option) : ?>

    add <?php if (!$is3d=false){ ?>  

and add closing <?php } ?>  above closing </dl>

Was this article helpful?
0 out of 0 found this helpful

Comments