Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Everything works fine.

    Dear Friends,
    I am new to Custom Content Shortcode so am learning how to use it.
    I like what I see so far.

    I am trying to display all children of a specific parent category in woocommerce. For each of the children in the specific parent category I want to display the child title, image and image-caption.

    I thought the following code should work. I don’t understand why it does not.

    ‘[for each=”product_cat” parents=”true”]
    [loop type=”product” taxonomy=product_cat term=brand]
    <h2 style=”color: #ffffff; background-color: #0047b2; text-align:center;”> <b>Pumps By: [field title]</b></h2>
    [/loop]
    [-for each=”child” current=”true”]
    <h3 style=”color: #000000; background-color: #99c2ff; text-align:center”> <b> Subcategory: [-each]</b></h3>
    <b> [field title] </b>
    [field thumbnail]
    [field image-caption]
    [/-for]
    [/for]’

    I also tried the ‘related’ as follows, but it didn’t work either.

    ‘[related taxonomy=product_cat children=”true” term=brand]
    <b> [field title] </b>
    [field thumbnail]
    [field image-caption]
    [/related]

    Here is the code I came up with to display categories by subcategories and products in Woocommerce.

    [for each=”product_cat” parents=”true”]
    Category: [each]
    [-for each=”child”]
    Subcategory: [-each]
    [loop type=”product”]
    [field title]
    [field thumbnail]
    [field image-caption]
    [/loop]
    [/-for]
    [/for]

    I am using the code to display category name and them subcategory name within each category.
    ‘[for each=category parents=true]
    Parent: [each link]
    [-for each=child]
    Child: [-each link]
    [/-for]
    [/for]’

    However I wish to display each product title, image and image-caption with each product in the subcategory. I tried using the following code, but the Subcategory title does not display Instead the Parent category title displays.
    The product title, image and image caption for each product will display but the subcategory does not display to show which subcategory the products belong to.

    How can I get the subcategory (name or title) to display before showing each individual product within the subcategory?

    Here is what I have now
    ‘[for each=”product_cat” parents=”true”]
    <b>Products By: [each link]</b>
    Click Links Below To See Specific Product)
    [-for each=”child”]
    [each namw]
    [loop]
    [field title]
    [field thumbnail]
    [field image-caption]
    [/loop]
    [-/for]
    [/for]’

    Custom Content Shortcode Plugin is really cool.
    Thank you.

    Thread Starter Moses001

    (@moses001)

    Here is the code I used to display category and subcategories. I guess the only way to display subcategories is to use [each link]

    ‘[for each=”product_cat” parents=”true”]
    <b>Pumps By: [each link]</b>
    Click Links Below To See Specific Pumps)
    [-for each=”child”]
    [each link]
    [/-for]
    [/for]’

    The above code worked for me.

    Thread Starter Moses001

    (@moses001)

    I tried the code above again after deactivating some plugins. The code above works and does remove the shopping cart icn and $ amount

    Thread Starter Moses001

    (@moses001)

    I just solved my own problem. I should have used [taxonomy product_cat]

    Here’s my final code.
    ‘[loop type=product]
    [section]
    [field title]
    [field thumbnail]
    [content type=product]
    [taxonomy product_cat]
    <li style=”color:#000000″>Regular Price: [field _regular_price]
    <li style=”color:red”>Last Sale Price: [field _sale_price]
    [field image-caption]
    [/section]
    [/loop]’

    Thread Starter Moses001

    (@moses001)

    My mistake. When using another plugin I had to type title in image caption. The more I work with Custom Content ShortcoSos the more I like it. I have much more learning to do.

    So far I am using CCS Plugin to display Woocommerce products. It is really neat that using [field title] I get the product name and with [field image-title] I get the featured image title.

    Thread Starter Moses001

    (@moses001)

    The code above works. I wish I knew as much as you did. Thanks for such quick response.

    Thread Starter Moses001

    (@moses001)

    Hi Peter,
    Where do I put the above code? In a wordpress post? Or in a template file. If a template file which one.

    I looked at the documentation. I saw code, but had no idea where to use it put it.

    Thanks for any help

    How do I remove or change the wording for the add_to_cart_text that displays in the Compare Products (Product Comparison Table)?

    I tried using the code <?php

    add_filter(‘single_add_to_cart_text’, ‘woo_custom_cart_button_text’);

    function woo_custom_cart_button_text() {

    return __(‘My Button Text’, ‘woocommerce’);

    } in the class-wc-compare-functions.php of Woocommerce Compare Products Plugin and replace wording My button text with learn more. It didn’t work.

    Where would I put the code for the ‘add-to-cart’ that displays when I view the results of clicking to compare products.

    You thoughts would be helpful. I have exhausted options to try.

    Thank you.

    Thread Starter Moses001

    (@moses001)

    I see I made a typo above. I have ‘Simple’ products. So I am looking to display the features of a simple product in the individual product posts.

    I forgot to say that I have defined weight and dimensions for my products. Is there a flag I am missing? Weaver II was working before very nicely with WooCommerce.

    Thanks for some ideas.

    I feel stupid. But I have defined my products as ‘Single’ Not variable. I have added product features (attributes). I added all of my features first in the Compare products plug in then marked the feature value to each single product as I created them. The features showed up when I checked the box ‘Activate Compare Feature for this product’. Before WooCommerce 2.0 I could see the features in the ‘additional tab’. Since i updated to Woocommerce 2.0 (now 2.0.9) updated to WordPress 3.5.1 and Weaver II 1.3.2 (theme) I cannot find nor see the ‘Additional Tab’.

    Why can’t I see the ‘Additional Tab’? What am I failing to do?

    I search WP Woocommerce for help but couldn’t find what I needed. I like the ‘Additional Tab’ so very much. It does what I need it to do for my online store. I really want to use it.

    Any suggestions?

    I like WooCommerce a lot with all of its plugins. Very powerful.

    I have the same issue.
    I use single product. Before WooCommerce update to 2.0 I could see each single product’s attributes (features) in the ‘additional information’ tab in table format. Now I can’t see any tabs and no table with a display of each products attributes (features).

    I would like to know the code I should use and where I should put the code so I can display each single products attributes in a table within each single products product page.

Viewing 15 replies - 1 through 15 (of 15 total)