The information in this thread might be outdated
|

09-27-2010, 09:11 PM
|
 |
Junior Member
|
|
Join Date: Sep 2010
Posts: 2
|
|
display different categories per page wordpress
Hi,
I have installed this cart on my wordpress site, amazing widget!
absolutely love it!
I am having trouble listing separate categories on each page.
My site has 2 links in the main menu which need the cart functionality.
Merchandise and tickets.
I need just the tickets to display on the tickets page and the merchandise to display on the merchandise page.
I have checked out the page:
Code:
By default, the Product Browser widget opens with a list of root category. But you can configure it to show a different category when user opens it for the first time.
You can do it by adding the following option to the Product Browser integration code:
defaultCategoryId=%categoryId%
Example
This code will open Ecwid Demo shop with default view (list of categories):
<div>
<script type='text/javascript' src='http://app.ecwid.com/script.js?1003'></script>
<script type='text/javascript'>
xProductBrowser("categoriesPerRow=3","views=grid(3,3) list(10) table(20)","categoryView=grid","searchView=list","style=");
</script>
</div>
I have tried this, but no luck.
Is there a shortcode way to do it? Should this <div> method above work??
thanks in advance..
|

09-27-2010, 09:27 PM
|
 |
Ecwid Team
|
|
Join Date: Sep 2009
Posts: 10,847
|
|
Quote:
Originally Posted by dann hanks
Hi,
I have installed this cart on my wordpress site, amazing widget!
absolutely love it!
I am having trouble listing separate categories on each page.
My site has 2 links in the main menu which need the cart functionality.
Merchandise and tickets.
I need just the tickets to display on the tickets page and the merchandise to display on the merchandise page.
|
Hi, can you post a link to your store?
|

09-27-2010, 10:56 PM
|
 |
Junior Member
|
|
Join Date: Sep 2010
Posts: 2
|
|
store:
https://app.ecwid.com/jsp/176223/simple-store
I have been following this too:
Code:
Different categories for different sites
If you have many sites, you may want to show different Ecwid categories on different sites. For example, if you sell laptops, you may want to show the "Apple" category on the site about Apple, Dell laptops on your site about Dell and so on. At the same time you want to manage all sales and products in one place and use one Ecwid account.
How to do this:
* Create a disabled root category. So, the only root category in your store will be a disabled one.
* Create enabled categories in the disabled one. One an enabled category per each site. Let's call them "site categories".
* Move your product categories to the corresponding site categories.
* Hide your breadcrumbs. You need to hide them, because the link to the disabled category in the breadcrumbs will point to the root store page, which will not have any enabled categories in your case.
* Then use this option to open a particular site category on each site: Default category for product browser
|

09-28-2010, 05:14 PM
|
 |
Ecwid Team
|
|
Join Date: Sep 2009
Posts: 10,847
|
|
Dann, can you post a link to your store on your WordPress site, please.
|

01-04-2011, 05:14 PM
|
 |
Paid Member
|
|
Join Date: Feb 2010
Location: http://www.thetshirtlady.com
Posts: 28
|
|
Hi,
I was curious to how to add different categories to different pages as well. Thanks for any help on this.
|

01-04-2011, 06:59 PM
|
 |
Ecwid Team
|
|
Join Date: Sep 2009
Posts: 10,847
|
|
Quote:
Originally Posted by The T-Shirt Lady
Hi,
I was curious to how to add different categories to different pages as well. Thanks for any help on this.
|
Please refer to this article: http://kb.ecwid.com/w/page/15853258/...roduct-browser
|

02-01-2012, 08:31 PM
|
 |
Junior Member
|
|
Join Date: Feb 2012
Posts: 1
|
|
that code does not work!
<div> <script type='text/javascript' src='http://app.ecwid.com/script.js?1003'></script> <script type='text/javascript'> xProductBrowser("categoriesPerRow=3","views=grid(3 ,3) list(10) table(20)","categoryView=grid","searchView=list"," style=","defaultCategoryId=3003"); </script> </div>
Does not work to show a specific category.. it shows more than one category not the items within the single category.
the url extension it produces is - #ecwid:category=1874515&inview=category3003&mode=c ategory&offset=0&sort=normal
it SHOULD produce - #ecwid:category=3003&mode=category&offset=0&sort=n ormal
I CANNOT GET ECWID TO SHOW ONE SINGLE CATEGORY ON A PAGE USING A DIV and HTML.
PLEASE ADVISE.
and no.
this link does not provide me an answer.
http://kb.ecwid.com/w/page/15853258/...duct%20browser
|

02-02-2012, 12:40 PM
|
 |
Ecwid Team
|
|
Join Date: Feb 2010
Location: Ecwid headquarter
Posts: 5,876
|
|
I have checked the code you provided and haven't found any errors in it. It works correctly and opens "iGoods" category of our demo store.
In order to adapt this code to your store you should change several parameters in it:
Code:
<div> <script type='text/javascript' src='http://app.ecwid.com/script.js?1003'></script> <script type='text/javascript'> xProductBrowser("categoriesPerRow=3","views=grid(3 ,3) list(10) table(20)","categoryView=grid","searchView=list"," style=","defaultCategoryId=3003"); </script> </div>
1003 - is the ID of our demo store. You should change it to your store ID.
3003 - is the ID of iGoods category in our demo store and it also should be changed with ID of category of your store, which should be shown by default.
Also, could you, please, give me the link to your page where you have tried to show specific category of your Ecwid store? Thank you in advance.
__________________
Maya N., Ecwid Team
------------------
Welcome to our new Help Center!
|
The Following User Says Thank You to Maya For This Useful Post:
|
|

04-25-2012, 02:53 PM
|
 |
Member
|
|
Join Date: Oct 2010
Posts: 50
|
|
I don't know if I'm missing something, but I think this easily accomplished using another method. Copy the short code on your main store page. Post that on every individual page you need so that the cart will load on the page. Then, in your custom menu, instead of adding that page to the custom menu, add a custom link and the link should be http://www.yourwebsite/page/#ecwid-code
Now, when a user clicks the link, in the navigation, it goes to the individual page you want, which has the ecwid short code in it and it's told to open to the exact category you want. This will also allow you to SEO the page for that category. Good luck!
|

05-18-2012, 06:02 PM
|
 |
Paid Member
|
|
Join Date: Apr 2012
Posts: 7
|
|
Quote:
Originally Posted by Tier One Designs
I don't know if I'm missing something, but I think this easily accomplished using another method. Copy the short code on your main store page. Post that on every individual page you need so that the cart will load on the page. Then, in your custom menu, instead of adding that page to the custom menu, add a custom link and the link should be http://www.yourwebsite/page/#ecwid-code
Now, when a user clicks the link, in the navigation, it goes to the individual page you want, which has the ecwid short code in it and it's told to open to the exact category you want. This will also allow you to SEO the page for that category. Good luck!
|
Wow, I can't believe that worked! It seems so simple too. Unless I am missing something as well, if you want to specify keywords for categories instead of just having your category title.
Thank you very much!
|
The information in this thread might be outdated
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 07:44 AM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
|