Home Forums Plugins Custom Fields Support [Resolved] The Missing Information – custom field implementation Reply To: The Missing Information – custom field implementation

#28095
fullmotiongroup
Participant

By the way, the two places to put the above snippet into the product description

around line 109 of wpsc-products_page.php
around line 46 of wpsc-single_product.php

You will find the above two files in your theme folder if you followed the installation instructions and let the plugin copy some files to your theme folder (WP Admin > Settings > Store > General tab) when you first installed the store plugin.

As an example, I first added a custom product attribute (see previous post) called “Disk Length” which has a slug of “disk-length”. I then went into the product pages and filled in the field with some info. Finally, I put the slug “disk-length” inside the above two PHP files within the product description div container as shown below.

<div class=”product_description”>
<?php echo wpsc_the_product_description(); ?>
<p>disk length:<strong><?php wpsc_the_custom_fields( ‘slug=disk-length’ ); ?></strong></p>
</div><!–close product_description –>