Support » Plugin: WooCommerce » How to add Hourly Rate as Products

  • I’m really getting lost so hoping someone can help me out and point in the right direction.

    I want to add products on the same page which are essentially variations of the same product ‘type’, being an hourly rate.

    So this is a Consultancy Product that someone orders online and pays upfront for the booking.

    – 30 minutes FREE
    – 1 Hour $xx (example $100)
    – 2 Hours $xx (lower hourly rate than just 1 hour. example $180)

    I just don’t seem to be able to figure out the right way.
    Anyone able to help please?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Don’t think of it as an hourly rate. Think of it as an individual item.
    set your attribute as “booking length”, and then label them as you listed above, then in the variations, set the final price as you listed (free/100/180).
    To avoid confusion, limit the quantity on this item to 1 (or hide the quantity via css).

    cool – I can get them in the drop-down menu now.

    But I’m not seeing any Add to Cart button under the dropdown – any ideas why that might be?

    the add to cart button will be hidden until you choose a variation
    if your variations don’t have prices set, or don’t have the attribute set, then the add to cart won’t appear.

    Well, that’s the thing. As far as I can see that’s exactly how I’ve set it up. See:

    Here’s the screenshot of the Attribute panel:

    Here’s the overview of the Variations:

    And here’s the detail of each variation:

    Can you see from these what I’m doing incorrectly?
    Your help is really appreciated too – thank you

    idunno, man. I replicated your product on one of my sandbox sites, and it works just fine

    Maybe try creating it again from scratch? or even just try creating a dummy variation product (but just preview without publishing)

    It could be some other javascript on the page that’s throwing an error preventing the js that handles the “add to cart” reveal from firing.

    Hey, thanks heaps for the help for far @bheadrick – great stuff, my friend.
    I’ll try what you say and see what’s what from there 🙂

    Sadly, still not working and this is a premium themem called Mingle.

    The developer’s support had a quick look on a Sandbox with just Mingle and Woocommerce installed.

    They have this to say so far:

    My initial thoughts are (a) that there is a conflict between something in the the WooCommerce “add-to-cart-variation.min.js” script and some other jQuery code that is being used by the Mingle theme, and (b) this issue appears to manifest itself with quite a lot of themes, including some that have been specifically designed to work with WooCommerce. There are no errors being generated that I can see, and it appears that some WooCommerce trigger code stops working with some themes and plugins.

    Not too sure where to go from here.
    Any ideas?

    Well, if you want to email me the theme you’re using, I can dissect the jquery in use and either modify the section that handles the variation stuff or identify the problem, and in either case, I’d log a bug on github with my findings. If it happens with a lot of themes, they might make an effort to put the fix into the next release.

    I’ve dug through the wc jquery quite a bit already, and I’ve used some of the triggers in my customizations.

    Bryan, that would be freaking awesome, mate.
    I’ll lob the Dropbox file share details into your site’s contact page if that works?

    There’s certainly something screwy since this affects lots of themes.
    Thanks heaps again

    sent via Contact Page – hope it comes through OK, with your site’s capitalisation in that contact form.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘How to add Hourly Rate as Products’ is closed to new replies.