Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Showing less products than possible
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Showing less products than possible
- This topic has 20 replies, 3 voices, and was last updated 9 years by Mohammad – SUPPORT.
-
Posted in: Neighborhood
-
January 28, 2015 at 2:31 pm #145164
Hi there! I’m wondering that the theme is showing just 3 items instead of possible 4 per row. I’ve set the ‘shop product’-item to a size of 3/4 and the product size to ‘mini’.
do you have any idea how to use the full width of 3/4? Please take a look to the attachments.
Thank you!!Attachments:
You must be logged in to view attached files.January 29, 2015 at 8:29 am #145335Hi,
Please refer this article http://docs.woothemes.com/document/change-number-of-products-per-row/. Hope that should help to you.
Thanks
MohammadJanuary 29, 2015 at 6:45 pm #145551Hi Mohammad,
thanks for your reply. I’ve inserted the code`add_filter(‘loop_shop_columns’, ‘loop_columns’);
if (!function_exists(‘loop_columns’)) {
function loop_columns() {
return 3; // 3 products per row
}
}´and it worked well.
Now I have another problem, because this script not just applies to the mini-products but also to the standard-sizes products. Do you have any idea what code I can add?
Thank you very much!Attachments:
You must be logged in to view attached files.January 30, 2015 at 10:11 am #145686Hi,
Do you want 3 products in row at shop page as you attached screenshot?
Thanks
MohammadJanuary 30, 2015 at 11:18 am #145722Hi,
I’m sorry, i meant 4 rows. so i set the code like this:add_filter(‘loop_shop_columns’, ‘loop_columns’); if (!function_exists(‘loop_columns’)) { function loop_columns() { return 4; } }
January 30, 2015 at 11:19 am #145723And i want 4items per row for the mini-products and 3 items per row for the standard-products.
February 1, 2015 at 10:39 pm #146094Hi,
For mini products, you can customize the Number of items in the page builder element Products (mini) for standard products in the shop, you can customize that with the above code.
Let us know,
Thanks,
laranz.February 1, 2015 at 10:52 pm #146096Hi Laranz,
I think I have to explain my problem in other words:We want to display the mini-product-item with four columns. BUT in a width of 3/4 of the grid. at the moment it just displays 3 times (take a look at the first screenshots I uploaded).
with the code i’ve posted above i can set the columns to 4. but it effects not only the mini-products, but also the standartsized ones, I’ve showed you with the third screenshot.
Is there any possibility that the code affects just to the 3/4 mini-product-item?
February 3, 2015 at 2:32 pm #146788Hi,
Please provide me specifix page url with issue and wordpress admin login detail.
Thanks
MohammadFebruary 3, 2015 at 4:27 pm #146870This reply has been marked as private.February 3, 2015 at 10:53 pm #146969Hi,
You mean you want to display this 4 per column? http://take.ms/FoYnC
Let us know,
Thanks,
laranz.February 3, 2015 at 11:39 pm #146982Yes thats right.
February 4, 2015 at 12:24 am #146993Hi,
Try this, open up \includes\swift-framework\sf-content-display\sf-products.php in line #365 – #371 you will find lines like this.
$args = array( 'post_type' => 'product', 'post_status' => 'publish', 'product_cat' => $category, 'ignore_sticky_posts' => 1, 'posts_per_page' => $item_count );
Try to change that to,
$args = array( 'post_type' => 'product', 'post_status' => 'publish', 'product_cat' => $category, 'ignore_sticky_posts' => 1, 'posts_per_page' => $item_count, 'columns' => 4 );
Didn’t test, but it will work fine, if not let me know.
Let us know,
Thanks,
laranz.February 4, 2015 at 1:41 pm #147184Hi Laranz, thanks for your afford! Sadly it doesn’t work. When I insert it at the position you said nothing happens … to you have any further idea?
February 4, 2015 at 2:03 pm #147191Hi,
I have resolved the issue so please check it now.
USED CODE:-if(!is_archive()) add_filter('loop_shop_columns', 'loop_columns'); if (!function_exists('loop_columns')) { function loop_columns() { return 4; // 4 products per row } }
Thanks
Mohammad -
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.