Variable Dates without Showing 'Dates and Pricing' Tab

Hi Sanjeev,

I may not be understanding this correctly, but I’m trying to determine where the search filters pull it’s dates from.

What I want to do is have variable dates for a tour, but not have the dates and prices tab come up on the product tour when I fill in those variables (we will not be listing prices with our dates and are not using a cart system), unless I’m misunderstanding where I should fill in the dates so that the search filter picks them up properly.

So, for instance, I have a 13 day tour for both Jun and July. I create the variable with the proper start and end dates on the product page and leave the price out, but that activates the ‘Dates and Prices’ tab that has Trip Status, Price, and Price with flights as N/A. We don’t want this, so is there an alternative way of adding dates so that the the home page search filter will still pick it up?

Thanks!

Hello people,

Rather than opening over a year old thread, please create a new post with your specific query. Sometimes, even if the issue is same, the old method will not work, hence always look at dates and version, and if its over 6 months old, please create new post with your query.

Thank you

Update: I was able to comment out the ‘dates and prices’ section in content-single-product.php to prevent the tab from showing up in the product details, but I’d still be interested to know if there was a better way that didn’t involve editing the php file.

Hello Jason,

The product types, like simple / affiliate / variable has different purpose. And indeed the search tab pulls its data from the “variable product” which has specific “dates and prices” as that data is required to show the results based on dates. So, to customize this, you will need to modify php files. You can copy the content-single-product.php to entrada-child >> woccommerce >> and place here to be safe during future theme update.

Thank you