Commit ef48f362 authored by Nahla Shiri's avatar Nahla Shiri

css modifié

parent 4fa9d076
......@@ -890,7 +890,7 @@ aside.news-wrapper {
}
#slides{
/* width: 80%;*/
width: 416px;
width: 500px;
}
#slides .image > img{
max-width: 100%;
......@@ -948,7 +948,7 @@ aside.news-wrapper {
}
.nav-slider ul {
position: absolute;
left: 84.5%;
left: 95.5%;
z-index: 999;
display: table;
}
......
......@@ -16,4 +16,29 @@ jQuery( document ).ready( function() {
});
jQuery(document ).on('change','.color-list input,.format-list input ', function() {
var varID = jQuery( 'input[name="variation_id"]' ).val();
if(varID != 0 ){
var price = jQuery('.woocommerce-variation-price .woocommerce-Price-amount').text();
var pq = jQuery('.woocommerce-variation-description').text();
jQuery('.price .crete').text(price);
jQuery('.pq').text(pq);
}
var name= jQuery(this).attr('name');
if (jQuery(this).is(':checked') && name =='attribute_pa_couleur'){
jQuery('.info-color').text(jQuery(this).attr('value'));
}
if (jQuery(this).is(':checked') && name =='attribute_pa_format'){
jQuery('.info-format').text(jQuery(this).attr('value'));
jQuery('.info-format-txt').text(jQuery(this).attr('value'));
}
});
});
\ No newline at end of file
......@@ -125,7 +125,7 @@ $product = wc_get_product($product_infos->ID);
$tags = $product->get_tag_ids();
$file_title.="<br/>" . $variable_product->get_attribute('format') . " " . get_tag($tags[0])->name;
$thumb_image = get_the_post_thumbnail_url($variation_id,'medium');
......@@ -137,7 +137,7 @@ echo $file_content = "<html>
<body><div class='file_content'>
<div class='file_header'>
<div class='half_width thumb_var'>
" . $thumb_image = get_the_post_thumbnail($variation_id, 'large') . "
<img src= " . $thumb_image . " />
</div>
<div class='half_width'>
<h1>" . $file_title . "</h1>
......@@ -147,7 +147,7 @@ echo $file_content = "<html>
</div>
<div class='bleu_zone'>
<div class='half_width'>
<p>Code article : " . $code_variation['var_code'] . "</p>
<p>Code article : " . nap_variable_meta($variation_id, 'sku') . "</p>
<p>Gencod : " . $code_variation['var_gencod'] . "</p>
<p>ITF 14 : " . $code_variation['var_itf14'] . "</p>
......
......@@ -167,11 +167,13 @@ do_action('woocommerce_before_add_to_cart_form');
<?php else : ?>
<div class="variations" cellspacing="0">
<?php foreach ($attributes as $name => $options) : ?>
<?php
$i=0;
foreach ($attributes as $name => $options) : ?>
<div class="list row <?php echo $name;?> left border-l center">
<div class="product-header center font-small label">
<label for="<?php echo sanitize_title($name); ?>" class = "chevron bottom">Choix de la <?php echo wc_attribute_label($name); ?></label>
<label for="<?php echo sanitize_title($name); ?>" class = "chevron bottom">Choix <?php if($i==0) echo 'de la '; else echo 'du '; ?><?php echo wc_attribute_label($name); ?></label>
</div>
<?php
$sanitized_name = sanitize_title($name);
......@@ -207,7 +209,7 @@ do_action('woocommerce_before_add_to_cart_form');
?>
</ul>
</div>
<?php endforeach; ?>
<?php $i++;endforeach; ?>
</div>
......@@ -268,10 +270,10 @@ do_action('woocommerce_before_add_to_cart_form');
<div class="info-content">
<h2 class = "crete -italic font-small" ><?php echo $product_cats[1]->name ?></h2>
<h3 class = "crete -italic font-small" >39x39 abricot</h3>
<h3 class = "crete -italic font-small info-attr" ><span class="info-format"><?php echo $_GET['attribute_format']?></span> <span class="info-color"><?php echo$_GET['attribute_couleur'] ?></span></h3>
<div class="details font-small">
<p>39 x 39 cm - 2 feuilles</p>
<p><?php echo nap_variable_meta($current_variationID, 'variation_description'); ?></p>
<p class="info-format-txt"><?php echo $_GET['attribute_format']?></p>
<p class="pq"><?php echo nap_variable_meta($current_variationID, 'variation_description'); ?></p>
</div>
<div class="price">
<span class="crete"><?php echo nap_variable_meta($current_variationID, 'price'); ?> € ht</span>
......@@ -312,45 +314,19 @@ do_action('woocommerce_before_add_to_cart_form');
<article class = "row full-width">
<a href="#"></a>
<figure>
<img src="img/assoc1.jpg" alt="" title="">
</figure>
<h3 class = "font-small" >Distributeur pour <br>serviettes</h3>
</article>
<article class = "row full-width">
<a href="#"></a>
<figure>
<img src="img/assoc2.jpg" alt="" title="">
</figure>
<h3 class = "font-small" >Distributeur pour <br> serviettes pliage décalè</h3>
</article>
<article class = "row full-width">
<a href="#"></a>
<figure>
<img src="img/assoc1.jpg" alt="" title="">
<img src="http://nap.mano.fr/wp-content/uploads/2017/07/505714-papier-toilette-jumbo-500x375.jpg" alt="" title="">
</figure>
<h3 class = "font-small" >Distributeur pour <br>serviettes</h3>
<h3 class = "font-small" >Bobines papier toilette</h3>
</article>
<article class = "row full-width">
<a href="#"></a>
<figure>
<img src="img/assoc2.jpg" alt="" title="">
<img src="http://nap.mano.fr/wp-content/uploads/2017/07/450108-flexibles-noirs-21cm-315x500.jpg" alt="" title="">
</figure>
<h3 class = "font-small" >Distributeur pour <br> serviettes pliage décalè</h3>
</article>
<article class = "row full-width">
<a href="#"></a>
<figure>
<img src="img/assoc1.jpg" alt="" title="">
</figure>
<h3 class = "font-small" >Distributeur pour <br>serviettes</h3>
</article>
<article class = "row full-width">
<a href="#"></a>
<figure>
<img src="img/assoc2.jpg" alt="" title="">
</figure>
<h3 class = "font-small" >Distributeur pour <br> serviettes pliage décalè</h3>
<h3 class = "font-small" >Pailles</h3>
</article>
</div>
</div>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment