Dependencies do not work?
-
Hello,
I need my camping to be available only to ones who also buy an excursion package. I’ve added all excursion products in the “Product dependencies” box and tried with all three modes (Ownership, Purchase, Either), but still no change on the camping purchase tab: everyone can still buy it no matter their cart content.
Is there something I missed in my configuration?
Thanks!The page I need help with: [log in to see the link]
-
Hi there @cbdallaire ,
Thanks for reaching out!
I took a look at the product link you shared and confirmed that I am able to add it to the cart without having any other product in it and without seeing any dependency-related notification. Based on the details you shared, I understand that you’d like to allow customers to purchase this product only if they have also added a product from the Excursions Category in their cart. Is this correct?
If so, then a ‘Purchase’ dependency rule with the specific Category should allow you to achieve the desired result. If you have already created a rule like this and it doesn’t work as expected, can you also please double-check the product type of the Camping product? I’m asking because Product Dependencies support Simple/Variable Products, Product Bundles, Composite Products, and Booking products.
If the product has one of the above product types and dependencies still don’t work, then this behavior is most probably caused by a conflict. To further investigate this, please follow the below steps on a staging site:
- Temporarily switch back to a default WordPress theme (or Storefront). If this resolves the issue, then please bring this to the attention of your theme author.
- If the issue persists, then disable all other plugins except for WooCommerce and Product Dependencies. If this fixes the issue, then slowly re-enable plugins until you find the one that triggers it.
If you are not sure how to create a staging site, you can use a plugin such as WP Staging or Duplicator to do this.
Note that some hosts provide a Control Panel option for creating development/staging sites easily — if you are not sure about this, it might be worth asking your host as this is definitely the easiest and fastest way to do it.
Let me know what you’ll find!
Cheers,
Maria Chekimoglou
Support Team Lead | SomewhereWarm | https://somewherewarm.com/- This reply was modified 3 years, 5 months ago by SomewhereWarm.
Hello Maria ??
I tried with default theme, but no change
Then I disabled all plugins (except WC and WC dependencies), and I still could buy without any specific product in my cart
So I reactivated WPML CSM plugin (main one only), and then I would see the notice (you must buy…), but the reservation button was disabled. I tried to change the reservation parameters, but I couldn’t make the button change to enabled status.
You can use the same link, I did not create a DEV site.
Thanks!
Hello @cbdallaire ,
Thank you for trying this!
Can you please let me know what is the product type of the affected product? Currently, Product Dependencies work for Simple/Variable Products, Product Bundles, Composite Products and Booking Products (I have linked the related plugins for the custom product types).
Is there a chance that the Camping product you have created doesn’t belong in one of these product types?
Alternatively, if the product belongs in one of these types and you see a different behavior in each of the different languages, then it is very likely that this issue is related to WPML. On our side, we don’t maintain an integration with WPML — however, in the past their team has been quite proactive in resolving issues that showed up in combination with our plugins.
In this case, to confirm the source of the issue it is necessary to create a staging site from scratch — a site where WPML has never been installed. The reason for this is that even by deactivating WPML, the issue might persist since it makes some changes in database tables.
If you do this and you don’t see the issue on this staging site, then this means the issue is indeed related to WPML and the best way to proceed is to reach out to their team directly ??
Looking forward to your reply!
Cheers,
Maria Chekimoglou
Support Team Lead | SomewhereWarm | https://somewherewarm.com/- This reply was modified 3 years, 5 months ago by SomewhereWarm.
Hello Maria,
Sorry for late answering.
It appears the theme have regular products and “package” products. I think this is the issue. I never thought of this, because packages can be variable, simple, etc, like any regular WordPress “product”.
Is there a shortcode I could use to make it work?
Catherine ??
Hi Catherine,
Thank you for your reply!
As far as I understand, your theme has a custom ‘package’ type of product, that isn’t the same as the default WooCommerce products (although it has the same behavior). Is this correct?
If so, then Product Dependencies currently only supports the product types I mentioned in my first reply (Simple/Variable Products, Product Bundles, Composite Products, and Booking products). Supporting another product type – or in this case, a ‘package’ – isn’t a straightforward task that could be implemented with a shortcode or a snippet. This would require carefully studying the plugin and changing some of its core functions.
With that said, this customization is beyond our capacity to assist: To be more helpful here, we would need to study your existing codebase and project requirements, and then work closely with you to implement and validate a solution. As much as we’d love to offer this kind of service to our users, I am afraid it is impossible for us to do this sustainably.
Would you perhaps consider hiring a Developer to assist? For WordPress/WooCommerce customizations, we highly recommend https://codeable.io/.
Many Codeable Developers have a spotless track record with WordPress/WooCommerce projects like this, and some have extensive technical experience with our extensions. The feedback we’ve received about Codeable from our customers has been very positive so far — so we’re confident you’ll be in good hands there.
Please feel free to share your experience with us if you decide to take this path!
Cheers,
Maria Chekimoglou
Support Team Lead | SomewhereWarm | https://somewherewarm.com/Hello!
I’ve contacted the template programmer and he is working on some updates to make it works.
Thanks for your help!
CatherineHey @cbdallaire ,
I am glad to hear that! ??
I am now going to mark this thread as resolved — feel free to open a new one if you have any other questions for Product Dependencies!
Cheers,
Maria Chekimoglou
Support Team Lead | SomewhereWarm | https://somewherewarm.com/
- The topic ‘Dependencies do not work?’ is closed to new replies.