Woocommerce help please

Hello, how exacly do i set up a woo commerce, i have set up a woocommerce on my website but i cant configure it right?
is it possible to edit a woo commerce with cornerstone? however i made products and such but i dont have the ability to add a menu.
i have 2 questions:

  1. is it possible to add an extra menu of shop and edit woo commerce items pages with cornerstone?
  2. is it possible to when i click “shop” button to replace the main nav menu with shop nav menu?
    please help

Hi angelofgod,

1- You can add an extra menu item targeting the shop page just as you add any extra menu item in WordPress, please check this guide.

You can’t edit WooCommerce items with Cornerstone as WooCommerce pages aren’t editable with Cornerstone in general, however you can follow this method to do the opposite:

2- Page specific menus isn’t a function we provide currently, however, you can check this suggestion:

Thanks.

1 Like

Hey!
A very usefull information, Thanks!

Wait, if it is possible to form the shop with cornerstone
Then i could add the Banner and Shop Menu to the shop and rest the woocommerce shortcodes will add, which is exacly what i want. but fo example item catgoies and links lead to thei own pages, how exacly can i add my banner and menu to the shop above the pages?

  • and also can i add a shopping cart the that extra menu or only to nav menu?
  • another thing is that it wont show the menu when i click poducts

Hey There,

You cannot use Cornerstone to edit your shop page. It maybe possible with custom tweaks in your WooCommerce settings which is not advisable to avoid any issues and conflicts.

You can only add the custom banner and custom menu if you have place your customization in your child theme and set it to appear globally.

Hope this helps.

1 Like

i mean i cant globaly like make the shop/categories/products page with section of the banner and raw text of shortcode of the shop menu along as with the shopping cart then the rest i will add the woo commerce shortcodes of each pages?

Hi there,

Yes, you can’t. They are archive pages and the only way to edit it is through custom coding (templates). With that, I recommend seeking help from a developer familiar with Wordpress’ and Woocommerce’s template hierarchy.

Thanks!

1 Like

Thanks! it works, but how exacly do i keep the Secondary Menu? i want it to stay at the same spot please!
And also it doesnt do the same at product categories and product themselves
how can i set it the same to be in the products and categories of products as well please?

Hi there,

The code that you quoted here is using the x_is_shop conditional tag to find which page the menu should be replaced. Unfortunately, it is not possible to have a secondary menu and it only replaces the menu. There is only 1 place to add the menu to our theme.

Now you can use the other conditional tags of the Woocommerce itself to also add the same menu replacing behavior in the pages you mentioned. Here is a good list of the tags I mentioned:

Maybe using the is_woocommerce() is the best way but you need to test.

Please consider that none of the options above and our suggestions here are part of our support scope. We will not be able to maintain the suggested codes in the future due to the break of the code while updating the theme or the Woocommerce plugin.

I suggest that you consult with a developer which is savvier on the ins and outs of the Woocommerce plugin regarding this customization.

Thank you for your understanding.

1 Like

woo commerce plugin is in the x themes plugins so how come it is out of your support scope??
screenshot>> http://prntscr.com/jdihac

And regarding the menu, how come there is only 1 place to add the menu in your theme while in homepage i use 2 menues?

And Thanks, the “is_woocommerce()” is exacly what i needed, it shows the menu on all products and categories and shop! thanks!

But look at screenshot i have the secondary menu i just want to set this menu to be menu name (ubermenu) name: 5776

screenshot>> http://prntscr.com/jdiln3
perhaps i need to add something in the code please?
please help!

Hi there,

That is just one of approved plugins, and approved plugins are just recommended plugin that you could use with the theme. Woocommerce plugin is located here https://wordpress.org/plugins/woocommerce/ where you can install through Admin > Plugins > Add new, but the purpose of that section is just a quick link so you can instantly install the recommended plugin. It’s not part of the theme, the bundled plugins that come with the theme are the ones in extensions section, above the approved plugins section.

