Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

ibragim44

Newbie
  
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

860 profile views

ibragim44's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Нужно реализовать быстрый просмотр с опциями, атрибутами, количеством, и сопутствующими товарами а так же предыдущий и следующий товар на аяксе.
  2. Как отобразить div "product-grid_info" при клике. Получается он отображает все контенеры а нужно только одного на который кликаешь <div class="product-grid-categories"> <?php foreach ($products as $product) { ?> <div class="product-grid"> <div class="model"> <?php echo $product['model']; ?> </div> <?php if ($product['thumb']) { ?> <div class="image"> <img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /> </div> <?php } ?> <?php if ($product['price']) { ?> <div class="price"> <?php if (!$product['special']) { ?> <?php echo $product['price']; ?> <?php } else { ?> <span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span> <?php } ?> </div> <?php } ?> <div class="product-grid_info"> <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div> <div class="cart"> <input type="button" value="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button" /> </div> <div class="wishlist"><a onclick="addToWishList('<?php echo $product['product_id']; ?>');"><?php echo $button_wishlist; ?></a></div> <div class="description"> <?php if($product['attribute_groups']) { ?> <table> <?php foreach($product['attribute_groups'] as $attribute_group) { ?> <tbody> <?php foreach($attribute_group['attribute'] as $attribute) { ?> <tr> <?php echo $attribute['name']; ?> - <?php echo $attribute['text']; ?> <font color="#0000FF">|</font> </tr> <?php } ?> </tbody> <?php } ?> </table> <?php } ?> </div> </div> </div> <?php } ?> </div> <script type="text/javascript"> $('.product-grid_info').hide(0); $('.product-grid').click(function(){ $('.product-grid_info').fadeIn(0); $('.product-grid').height(350); }); $('.product-grid_info span').click(function() { $('.product-grid_info').hide(0); }); </script>
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.