Odoo - how to customize product attributes by date - odoo-11

I'm trying to figure out if Odoo is suitable for a travel agency
I have a "hotel" article that has some variations:
by type of room (single, double)
and by season (for example from April 1st to March 23rd)
Can Odoo manage this last variant?
How could I do ?

You could manage seasonal prices using pricelist rules if that is what you are looking for.

Related

How to use Delivery Date and Time Slot options in Product Catalog?

I am starting to learn about magento and would like to setup a delivery date and time slot option in the product page.
If I am not wrong but I think I can do so by using product attributes or custom options?
Is there a way I can do validation of the date e.g. Delivery date must be at least 3 days after order?

How can I set up a shopping cart price rule that excludes products with scheduled dates for special price?

I have two types of products:
A product that is on sale all the time and uses the special price field with no scheduled dates.
A product that is scheduled to go on sale once or twice a year using special price field and scheduled to and from dates in the future.
I have a coupon that MUST not be applicable on products whose special price field is active, whether by virtue of today's date falling within the to and from date fields, or by simply having its special price field filled in.
I can easily solve for product 1 - add a condition excluding anything with a special price greater than .01.
BUT that doesn't solve for product 2 - I do not want to exclude product 2 when the dates of the special price on product 2 have not been reached yet or have expired.
I do not want a manual solution (i.e. manually add products to a sale category when on sale, remove when not on sale).
I'm thinking of creating a cron job to make changes on the fly in a semi-auto fashion, but that seems desperate. Is there nothing I can do here to automate this based on special price dates?
You can do that using the Magento Admin.
First in admin go to Catalog -> Attributes -> Manage Attribute -> Look for "special_from_date" and "special_to_date".
Click on it, look for the option "Use for promotion conditions" set "Yes"
Now your special_from and special_to date will show up on your cart promotion rules section.
I'm dealing with exactly the same need.
For now, I'm developing a cron job: it run every day at midnight andupdates the rule end_date with today(). It's hacky, but so far looks promising and it's way easier and more manteinable than messing with mage internals.
Edit: also see here https://magento.stackexchange.com/questions/210006/catalog-price-rules-with-date-as-conditions-cannot-possibly-work-due-to-strtotim

Magento. Add gender and Date of birthday to registration form

I want to put 2 fields on user registration form, /customer/account/create/. Those fields are
gender selection and day of birth.
As I saw magento's customer module already has those 2 attributes, so If I don't mistake, I don't need to mess up with tables.
So how this can be done? Via observers? Or controller rewrite? What is better option?
My Magento is 1.5.
I only have a magento 1.6 version installed and there you have the options at:
Configuration → Customers → Cusotmers Configuration → Name and Address Options
Show Date of Birth
Show Gender

magento custom states for country

Im working on Magento latest version .The store is for UK ,I need to add country like Manchester, London, Yorkshire etc..This should show in the shipping setting when I select UK from the dropdown viz :default is USA and also in the shipping and billing address. And the defaut country should always be UK as default
How can I do that ?
You can change the default country from magento admin->system->configuration->General->country options -> Default Country.
To add regions (counties) for UK I think you have to populate the directory_country_region table.
Take a look at the official UK translation here
I found a post you might appreciate. It concerns the "directory_country_region" tables.
http://www.magentocommerce.com/boards/viewreply/192387/

Dynamic Product Price According to Number of Days Rented using Virtuemart

I am considering using VirtueMart to set up a client with an easy to update e-commerce solution. I am new to VirtueMart, and Joomla, and am really just looking for a quick easy solution to e-commerce, so I thought to check the software out.
Anyhow I have a requirement where the client lists a product for renting purposes, the price to rent varies depending on the number of days the desired product is going to be rented for. Does anybody know of an easy way to implement this using VirtueMart?
yes, virtuemart should be able to do what your looking for. you can set "advanced attributes" for each product/item, and each attribute can have its own price.
So you could have say, an attribute for each rental perio, for example:
Product: "Rental A";
Attribute 1: 1 day - $100;
Attribute 2: 2 days - $190;
Attribute 3: 3 days - $270
...
and so on. There are various in-built ways that you can choose to display this, but I think a dropdown menu is the simplest and cleanest.
Also bear in mind that these are static prices (i.e. need to be manually entered into the system for each product/item) -- so you won't be able to base it on a formula or calculation without some custom coding/hacking...
Hope this helps,
E

Resources