Forum Replies Created
-
This reply has been marked as private.in reply to: Product Category Grid
hi guys, i updated the code but nothing changed 🙁 here is my full woocommerce.php file:
in reply to: Product Category Gridin reply to: Product Category GridHi please please yes make it look like the attachment (2 cells on top and 3 on bottom)
Boss is very angry with me because of this 🙁 I may never update the theme then 🙂 🙂 🙂
Do you need ftp details or can you just give me a woocommerce.php file to overwrite my current one?
Thank youin reply to: Product Category GridHi, I am sure the answer is on the plugins/sitesa0-core/includes/woocommerce.php file.
I almost got it right, could you guys have a look at it? Please?<?php
$w=0;
$layout = ‘wall’;
foreach ($product_categories as $category):
?>
<?php
// Wall layout
$w++;
if($layout == ‘wall’):
$wall_open_row=false;
?>
<?php if ($w == ‘4’ || $w == ’10’): $wall_open_row = true;?><?php endif;?>
<div class=”wall-col <?phpif($w == ‘1’ || $w == ‘7’):
echo ‘col-md-6 col-sm-12 title-in’;
elseif ($w==’2′ || $w==’3′ || $w==’8′ || $w==’9′):
echo ‘col-md-6 col-sm-12 title-out’;elseif ($w==’4′ || $w==’5′ || $w==’6′ || $w == ’10’ || $w == ’11’ || $w == ’12’):
echo ‘col-sm-4 title-out height-auto’;
endif;
if($w == ‘4’ || $w == ‘6’ || $w == ’10’ || $w == ’12’){
echo ‘ wall-bg’;
}
if($w == ‘7’){
echo ‘ pull-right’;
}
if ($w !=’4′ || $w != ’10’){
echo ‘ product-category-wall’;
}
?>”>
<?php
endif;
?>
slug, ‘product_cat’ ); ?>”><?php
$thumbnail_id = get_woocommerce_term_meta( $category->term_id, ‘thumbnail_id’, true );
if ( $thumbnail_id ) {
$image = wp_get_attachment_url( $thumbnail_id );
} else {
$image = wc_placeholder_img_src();
}
?>style=”background-image: url(<?php echo esc_url($image)?>)”<?php endif;?>><h3>
<?php
echo $category->name;
?>
<?php if($short_desc = get_woocommerce_term_meta( $category->term_id, ‘product_cat_short_description’, true )):?>
<small><?php echo esc_html($short_desc)?></small>
<?php endif;?>
</h3>
<?php
// Wall layout
if($layout == ‘wall’):
?><?php if ($w == ‘6’ || $w == ’12’): ?>
<?php elseif ($w > 3 && $w < 6 && $w == count($product_categories)):?>
<?php echo ‘‘?>
<?php elseif ($w >= 10 && $w < 12 && $w == count($product_categories)):?>
<?php echo ‘‘?>
<?php
endif;
?>
<?php
endif;
?>
<?php if($w == ’12’) $w = 0;?>
<?php
endforeach;
?><?php
}
return ob_get_clean();
}
}
new DH_Woocommerce();
endif;I need 2 columns only or 3 only without the horizontal split
in reply to: Product Category Gridits not the same, not the same effect etc. cant you just point which elements on the theme I should change on the right column to replace the two split with one big img? this is not good, themes are not cheap its unacceptable that you cannot work around the code and give us a hand, I am sure its only a few lines of code to tweak and do the change (code just simply appeared from heaven, someone wrote it and I am sure it can be rewritten in a way it doesnt show two half images but one big one on that right hand side) can you please try please? please? please??
in reply to: Product Category Grid