Zen Follower
- Join Date:
- Dec 2004
- Posts:
- 102
- Plugin Contributions:
- 0
I need to separate these two lines so I can apply css.
I need to rewrite this portion so that it can be styled separately, but all I do is break the cart.
echo $value['products_options_values_name'] . '<br /><br />' . TEXT_OPTION_DIVIDER . zen_image(DIR_WS_IMAGES . $value['attributes_image'], $products[$i]['name'], IMAGE_SHOPPING_CART_WIDTH, IMAGE_SHOPPING_CART_HEIGHT);
I think I can correct the css if someone can help me with separating the section above. This is only on my local server, so I don't have a link.
I need the portion containing <?php echo $product['productsName'] and $value['products_options_values_name'] to look the same as each other in the shopping cart ( site/shopping_cart). (<span id="cartProdTitle"> needs to be applied to products_options_values_name)
I also want
<?php echo $product['productsImage']; ?> to look the same as $value['attributes_image'], (<span id="cartImage" class="back"> needs to be applied to 'attributes_image')I hope this makes sense. Thanks for any assistance you can provide.
my code as it is now
<a href="<?php echo $product['linkProductsName']; ?>"><span id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>
<?php 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); echo '</span>'; } ?> <br class="clearBoth" /> <?php if (isset($product['attributes']) && is_array($product['attributes'])) { echo ''; }else { ?><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><?php}
echo $product['attributeHiddenField'];
if (isset($product['attributes']) && is_array($product['attributes'])) {
echo '<div class="cartAttribsList">';
echo '<ul>';
reset($product['attributes']);
foreach ($product['attributes'] as $option => $value) {
echo $value['products_options_values_name'] . '<br /><br />' . TEXT_OPTION_DIVIDER . zen_image(DIR_WS_IMAGES . $value['attributes_image'], $products[$i]['name'], IMAGE_SHOPPING_CART_WIDTH, IMAGE_SHOPPING_CART_HEIGHT);