WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
How fill attribute value without using the module? (4 posts)

  1. Stacy (non coder)
    Member
    Posted 1 year ago #

    Is there a shortcode or template tag that may go in the text edit?
    Or
    A way to convert product cats, tags, or custom fields to an attribute?

    http://wordpress.org/extend/plugins/woocommerce/

  2. Stacy (non coder)
    Member
    Posted 1 year ago #

    Where can I find a list of all the $keys for woo please?

  3. Stacy (non coder)
    Member
    Posted 1 year ago #

    http://docs.woothemes.com/wc-apidocs/package-WooCommerce.html This looks like an interesting resource, simply want to create the "additional info" tab with it's field and values from the first editor box (post template itself).

  4. Stacy (non coder)
    Member
    Posted 1 year ago #

    Tried pasting

    div class="woocommerce-tabs">
    		<ul class="tabs">
    <li class="additional_information_tab">
    					<a href="#tab-additional_information">Additional Information</a>
    				</li>
    <div class="panel entry-content" id="tab-additional_information">
    
    <h2>Additional Information</h2>
    
    <table class="shop_attributes">
    
    		<tr class="">
    			<th>Color</th>
    			<td><p>blue, orange</p>
    </td>
    		</tr>
    
    		<tr class="alt">
    			<th>Brand</th>
    			<td><p>apple, windows</p>
    </td>
    		</tr>
    
    </table>			</div>

    Which created nested tabs and brought the attribute table to the description table and shifted the footer to the sidebar.

    Pasting just

    <div class="panel entry-content" id="tab-additional_information">
    
    <h2>Additional Information</h2>
    
    <table class="shop_attributes">
    
    		<tr class="">
    			<th>Color</th>
    			<td><p>blue, orange</p>
    </td>
    		</tr>
    
    		<tr class="alt">
    			<th>Brand</th>
    			<td><p>apple, windows</p>
    </td>
    		</tr>
    
    </table>			</div>

    creates the table in the view editor but nothing shows on the post. Even so this method doesn't actually create the attributes value just lists the visual on the post, I would like to create it with code.

    What does the source below mean?
    "woocommerce_get_template : Get other templates (e.g. product attributes) passing attributes and including the file. " http://docs.woothemes.com/wc-apidocs/package-WooCommerce.Functions.html

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic