
07-09-2012, 04:28 PM
|
 |
Member
|
|
Join Date: Jan 2012
Posts: 37
|
|
Default category page doesn't open. Urgent!
I had implemented the following code 2 months back so that when anybody landups on www.aristotleprep.com/products , the "GMAT Verbal" category opens by default.I checked today and saw that when you go to www.aristotleprep.com/products now, the default category does not open. Can you please help me out with this urgently as this could be one of the reasons why our sale has dipped badly in the last few weeks
xProductBrowser("categoriesPerRow=3","views=grid(3 ,3) list(10) table(20)","categoryView=grid","searchView=list"," style=","defaultCategoryId=2640002");
// ]]></script></div>
|

07-09-2012, 04:40 PM
|
 |
Ecwid Team
|
|
Join Date: Sep 2009
Posts: 11,009
|
|
Quote:
Originally Posted by msrrautela
I had implemented the following code 2 months back so that when anybody landups on www.aristotleprep.com/products , the "GMAT Verbal" category opens by default.I checked today and saw that when you go to www.aristotleprep.com/products now, the default category does not open. Can you please help me out with this urgently as this could be one of the reasons why our sale has dipped badly in the last few weeks
xProductBrowser("categoriesPerRow=3","views=grid(3 ,3) list(10) table(20)","categoryView=grid","searchView=list"," style=","defaultCategoryId=2640002");
// ]]></script></div>
|
Hi,
Please check the source of your page. It has two different "Product Browser" widgets installed.
The first one with the default category assigned:
HTML Code:
<div><script type="text/javascript" src="http://app.ecwid.com/script.js?926016"></script><script type="text/javascript">// <![CDATA[</p>
<p> xProductBrowser("categoriesPerRow=3","views=grid(3,3) list(10) table(20)","categoryView=grid","searchView=list","style=","defaultCategoryId=2640002");
// ]]></script></div>
and the second one without default category:
HTML Code:
<div> <script type="text/javascript"> xProductBrowser("categoriesPerRow=3","views=grid(3,3) list(10) table(20)","categoryView=grid","searchView=list","style=");</script></div>
That's why the default category does not open.
Do you use our WordPress plugin? Did you modify the "Store" WordPress page? What code does it have now?
|

07-09-2012, 06:15 PM
|
 |
Member
|
|
Join Date: Jan 2012
Posts: 37
|
|
Thank you very much for the quick response. I do not know how is the code for "without default category" appearing in the source code. I have the following code in my "products"(using it in place of the store page) page that i am using for the storefront. And yeah, I am using the wordpress plugin
<div><script type="text/javascript" src="http://app.ecwid.com/script.js?926016"></script><script type="text/javascript">// <![CDATA[
xProductBrowser("categoriesPerRow=3","views=grid(3 ,3) list(10) table(20)","categoryView=grid","searchView=list"," style=","defaultCategoryId=2640002");
// ]]></script></div>
[ecwid_script] [ecwid_minicart] [ecwid_searchbox] [ecwid_categories] [ecwid_productbrowser] <!-- Ecwid code end -->
|

07-09-2012, 06:23 PM
|
 |
Member
|
|
Join Date: Jan 2012
Posts: 37
|
|
Just figured out an alternate solution. Updated the "Default Category ID" in the Ecwid settings page in the wordpress backend and voila! the problem is fixed. 
Was wondering that when the default category id can be set this easily, what is the need to put that piece of code ?
|

07-09-2012, 08:09 PM
|
 |
Ecwid Team
|
|
Join Date: Sep 2009
Posts: 11,009
|
|
Quote:
Originally Posted by msrrautela
Just figured out an alternate solution. Updated the "Default Category ID" in the Ecwid settings page in the wordpress backend and voila! the problem is fixed. 
Was wondering that when the default category id can be set this easily, what is the need to put that piece of code ?
|
If you use our WordPress plugin, then you don't need to modify any code to set a default category - just use the the "Default Category ID" option in the WordPress plugin's settings page. The code editing is necessary if only Ecwid is inserted manually without our plugins.
Quote:
Originally Posted by msrrautela
Thank you very much for the quick response. I do not know how is the code for "without default category" appearing in the source code. I have the following code in my "products"(using it in place of the store page) page that i am using for the storefront. And yeah, I am using the wordpress plugin
<div><script type="text/javascript" src="http://app.ecwid.com/script.js?926016"></script><script type="text/javascript">// <![CDATA[
xProductBrowser("categoriesPerRow=3","views=grid(3 ,3) list(10) table(20)","categoryView=grid","searchView=list"," style=","defaultCategoryId=2640002");
// ]]></script></div>
[ecwid_script] [ecwid_minicart] [ecwid_searchbox] [ecwid_categories] [ecwid_productbrowser] <!-- Ecwid code end -->
|
If you use our WP plugin, then the correct code is as follows:
HTML Code:
[ecwid_script] [ecwid_minicart] [ecwid_searchbox] [ecwid_categories] [ecwid_productbrowser] <!-- Ecwid code end -->
|
| Thread Tools |
Search this Thread |
|
|
|
| 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 03:13 AM.
Powered by vBulletin® Version 3.8.6. Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
|