Ich bin gerade beim mergen der geänderten Dateien. In der Datei GEAENDERTE DATEIEN\includes\templates\DEINTEMPLATE\templates\ tpl_shopping_cart_default.php ergibt sich nun ein Problem, bei dem ich nicht recht weiß, was ich tun soll. Denn ich habe auch Stock by Attributes bei mir installiert, und da ergibt sich nun ein Konflikt.
Falls auf der Grafik nicht erkennbar, hier noch mal als Code:
Und das ist der Code in der verwendeten Datei:
Ist es möglich, beide Module zu integrieren, also das bereits installierte SBA und die zu installierende Freebies? Denn in allen anderen Files gibt es keine Konflikte, nur in dieser Datei. Was muss ich da ändern?
Falls auf der Grafik nicht erkennbar, hier noch mal als Code:
Code:
<td class="cartQuantity"> <?php if ($product['carrot'] == 1) { // }elseif ($product['flagShowFixedQuantity'] ) { echo $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits']; } else { echo $product['quantityField'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits']; } ?> </td> <td class="cartQuantityUpdate"> <?php if ($product['carrot'] == 1) { echo TEXT_GIFT_IN_CART; }elseif ($product['buttonUpdate'] == '') { echo '' ; } else { echo $product['buttonUpdate']; } ?> </td> <td class="cartProductDisplay"> <a href="<?php echo $product['linkProductsName']; ?>"><span class="cartImage back"><?php echo $product['productsImage']; ?></span><span class="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a> <br class="clearBoth" />
Code:
<td class="cartQuantity"> <?php // START "Stock by Attributes" if( $product['lowproductstock'] AND STOCK_CHECK == 'true' ) { echo $product['quantityField'] . '<br /><span class="alert bold">***' . '</span><br /><br />' . $product['showMinUnits']; } elseif ( $product['flagShowFixedQuantity'] ) { echo $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits']; } else { echo $product['quantityField'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits']; } ?><br /> <span class="alert bold"><?php echo $product['flagStockCheck'];?></span><br /> <br /><?php echo $product['showMinUnits']; ?> </td> <td class="cartQuantityUpdate"><?php echo $product['buttonUpdate']; ?></td> <?php } ?> <td class="cartProductDisplay"> <a href="<?php echo $product['linkProductsName']; ?>"><span class="cartImage back"><?php echo $product['productsImage']; ?></span><span class="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a> <?php // START "Stock by Attributes" if ( (STOCK_SHOW_LOW_IN_CART == 'true') && $product['flagStockCheck'] ) { echo '<span class="alert bold">'; echo PWA_STOCK_AVAILABLE . ' '; echo ((isset($product['stockAvailable'])) ? $product['stockAvailable']: 0);//shows attribute stock echo '</span>'; //} } //for products without attribute if( empty($product['attributes']) && STOCK_SHOW_LOW_IN_CART == 'true' && $product['lowproductstock'] ){ //if( $product['lowproductstock'] && ($product['quantityField'] > $product['stockofproduct']) ){ echo '<span class="alert bold">'; echo ' *** ' . PWA_STOCK_AVAILABLE . ' '; echo ((isset($product['stockofproduct'])) ? $product['stockofproduct']: 0);//shows product stock (with NO attribute) echo '</span>'; //} } // END "Stock by Attributes" ?> <br class="clearBoth" />
Kommentar