Hi,
I want to start by saying thank you for a great theme.
On my store page, you can filter the amount of products to be displayed.
By default, my settings is on 12 products. I have changed a line in archive-product.php to:
$options = array(16,24,48,60);
Because i want to be able to show 16, 24, 48 & 60.
After i did this it still shows 12 but when i change the filter to 16 the option “12″ dissapears. But as soon as i go to the main store page it goes back to 12 displayed products.
So I googled a little bit and added this code snippet to the functions.php
add_filter( ‘loop_shop_per_page’, create_function( ‘$cols’, ‘return 16;’ ), 20 );
And it works. Now it shows 16 by default and you cannot change to 12 in front end.
HOWEVER, when you go to the store, on the filter it is displayed as “12″ when in fact it is 16 products. Please tell me how I can remove this from my theme. I cant find it in any other file.
Go to nordmed.se/butik to see the issue. Please help
Thank you,
Daroun Nehro
Sweden
-
This reply was modified 3756 days ago by HMF.
-
This reply was modified 3756 days ago by HMF.
-
This reply was modified 3756 days ago by HMF.
-
This reply was modified 3756 days ago by HMF.
-
This reply was modified 3756 days ago by HMF. Reason: some code snippets were not showing
|
|
I had to remove the code in the functions.php file -> add_filter( ‘loop_shop_per_page’, create_function( ‘$cols’, ‘return 16;’ ), 20 );
It disabled all the other options (24, 48, 60), it could only display 16 with this code.
|
|
Hi,
We will need the admin access, so we can check.
You can use hidepost to share private information with the support staff.
Best,
ThemeBurn team
|
|
Hello, to access my site you need….
Thanks for the help!
|
|
Hello,
We have changed your default products to 16, and modified your archive-product.php file. Is this what you are looking for?
Please make backup of archive-product.php
Best,
ThemeBurn team
|
|
Yes, this is how i wanted it to be like. Thanks!
|
|
Glad, we’ve helped.
If you like Shoppica and our support, we will appreciate your rating at ThemeForest
Best,
ThemeBurn Team
|
|