I trying to add some category of my articls, and it saved perfectly in database but I can't see it on category table. I can see just that:
Like you see I have 3 elements but it not displayed on table.
How I can fix that ?
Related
I am working on a woocommerce project with little bit knowledge on wordpress. Now, I have got a requirement which is shared below:
1. Show date calendar on product listing page top of list not in sidebar. I am saving product availiblity based on date ranges in separate table. This table has product id, date start and date end.
2. Show sizes dropdown on product listing on top of list. Sizes filter is already showing in sidebard but client wants it on top. So, I wil disable it in sidebar.
3. When customer will select date and size, product list should be filter accordingly.
I have read wordpress documentation where wc_query has option to use either "EXISTS or NOT Exists" through ws_meta_query. But I am not able to understand, how can I put filter on product query using either "EXISTS or NOT EXISTS" with my custom raw query?
Can someone please guide me how can I implement whole requirement along with how can I EXISTS using raw sql query with product query?
Thanks in Advance
For first 2 points, you'll need woocommerce_before_shop_loop action to display your custom filters.
and for 3rd point, you'll need pre_get_posts action to control your queries.
In Drupal 8, I have a blog posts assigned to different categories. Each category has its page: i.e. /blog/sports. Along the category, each post can be assigned to a tag or multiple tags: i.e. basketball, football, baseball. When content moderator adds a new post tag which didn't exist before, I need to generate a category page containing posts with that tag: i.e. /blog/basketball. Is this something that Drupal 8 does out of the box, or do I need to build a custom feature using the preprocessor?
I would comment but this account is low on rep, yes you can do that out of the box with Drupal 8. Here's some steps to help:
Got to Structure->Views
Select name for your view e.g. sport-blogs
Under displays, next to Mater click the add button and select "Page"
Under page settings to the right, enter the url path you want for your new page on. It doesn't need to be absolute.
Select Add under Filter criteria
6. On the filter criteria select "taxonomy term" under Category
7. Select the name of your vocabulary of terms
8. Finally select all terms that you want shown or select only one e.g basketbal
Assuming all was set correct at this point you may be able to see a live preview based on your filters and existing content at the bottom of the view page. Once saved the view will be accessible to the path you've entered.
I have 1 attribute called Weight in Products > Attributes. I have a nice hierarchy in here and its organized like the picture below.
Organized attributes:
My problem is when you go to add a new product and under attributes I added my attribute called weight. But in the select dropdown there its not organized. See the image below for the unorganized select list of attributes when adding a product.
Unorganized attributes:
How can I get my select list when adding a product to look like the one that is under Products > Attributes? Or, how can I get image #2 to look like image #1?
I am currently working on a project based on drupal + drupal commerce module.
I made a products node (Product Display) using the product reference and inline entity form - Multiple Values.
Now the problem is, I want to list products in a "div" rather than listing them through select box.
To be more clear:
It does list out multiple products, but shows only 1 product at a time. I have to select a product from the drop-down list.
As you can see here:
http://i.stack.imgur.com/EO8if.jpg
Please note: Table panel and bottle box are products.
What I want is:
All the products should be listed without the need of a drop-down select box selection.
Thanks & Regards
Is there a reason why you have used only one node of type "product display" for two diferent products "Table Panel" and "Bottle Box"?
If you create one node for each product its easier do display them as a list.
In my understanding, I wasn't doing it in the right way. I found out the way. I can make product displays and then render them as a VIEW. And style it accordingly. Again many thanks for your input, it really helped me to think, why am I doing this way.
Thanks nimbfire.
using last versions of wordpress, woocommerce and cheope (theme).
the question: how to
add some extra fields in variations form (text and image field types)
show them on frontend so that their values change accordingly on changing of attributes-select values.
e.g.: the site sells candles and uses variable products, for each kind of candle has several dimensions (with specific different prices), each of which has different duration.
The duration is an important element that I want the user to be informed about.
The same to show the available colors all together.
Unluckily in the standard variation form there is no field where I can insert these or other features.
some help please?
updated 07-August-2013
I succeeded in adding to variations form a new field displayed on back-end, as you can see here, by inserting the code you can find here (please see the comments too) in the function.php file of the theme.
Now, what I’m not able to do is get this field to display with each proper value on front-end (please take a look to the last comment in the above linked page).
Any tip or trick?
thanks
1)Add product attribute and check checkbox Used for variations and Visible on the product page
2)go to variations and add new and fill all fields price and stock must add on them
Your producr display variations and their data