Jump to content


Replying to Assign Layout/view To Exchange Product Category Archive


Post Options

  or Cancel


Topic Summary

mfreedman33

Posted 29 June 2015 - 01:49 PM

thanks, Ronald, I will post there.

Ronald

Posted 24 June 2015 - 03:34 PM

Hi,

the plugin uses the Exchange template for the store page. But you should be able to accomplish that layout through css without having to edit the store templates when you use the list view, and make sure that the featured image aligns left of the product details.

You can of course create a page for each category, and enable the custom loop addon for each page to create a specific category page layout using the custom loop addon.

For more help on the custom loop add-on, since it's not an official iThemes plugin, please post in the support forum for the plugin on the WordPress plugin directory,

Ronald

mfreedman33

Posted 24 June 2015 - 10:50 AM

ok thanks Ronald - I am trying the awesome loop plugin you made (to find the simplest solution b/c I found the documentation for creating custom product category template pages to be cumbersome).

Here is the page I created: http://lifelonglearning.community/lifelong-learning/

It would be cool if you could edit the built-in category to add the custom loop - like, say you are on a category page such as this: http://lifelonglearning.community/product-category/lll/ and you go to "edit category" in the menu at the top, then you have a choice there to enable the custom loop options like you have available on a regular page on this page: http://lifelonglearning.community/wp-admin/edit-tags.php?action=edit&taxonomy=it_exchange_category&tag_ID=8&post_type=it_exchange_prod

But that is not currently possible, so using your plugin, how do I create another custom view to display products such as you see in the attached mockup?

Is it possible with your plugin, or so I need to work with the php in the templates (not my preference...)?

What is the simplest path to accomplish the layout in the attached mockup? Hope I am being clear.

Thanks!

Ronald

Posted 23 June 2015 - 01:01 PM

Hi,

Builder extensions are not designed to work with Exchange products. On creating category pages for Exchange, see also: http://ithemes.com/codex/page/Exchange_FAQs:_How_Do_I_Create_a_Custom_Product_Category_Page and this may also help: http://ithemes.com/codex/page/Exchange_FAQs:_How_Do_I_Show_the_Product_Featured_Image_on_Archive/Category_Pages

Ronald

mfreedman33

Posted 23 June 2015 - 12:49 PM

Oh my goodness, Ronald, so sorry for my error - I was working in the wrong theme folder and have deleted the Everett theme to avoid further confusion. My apologies!

I placed your code in the correct place this time and I am getting the custom layout desired for the product category page. I have applied the Featured Image Left Extension to the page layout titled "Product Category Page" and yet, the featured image I set for each product is not showing on the category page. Am I missing something?

Also, I see I could submit a ticket through the helpdesk if that is better.

Thanks!

Ronald

Posted 23 June 2015 - 09:02 AM

Hi,

your setup/configuration of your Builder theme is not correct. Each Builder theme now includes all Builder functionality, so Builder-Everett is in fact a parent theme. During theme activation, you will be prompted to generate a custom child theme. The functions-child.php from the parent theme will then be copied into the functions.php file of the custom child theme, there should be NO functions-child.php in your custom child theme.

Looking at your site though, I now see that Builder-Air is the parent theme, and Builder-Air-Custom is the active child theme, which appears to be fine.

So I'm a bit confused.

For more questions on Builder, please feel free to post in the Builder support forum: http://ithemes.com/forum/forum/64-builder/

Ronald

mfreedman33

Posted 22 June 2015 - 05:30 PM

Hi Ronald - thanks for this! In the Everett child theme folder, there was a functions.php and functions-child.php - a bit confusing. They both exist in the parent theme as well. This is an older installation (perhaps I should upgrade?).

In any case, I put this modification into functions-child.php, then deleted functions.php from the child theme folder and deleted functions-child.php from the parent folder.

The product category page is still pulling the default layout and not the layout of the ID I put into the modification code you kindly offered.

http://lifelonglearning.community/product-category/lll/

Anything I am missing?

Thanks!!

P.S. Here is the code in functions.php in the child theme folder:
<?php
// Tell the main theme that a child theme is running. Do not remove this.
$GLOBALS['builder_child_theme_loaded'] = true;
// Load translations
load_theme_textdomain( 'it-l10n-Builder-Everett', get_stylesheet_directory() . '/lang' );

// Theme Support Features
add_theme_support( 'builder-3.0' );
add_theme_support( 'builder-responsive' );
add_theme_support( 'builder-full-width-modules' );

// Enqueuing and Using Custom Javascript/Jquery
function custom_load_custom_scripts() {
if ( file_exists( get_stylesheet_directory() . '/js/custom_jquery_additions.js' ) )
	$url = get_stylesheet_directory_uri() . '/js/custom_jquery_additions.js';
else if ( file_exists( get_template_directory() . '/js/custom_jquery_additions.js' ) )
	$url = get_template_directory_uri() . '/js/custom_jquery_additions.js';
if ( ! empty( $url ) )
	wp_enqueue_script( 'custom_jquery_additions', $url, array('jquery'), false, true );
}
add_action( 'wp_enqueue_scripts', 'custom_load_custom_scripts' );

// Tag Cloud Widget functionality
function custom_tag_cloud_widget($args) {
$args['number'] = 0; // adding a 0 will display all tags
$args['largest'] = 22; // largest tag
$args['smallest'] = 12; // smallest tag
$args['unit'] = 'px'; // tag font unit
$args['format'] = 'flat';
return $args;
}
add_filter( 'widget_tag_cloud_args', 'custom_tag_cloud_widget' );

// Add Support for Alternate Module Styles
if ( ! function_exists( 'it_builder_loaded' ) ) {
function it_builder_loaded() {
  builder_register_module_style( 'image', 'No Spacing', 'image-no-spacing' );
  builder_register_module_style( 'image', 'Full Window', 'image-full-window' );
  builder_register_module_style( 'html', 'Callout', 'html-callout' );
}
}
add_action( 'it_libraries_loaded', 'it_builder_loaded' );

// registering post thumbnail sizes
if ( function_exists( 'add_image_size' ) ) {
  add_image_size( 'index_thumbnail', 0, 0, true );
}
function custom_filter_category_layouts( $layout_id ) {
	   
		if (!is_admin() && (is_archive) && (builder_is_custom_post_type__it_exchange_prod ))
						return '55887f8908c0a';
	   
		return $layout_id;
}
add_filter( 'builder_filter_current_layout', 'custom_filter_category_layouts' );

Ronald

Posted 20 May 2014 - 02:13 PM

Hi,

you can assign a Builder layout to an Exchange product category archive by adding the following function in your child theme's functions.php:

function custom_filter_category_layouts( $layout_id ) {
	
	if (!is_admin() && (is_archive) && (builder_is_custom_post_type__it_exchange_prod ))
			return '5257fe4449908';
	
	return $layout_id;
}
add_filter( 'builder_filter_current_layout', 'custom_filter_category_layouts' );

where the layout ID can be found by hovering over the layout in the Builder layout manager, and observe the URL it links to:

Posted Image

or just click that link and find the id in the URL:

Posted Image

hope that helps,
Ronald

douglamunyon

Posted 16 May 2014 - 12:36 PM

What about using Widget Logic or something similar to set when the widget should be visible on a page?

Elise Alley

Posted 15 May 2014 - 04:54 PM

Hi Chris,

I'll definitely let you know if another option becomes available.  

Let us know if you have any other questions.

Thanks,

Elise

Review the complete topic (launches new window)