The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #1  
Old 07-24-2015, 07:26 PM
roelaroaster's Avatar
roelaroaster roelaroaster is offline
 
Join Date: Jul 2015
Posts: 1
Default Trying to fix settings to display my 2 categories correctly

I only have 2 categories in my Ecwid store, but even though I am changing "$ecwid_pb_categoriesperrow", "$ecwid_pb_productspercolumn_grid" and "$ecwid_pb_productsperrow_grid" to 2 in the widget code, there is still a blank, 3rd column, which is causing the categories to be displayed off center.

This is a test site I set up, so you can see how it looks:
http://www.roelacoffee.com/store

This is the code I changed:

if (empty($ecwid_pb_categoriesperrow)) {
$ecwid_pb_categoriesperrow = 2;
}

if (empty($ecwid_pb_productspercolumn_grid)) {
$ecwid_pb_productspercolumn_grid = 2;
}

if (empty($ecwid_pb_productsperrow_grid)) {
$ecwid_pb_productsperrow_grid = 2;
}
  #2  
Old 07-27-2015, 12:42 PM
ginger's Avatar
ginger ginger is offline
 
Join Date: Sep 2014
Posts: 714
Default

Quote:
Originally Posted by roelaroaster View Post
I only have 2 categories in my Ecwid store, but even though I am changing "$ecwid_pb_categoriesperrow", "$ecwid_pb_productspercolumn_grid" and "$ecwid_pb_productsperrow_grid" to 2 in the widget code, there is still a blank, 3rd column, which is causing the categories to be displayed off center.

This is a test site I set up, so you can see how it looks:
http://www.roelacoffee.com/store

This is the code I changed:

if (empty($ecwid_pb_categoriesperrow)) {
$ecwid_pb_categoriesperrow = 2;
}

if (empty($ecwid_pb_productspercolumn_grid)) {
$ecwid_pb_productspercolumn_grid = 2;
}

if (empty($ecwid_pb_productsperrow_grid)) {
$ecwid_pb_productsperrow_grid = 2;
}
Hello,

thank you for getting in touch with us.

Unfortunately, when I try to open the provided link, the server responds with a status of 503 (Service Temporarily Unavailable): http://take.ms/orLdh

In general, you can control the number of categories per row by slightly tweaking Ecwid Product Browser code, installed on your page. The default code has the parameter, determining the number of categories per row - "categoriesPerRow=3"

Code:
<div id="my-store-XXXXXXX"></div>
<div>
<script type="text/javascript" src="https://app.ecwid.com/script.js?XXXXXXX&data_platform=code&data_date=2015-07-27" charset="utf-8"></script><script type="text/javascript"> xProductBrowser("categoriesPerRow=3","views=grid(3,3) list(10) table(20)","categoryView=grid","searchView=list","id=my-store-7226245");</script>
</div>
If you change the default parameter to "categoriesPerRow=2", Ecwid will load 2 categories per row on the main store page. In case you will be using Ecwid plugin for WordPress, the number of categories per row can be specified in the plugin settings:

- login to your WordPress admin area;
- start editing the store page, created by Ecwid plugin;
- click 'Edit store' button above the content area of the page;
- select 'Appearance' tab and input the desired number of categories per row to the corresponding field: http://take.ms/GkY9Q
__________________
Xena S.
Ecwid Customer Care Team

Help Center

⬇ Please click Thanks if my reply helped you.
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
categories, columns

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:04 AM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.