WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
How to add Hourly Rate as Products (12 posts)

  1. Martin
    Member
    Posted 1 year ago #

    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.

    Product:
    - 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?

    http://wordpress.org/extend/plugins/woocommerce/

  2. bheadrick
    Member
    Posted 1 year ago #

    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).

  3. Martin
    Member
    Posted 1 year ago #

    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?

  4. bheadrick
    Member
    Posted 1 year ago #

    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.

  5. Martin
    Member
    Posted 1 year ago #

    Well, that's the thing. As far as I can see that's exactly how I've set it up. See:
    http://www.geekandjock.com/the-geekandjock-shop/coaching-and-consultancy

    Here's the screenshot of the Attribute panel:
    http://s904.beta.photobucket.com/user/Rastarr/media/Snapbucket/Screenshots/attribute.jpg.html

    Here's the overview of the Variations:
    http://s904.beta.photobucket.com/user/Rastarr/media/Snapbucket/Screenshots/variationlist-1.jpg.html

    And here's the detail of each variation:
    http://s904.beta.photobucket.com/user/Rastarr/media/Snapbucket/Screenshots/variationdetail.jpg.html

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

  6. bheadrick
    Member
    Posted 1 year ago #

    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.

  7. Martin
    Member
    Posted 1 year ago #

    Bugger!
    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 :)

  8. Martin
    Member
    Posted 1 year ago #

    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?

  9. bheadrick
    Member
    Posted 1 year ago #

    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.

  10. bheadrick
    Member
    Posted 1 year ago #

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

  11. Martin
    Member
    Posted 1 year ago #

    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
    Martin

  12. Martin
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.