コード例 #1
0
                    <input type="text" class="qantity_input" name="txtQty" value="<?php 
    echo $prow['nMinimumCount'];
    ?>
" id="WholesaletxtQty" maxlegth="4" size="6"> ( Whole sale Products can be purchased in wholesale units only).
                        <?php 
}
?>

                </div>

                <!-- Display More Options-->
                <?php 
if (getMoreProductOptionsCount($productid)) {
    ?>
 <div class="pcm_detailpge_options"> Options   <?php 
    echo getProductOptions($prow['product_id'], $prow['product_option_id'], array(), 'product_option', 'qantity_input', '');
    ?>
</div> <?php 
}
?>
                <!--End Display More Options-->

                <?php 
// Check Product Stock // Hide / Show Add to Cart
if ($productinstock) {
    $hideCartArea = '';
    $hideOutOfStockArea = 'style="display:none;"';
} else {
    $hideCartArea = 'style="display:none;"';
    $hideOutOfStockArea = '';
}
コード例 #2
0
                    </tr>
                    <tr>
                        <td align="left" valign="top" width="26%">Seller</td>
                        <td align="left" valign="top" width="2%">:&nbsp;&nbsp;</td>
                        <td align="left" valign="top" colspan="2"><?php 
echo stripslashes($prow['company']);
?>
</td>
                    </tr>

                    <tr>
                        <td align="left" valign="top" width="26%"></td>
                        <td align="left" valign="top" width="2%">&nbsp;&nbsp;</td>
                        <td align="left" valign="top" colspan="2">
                            <?php 
echo getProductOptions($prow['product_id'], $prow['product_option_id'], array(), 'product_option');
?>
                        </td>
                    </tr>

                    <?php 
if ($settings[1] == "Y") {
    $hideStock = "";
} else {
    $hideStock = "style='display:none;'";
}
?>
                    <tr id="itemStatus" <?php 
echo $hideStock;
?>
>
コード例 #3
0
ファイル: product.php プロジェクト: spencerlambert/willie-php
     switch ($product['credits_calc']) {
         case 'add':
             $product['credits'] = $mediaCredits + $product['credits'];
             break;
         case 'sub':
             $product['credits'] = $mediaCredits - $product['credits'];
             break;
         case 'mult':
             $product['credits'] = $mediaCredits * $product['credits'];
             break;
     }
     $smarty->assign('mediaID', $mediaID);
     $smarty->assign('media', $media);
 }
 $productArray = productsList($product);
 $productArray['options'] = getProductOptions('products', $productArray['prod_id'], $product['taxable']);
 /*
  * If editing this then select the correctly selected items
  */
 if ($edit) {
     if ($productArray['options']) {
         foreach ($productArray['options'] as $key => $value) {
             foreach ($productArray['options'][$key]['options'] as $key2 => $value2) {
                 if ($optionSelections[$key . '-' . $key2]) {
                     $productArray['options'][$key]['options'][$key2]['selected'] = true;
                 }
                 // Set selected option to true
             }
         }
     }
 }
コード例 #4
0
ファイル: package.php プロジェクト: spencerlambert/willie-php
         }
     }
 }
 $smarty->assign('prints', $printsArray);
 $smarty->assign('printRows', $printRows);
 /*
  * Products within the package
  */
 $productsResult = mysqli_query($db, "\r\n\t\t\t\t\tSELECT * \r\n\t\t\t\t\tFROM {$dbinfo[pre]}package_items \r\n\t\t\t\t\tLEFT JOIN {$dbinfo[pre]}products \r\n\t\t\t\t\tON {$dbinfo[pre]}package_items.item_id = {$dbinfo[pre]}products.prod_id\r\n\t\t\t\t\tWHERE {$dbinfo[pre]}products.deleted='0' \r\n\t\t\t\t\tAND {$dbinfo[pre]}package_items.pack_id = '{$package[pack_id]}'\r\n\t\t\t\t\tAND {$dbinfo[pre]}package_items.item_type = 'prod'\r\n\t\t\t\t\tORDER BY {$dbinfo[pre]}products.sortorder,{$dbinfo[pre]}products.item_name\r\n\t\t\t\t\t");
 if ($productRows = mysqli_num_rows($productsResult)) {
     //$arrayNum = 1;
     while ($product = mysqli_fetch_array($productsResult)) {
         $arrayNum++;
         $productDetails = productsList($product);
         if ($package['allowoptions']) {
             $tempOptions = getProductOptions('products', $product['prod_id'], $product['taxable']);
         }
         if ($product['groupmult'] == 0) {
             for ($x = 0; $x < $product['iquantity']; $x++) {
                 $productsArray[$arrayNum] = $productDetails;
                 $productsArray[$arrayNum]['options'] = $tempOptions;
                 $productsArray[$arrayNum]['quantityDisplay'] = 1;
                 $productsArray[$arrayNum]['existingMedia'] = $mediaIDs[$arrayNum];
                 /*
                  * If editing this then select the correctly selected items
                  */
                 if ($edit) {
                     if ($productsArray[$arrayNum]['options']) {
                         foreach ($productsArray[$arrayNum]['options'] as $key => $value) {
                             foreach ($productsArray[$arrayNum]['options'][$key]['options'] as $key2 => $value2) {
                                 if ($optionSelections[$arrayNum . '-' . $key . '-' . $key2]) {