Moses001
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Content Shortcode] Child taxonomy page does't display postsEverything works fine.
Forum: Plugins
In reply to: [Custom Content Shortcode] Child taxonomy page does't display postsDear 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]
‘Forum: Plugins
In reply to: [Custom Content Shortcode] Problem with using a loop inside a for/eachHere 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]Forum: Plugins
In reply to: [Custom Content Shortcode] Problem with using a loop inside a for/eachI 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.Forum: Plugins
In reply to: Custom Content Shortcode Plugin Category Subcategory DisplayHere 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.
Forum: Themes and Templates
In reply to: Storefront Child Theme and Woocommerce Shopping CartI tried the code above again after deactivating some plugins. The code above works and does remove the shopping cart icn and $ amount
Forum: Plugins
In reply to: Displaying all categories of each productI 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]’Forum: Plugins
In reply to: [Custom Content Shortcode] How to hide post title when using image title loopMy 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.
The code above works. I wish I knew as much as you did. Thanks for such quick response.
Forum: Plugins
In reply to: [Custom Content Shortcode] How to Use Custom Content ShortcodeHi 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.
Forum: Plugins
In reply to: [WooCommerce] Additional Information Tab not showing in Woocommerce 2.0.10I 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.
Forum: Plugins
In reply to: [WooCommerce] Additional Information Tab not Showing on all Product Pages.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.
Forum: Plugins
In reply to: [WooCommerce] Additional Information Tab not Showing on all Product Pages.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.