Active
Project:
Hotel Booking System for Ubercart
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Aug 2010 at 15:52 UTC
Updated:
22 Nov 2011 at 14:47 UTC
I've been exercising a couple of ideas and so far everything is working well. The end goal is to set up a directory so that my company, as well as a couple of others in the area, can list properties to rent out.
The issue that I'm running into is that the 'cost' column in the uc_order_products table isn't being added, so the commission isn't being calculated out.
I've tried adding [hotel_room_type] as a product class - which was done manually though the database into the tables uc_product_classes, mp_product_tools and mp_seller_rates and still didn't arrived at the desired results.
My skills are limited in this area, has anyone else tried the same but had luck in calculating the comission?
Comments
Comment #1
larowlanHi Ryan
uc_hotel and uc_marketplace don't play well together for the following and other reasons
*uc_marketplace requires the product to have a record in the uc_product table - much of which makes it into uc_order_products (eg cost)
*uc_marketplace doesn't know about uc_hotel's order/cart item 'data' that is used to calculate the price - it is more for fixed price items where there are no variables to alter the price (eg number of nights etc)
There is a fair bit of customisation needed to make the two work together and to be honest, it would be quicker to write your own version of uc_marketplace just for uc_hotel/multi-hotel support because there are a lot of features in uc_marketplace that aren't needed in a multi-hotel site!
I've got this on my to-do list (multi hotel support) but I don't think I'll have anything tangible available for sometime (next year?)
Lee
Comment #2
larowlanComment #3
coloryan commentedI think that I'm going ahead with this, but I'd like a little input first (as you may have guessed, I able to test but not the most profecient coder). Rather than making changes to Marketplace, would this be able to be either a) a stand alone module or b) a feature of uc_hotel? It's above my skill level to keep updating a code set, so I'd like to have this developed and then 'release it into the wild' in the hopes that others help maintain it.
Comment #4
larowlanHi Ryan
Standalone module is how I've been tackling it. You'll note in the release note for v2 it says something about 'allow other modules to interact' etc
I've got a proof of concept but it's not ready for release.
The plan is to make it available on drupal.org as part of a larger suite of travel modules that are still in progress.
Lee
Comment #5
coloryan commentedWorking on it. Will have an update in a few days.
Comment #6
coloryan commentedI've got an updated file for the uc marketplace module, but it was written as an overwrite. I'm testing today and tomorrow. I'm not able to edit the code (don't possess that skillset), but if anyone would like to check it out just let me know. And if you're able to share any updates, that would also be appreciated!
Comment #7
boreg commentedsubscribing
Comment #8
raul.vadillo commentedsubscribing
Comment #9
mogop commentedsubscribe
Comment #10
vlooivlerke commentedsubscribe, cant wait
Comment #11
drummondf commentedHey all, just wondering if there is an update on this? I would even be interested in a dev version, just something to play with