Jump to content


Replying to How Can I Get The Description To Display Before/above The Price?


Post Options

  or Cancel


Topic Summary

Elise Alley

Posted 30 October 2013 - 04:36 PM

Happy to have helped, Ian!  And it looks good!  :)

Let us know if you have any additional questions.

Thanks,

Elise

ianvhilton

Posted 30 October 2013 - 04:27 PM

Elise,

That was awesome, I couldn't have figured that out if I had the next 6 months to work on it. I feel like a caveman watching a laser light show. Thank you a thousand times! I got rid of the restricted content membership filter & you can see the result here...

http://hiltondesign.net/ima/product/donation/

Elise Alley

Posted 30 October 2013 - 12:04 PM

Hi Ian,

The link you provided says it's restricted content, so I can't actually take a look at it!  :)  I should be able to help you out though.

If you go into ithemes-exchange/lib/templates/content-product/loops/, you'll find the product-info.php file.  You don't want to make changes to this file directly as any updates to Exchange would overwrite your changes.  So, instead, you'll want to copy that file and then in your theme, create a new set of directories, ex:  wp-content/themes/YOUR-THEME/exchange/content-product/loops.  Add the file into the "loops" folder.

In your new product-info.php file, you'll see this code on about line 18:

<?php foreach ( it_exchange_get_template_part_elements( 'content_product', 'product_info_loop', array( 'base-price', 'description', 'super-widget' ) ) as $detail ) : ?>

To put your content first, you'll switch the base-price and description options in that code.

<?php foreach ( it_exchange_get_template_part_elements( 'content_product', 'product_info_loop', array( 'description', 'base-price', 'super-widget' ) ) as $detail ) : ?>

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

Thanks,

Elise

ianvhilton

Posted 29 October 2013 - 03:32 PM

Hi Guys,

I'm trying to make the pitch before I hit em' with the price tag. Any tips on how I might swap the positions of the price and the description? Below you'll find a link to the page in question. Great work on the name your own price add-on!!!

http://hiltondesign.net/ima/product/donation/

hoping this message finds you well,

Ian

Review the complete topic (launches new window)