Jump to content


Replying to How To Display All Description On Store Page


Post Options

  or Cancel


Topic Summary

Elise Alley

Posted 26 March 2014 - 09:05 AM

Glad that worked for you, Erwin.

Let us know if you have any additional questions.

Thanks,

Elise

erwinodendaal

Posted 26 March 2014 - 09:01 AM

Yep, that works!
Thanks.

Elise Alley

Posted 25 March 2014 - 11:01 AM

Hey Erwin,

I apologize.  The path for the description file should be exchange/content-store/elements/.  

Give that a try and let us know how it goes.

Thanks,

Elise

erwinodendaal

Posted 25 March 2014 - 06:51 AM

Hi Elise,

I copied description.php file from '/lib/templates/content-product/elements/' to 'my_theme/exchange/store-product/elements/'
The code in this file is:
<?php if ( it_exchange( 'product', 'has-description' ) ) : ?>
<?php do_action( 'it_exchange_content_product_before_description_element' ); ?>
<div class="it-exchange-product-description">
  <?php it_exchange( 'product', 'description' ); ?>
</div>
<?php do_action( 'it_exchange_content_product_after_description_element' ); ?>
<?php endif; ?>

I copied 'product-info.php' file from '/lib/templates/content-store/loops/' to 'my_theme/exchange/content-store/loops' and added 'description' to the array on line 17 where I'd like it to show.
The code in this file is:
<?php do_action( 'it_exchange_content_store_before_product_info_loop' ); ?>
<?php foreach( it_exchange_get_template_part_elements( 'store_product', 'product_info_loop', array( 'title', 'base-price', 'description','permalink' ) ) as $detail ): ?>
<?php it_exchange_get_template_part( 'content-store/elements/' . $detail ); ?>
<?php endforeach; ?>
<?php do_action( 'it_exchange_content_store_after_product_info_loop' ); ?>


But there's is no description showing on the store-page products.

See: http://www.speerpuntencursus.nl/wp/inschrijven-store/

Erwin

Elise Alley

Posted 24 March 2014 - 01:50 PM

Hi erwinodendaal,

Probably the easiest way to accomplish this is copy the description.php file in /lib/templates/content-product/elements/.  Then, you'll place it in the exchange/store-product/elements/ directory you create in your theme.  Copy the product-info.php file in /lib/templates/content-store/loops/and add 'description' to the array on line 17 where you'd like it to show.  You'll then upload that file to the directory you'll create specifically for it in your theme which is noted for you in the product-info.php file.  

The directories you'd create will depend on the template files you're customizing.  You can read more about that in the codex here:  How Do I Edit My Template Files

Thanks,

Elise

erwinodendaal

Posted 22 March 2014 - 03:38 AM

Hi Elise,

Can you be more specific please?

Which templates files?
How do I edit them (what code to change/edit)?
Which directories do I have to create and where and which files do I have to put there?

Elise Alley

Posted 02 January 2014 - 10:37 AM

Hi romaronline,

There isn't an option to do this in Exchange at this time.  You are welcome to edit Exchange to accomplish this if you'd like and feel comfortable doing so.  You'll need to edit the template files do to accomplish this.  Instead of actually editing the template files, you'll copy them and place them in directories you'll create in your theme.  At the top of each file is information about where you would want to place that specific file.

Let us know if you have any additional questions.

Thanks,

Elise

romaronline

Posted 01 January 2014 - 02:03 AM

First time user here for exchange but its great except I can't figure out how to make the store page display with full description details instead of "view details" below the image.....thanks...url is   http://www.kristenableson.com/store/

Review the complete topic (launches new window)