• Resolved avinavkapur

    (@avinavkapur)


    Hello Guys,

    I’m using the product dependency plugin, and I need to customize the message when validation fails. Could you please help me with this ?

    Regards,
    Avinav

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jason Kytros

    (@jasonkytros)

    Hey @avinavkapur,

    Thanks for reaching out!

    To customize the default validation notice we recommend configuring the Custom Notice field: https://cl.ly/664fababc6e9.

    Could you please try this and let us know how it goes?

    Cheers,
    Jason Kytros
    Support Engineer

    SomewhereWarm SMPC
    https://somewherewarm.gr/

    Thread Starter avinavkapur

    (@avinavkapur)

    Thanks @jasonkytros. I tried it, and it works really well. Also, it would be great if I could add a link to a product in the customer message (Eg. Click here), and it takes the person to recommended page/prodcut.

    If I could ask you another question: My website is an ecommerce store, where I sell products from various brick and mortar stores.

    Here’s the requirement:
    Customer MUST choose a store first, and then they should see/buy items from only from that store. If somehow they add an item from another store, their cart would need to cleared, and then they can buy items from another stores only. To mix and match items from two or more stores, we need to charge a separate service fee.

    Could you recommend something for to implement this ? If not, then how can I make sure if a customer adds two distinct products in their cart, then they can buy ONLY either of them in a single order ?

    Plugin Author Jason Kytros

    (@jasonkytros)

    Hey @avinavkapur,

    Glad that you found our suggestion useful!

    It is definitely possible to add a hyperlink in the custom notice by using HTML markup — here’s an example: https://cl.ly/884b1c62bed7.

    Customer MUST choose a store first, and then they should see/buy items from only from that store. If somehow they add an item from another store, their cart would need to cleared, and then they can buy items from another stores only. To mix and match items from two or more stores, we need to charge a separate service fee.

    Are you using a single domain for this or multiple?

    We don’t know of any plugin that offers this kind of functionality — it is a good idea to reach out to the WooCommerce Pre-Sales team in case they have any suggestions.

    If there isn’t any plugin that offers this kind of functionality out of the box, then you might need to consider implementing a custom coded solution for your case. For WordPress/WooCommerce customizations, we highly recommend https://codeable.io/.

    Cheers,
    Jason Kytros
    Support Engineer

    SomewhereWarm SMPC
    https://somewherewarm.gr/

    Thread Starter avinavkapur

    (@avinavkapur)

    Thanks Jason.

    Is it possible to make two products mutually exclusive —- only either of them can be added to the cart in a single order (not both) ?

    Plugin Author Jason Kytros

    (@jasonkytros)

    Hey @avinavkapur,

    Thanks for the follow-up!

    Product Dependencies allows you to add a specific product to the cart if another product is added to the cart first. It doesn’t include any options to prevent a specific product from being added to the cart when another product is added there.

    To achieve the result you have in mind it is necessary to write some custom code — there are a few guides online such as this one: https://aelia.co/woocommerce-only-allow-specific-product-combinations-in-cart/ to help you get started.

    Cheers,
    Jason Kytros
    Support Engineer

    SomewhereWarm SMPC
    https://somewherewarm.gr/

    Thread Starter avinavkapur

    (@avinavkapur)

    Thanks Jason. Would it be possible to add the product dependency rule to all the products at once, without having to click on each product and updating the settings ?

    Plugin Author Jason Kytros

    (@jasonkytros)

    Hey @avinavkapur,

    Product Dependencies does not include any options for bulk adding dependencies to multiple products at once.

    If you are familiar with writing custom code you could write a script to automatically update the _tied_products meta in all products in your store. Alternatively, it is a good idea to hire a Developer to help you further with this!

    Cheers,
    Jason Kytros
    Support Engineer

    SomewhereWarm SMPC
    https://somewherewarm.gr/

    I am sorry to join into this thread.

    @jasonkytros , may I know, how to customize the notice with a hyperlink dynamically via slug? What I mean is, I don’t need to insert full HTML hyperlink, but just *something* via slug of product.

    Is that possible?

    Thank you.

    Plugin Author Jason Kytros

    (@jasonkytros)

    Hey @kardjo,

    Thanks for getting in touch!

    It is definitely possible to add dynamic content to the Custom Notice field by writing a custom snippet that filters the _dependency_notice meta.

    If you need further assistance with this, then I suggest hiring an experienced WooCommerce developer. Our top recommendation for projects like this one is https://codeable.io/.

    Let us know how this goes!

    Cheers,
    Jason Kytros
    Support Engineer | SomewhereWarm SMPC | https://somewherewarm.com/

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Custom Notice product Dependency’ is closed to new replies.