topspin / topspin-wordpress

Topspin's Wordpress Integration
http://www.topspinmedia.com/
20 stars 11 forks source link

Nav Menu not working for default store page #100

Open ezmiller opened 10 years ago

ezmiller commented 10 years ago

The nav menu is not displaying all the stores on the default store page. It is showing only the name of the store that is set as default...

ezmiller commented 10 years ago

Attention to this issue please?

2changz commented 10 years ago

Hey Ethan, can you explain in more detail? I'm looking at OKGO store and the subpages seem to be working

http://i.imgur.com/xGITSnZ.png

ezmiller commented 10 years ago

Hi 2changz, I've not pushe this live yet as the upgrade to the new version totally broke our design. So this is running on my laptop only at the moment. Basically the problem is that when a store is set as the default, the nav menu is not loading correctly. The problem seems to be that when the store is set as default it is being pulled as an archive for some reason and related to that the array containing the stores only has the one store, i.e. the one set as default... This seems to be a bug in the design.

ezmiller commented 10 years ago

Just to make this clearer, if I var_dump the $storesList variable in menu.php (produced by a call to WP_Topspin::getStores) it returns this on the "default page" which is set to a store called "Featured":

  array(1) {

[0]=> object(WP_Post)#14 (25) { ["ID"]=> int(61802) ["post_author"]=> string(4) "4731" ["post_date"]=> string(19) "2013-11-28 12:26:53" ["post_date_gmt"]=> string(19) "2013-11-28 17:26:53" ["post_content"]=> string(0) "" ["post_title"]=> string(8) "Featured" ["post_excerpt"]=> string(0) "" ["post_status"]=> string(7) "publish" ["comment_status"]=> string(6) "closed" ["ping_status"]=> string(6) "closed" ["post_password"]=> string(0) "" ["post_name"]=> string(8) "featured" ["to_ping"]=> string(0) "" ["pinged"]=> string(0) "" ["post_modified"]=> string(19) "2013-11-28 12:31:08" ["post_modified_gmt"]=> string(19) "2013-11-28 17:31:08" ["post_content_filtered"]=> string(0) "" ["postparent"]=> int(0) ["guid"]=> string(54) "http://***.*_.net/?post_type=store&p=61802" ["menu_order"]=> int(1) ["post_type"]=> string(5) "store" ["post_mime_type"]=> string(0) "" ["comment_count"]=> string(1) "0" ["filter"]=> string(3) "raw" ["format_content"]=> NULL } }

If I dump the same variable on any normal store page, it pulls all stores:

array(2) { [0]=> object(WP_Post)#385 (25) { ["ID"]=> int(61802) ["post_author"]=> string(4) "4731" ["post_date"]=> string(19) "2013-11-28 12:26:53" ["post_date_gmt"]=> string(19) "2013-11-28 17:26:53" ["post_content"]=> string(0) "" ["post_title"]=> string(8) "Featured" ["post_excerpt"]=> string(0) "" ["post_status"]=> string(7) "publish" ["comment_status"]=> string(6) "closed" ["ping_status"]=> string(6) "closed" ["post_password"]=> string(0) "" ["post_name"]=> string(8) "featured" ["to_ping"]=> string(0) "" ["pinged"]=> string(0) "" ["post_modified"]=> string(19) "2013-11-28 12:31:08" ["post_modified_gmt"]=> string(19) "2013-11-28 17:31:08" ["post_content_filtered"]=> string(0) "" ["postparent"]=> int(0) ["guid"]=> string(54) "http://**._.net/?post_type=store&p=61802" ["menu_order"]=> int(1) ["post_type"]=> string(5) "store" ["post_mime_type"]=> string(0) "" ["comment_count"]=> string(1) "0" ["filter"]=> string(3) "raw" ["format_content"]=> NULL } [1]=> object(WP_Post)#386 (25) { ["ID"]=> int(62419) ["post_author"]=> string(4) "4731" ["post_date"]=> string(19) "2013-11-28 12:29:29" ["post_date_gmt"]=> string(19) "2013-11-28 17:29:29" ["post_content"]=> string(0) "" ["post_title"]=> string(8) "Clothing" ["post_excerpt"]=> string(0) "" ["post_status"]=> string(7) "publish" ["comment_status"]=> string(6) "closed" ["ping_status"]=> string(6) "closed" ["post_password"]=> string(0) "" ["post_name"]=> string(8) "clothing" ["to_ping"]=> string(0) "" ["pinged"]=> string(0) "" ["post_modified"]=> string(19) "2013-11-28 12:31:08" ["post_modified_gmt"]=> string(19) "2013-11-28 17:31:08" ["post_content_filtered"]=> string(0) "" ["post_parent"]=> int(0) ["guid"]=> string(54) "http://.**.net/?post_type=store&p=62419" ["menu_order"]=> int(2) ["post_type"]=> string(5) "store" ["post_mime_type"]=> string(0) "" ["comment_count"]=> string(1) "0" ["filter"]=> string(3) "raw" ["format_content"]=> NULL } }

ezmiller commented 10 years ago

Response please!! It has been two months since this issue was created and no attention here. This seems to me to be a pretty major bug in this update of the store.