There is only one menu on your home page, and there will always one. And your homepage has customizations that alter its looks, and it’s not part of the theme. You should familiarize the changes and customization of your site, it’s the same custom code you’ll change when you need something to change.

About the secondary menu in your store page, you should edit your custom code and apply the 5776 menu. It’s wrapped with <div id="custom-fixed-menu"></div> and I think, you should able to find it from your custom codes.

Thanks!

hey
how do i apply this??

Hi There,

You will need to modify the code where you have added the custom menu. In one of the template files in your child theme, you have this:

    <div id="custom-fixed-menu">
       <?php ubermenu( '5776' , array( 'theme_location' => 'secondary-menu' ) ); ?>
    </div>

You will need to modify this and make use of the x_is_shop() condition like:

    <div id="custom-fixed-menu">
      <?php if (x_is_shop()) : ?> 
        <?php ubermenu( '1234' , array( 'theme_location' => 'secondary-menu' ) ); ?>
      <?php else : ?>
        <?php ubermenu( '4567' , array( 'theme_location' => 'secondary-menu' ) ); ?>
      <?php endif; ?>
    </div>

This code will display a different menu in your shop page and another menu in other pages of the site. The menu ID by the way is not an actual ID but merely as an example.

Hope this make sense.

1 Like

i have place the updated code

<?php // ============================================================================= // VIEWS/ETHOS/WP-HEADER.PHP // ----------------------------------------------------------------------------- // Header output for Ethos. // ============================================================================= ?> <?php x_get_view( 'global', '_header' ); ?> <?php x_get_view( 'global', '_slider-above' ); ?> <?php x_get_view( 'ethos', '_post', 'carousel' ); ?> <?php x_get_view( 'global', '_topbar' ); ?> <?php x_get_view( 'global', '_navbar' ); ?>
  <div id="custom-fixed-menu">
  <?php if (x_is_shop()) : ?> 
    <?php ubermenu( '5776' , array( 'theme_location' => 'secondary-menu' ) ); ?>
  <?php else : ?>
    <?php ubermenu( '5776' , array( 'theme_location' => 'secondary-menu' ) ); ?>
  <?php endif; ?>
</div>

<?php x_get_view( 'ethos', '_breadcrumbs' ); ?>
<?php x_get_view( 'global', '_slider-below' ); ?> <?php x_get_view( 'ethos', '_landmark-header' ); ?>

in child theme’s folder wp-content/themes/x-child/framework/legacy/cranium/headers/views/ethos/.

as you said in thread https://theme.co/apex/forum/t/how-to-position-vertical-menu-above-title/30420/8

how ever it does not shows menu 5776 in page of store https://shofar-messiah.com/store/

Hi there,

From your previous reply, you said it should be like this https://prnt.sc/jdiln3

But look at screenshot i have the secondary menu i just want to set this menu to be menu name (ubermenu) name: 5776

I compared it to what I’m seeing and it’s the same, and I can confirm it through code as well,

Perhaps it’s not the 5776 that you’re trying to apply?

Thanks!

The Location of the menu is correct, (on the nav) , but the menu it self is the same menu as the store menu and not 5776 menu, the 5776 menu is the “star” symbol. like this: http://prntscr.com/je3775

Hi there,

Could you try this, please go to your Ubermenu settings for 5776+ and change this option Integrate Specific Theme Location to Secondary Menu?

Or please change this line

<?php ubermenu( '5776' , array( 'theme_location' => 'secondary-menu' ) ); ?>

with this

<?php ubermenu( '5776' ); ?>

Thanks!

1 Like

hey i cant because i have removed the wp-header.php in where you told me, first lets solve things step by step one at a time as you said, first let us solve the admin bar issue,

please lets solve this thread first>> https://theme.co/apex/forum/t/admin-bar-bug-in-chrome/31633/14

Great!
We will be responding your other thread.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.