Post by chris.dempsey » Wed Nov 01, 2017 7:40 pm

My OpenCart 2 store allows customers to hire products but default Options are not flexible enough to provide what I need.

Can anyone suggest how the following can be achieved? Open to suitable extensions (haven't found any mysellf) or custom code.

I need the product price to change based on the number of weeks a customer wishes to hire the product.
  • The weekly cost is always £100
    Customers can hire a product for as many weeks as they want
    Customers can hire multiples of the same product at the same time
So if a customer wants 2x products for 3x weeks the price should change to £600.

The current configuration is
  • base price £100
Options
  • Hire term (weeks) - text field
    Hire date (start) - date field
Quantity
Used to set how many products the customer wishes to hire.

Obviously the produt price ignores the value entered in the Hire term (weeks) field in this scenario. How can I fix this?

Thanks,

Chris

New member

Posts

Joined
Wed Apr 04, 2012 6:43 pm

Post by sachin6609 » Wed Nov 01, 2017 9:29 pm

chris.dempsey wrote:
Wed Nov 01, 2017 7:40 pm
My OpenCart 2 store allows customers to hire products but default Options are not flexible enough to provide what I need.

Can anyone suggest how the following can be achieved? Open to suitable extensions (haven't found any mysellf) or custom code.

I need the product price to change based on the number of weeks a customer wishes to hire the product.
  • The weekly cost is always £100
    Customers can hire a product for as many weeks as they want
    Customers can hire multiples of the same product at the same time
So if a customer wants 2x products for 3x weeks the price should change to £600.

The current configuration is
  • base price £100
Options
  • Hire term (weeks) - text field
    Hire date (start) - date field
Quantity
Used to set how many products the customer wishes to hire.

Obviously the produt price ignores the value entered in the Hire term (weeks) field in this scenario. How can I fix this?

Thanks,

Chris
Hii

what is the price per week..???

Thanks

Sachin

Active Member

Posts

Joined
Thu Jul 23, 2015 2:57 pm

Post by chris.dempsey » Wed Nov 01, 2017 9:35 pm

See bullets above:

The weekly cost is always £100

New member

Posts

Joined
Wed Apr 04, 2012 6:43 pm

Post by sachin6609 » Wed Nov 01, 2017 9:43 pm

chris.dempsey wrote:
Wed Nov 01, 2017 9:35 pm
See bullets above:

The weekly cost is always £100
hii

I can Help You may be It Helps You


Go To catalog -> option in admin

Add New Option Name Weeks

Then add the Number of weeks you want in that options like 1 Week , 2 Week etc

Now add the Product with the base price 100

If the customer select the quantity 2 at the add to cart time on product page than it will automatically caluculate the price twice on cart page

So now when you add the product go to option tab add that Number of weeks option

here you can select that all 1 week , 2 week values and here you can mention the + - price as that you want and add the qty here too


Hope it makes some sense

If need any help let me know

All The best

Thanks

Sachin

Active Member

Posts

Joined
Thu Jul 23, 2015 2:57 pm

Post by chris.dempsey » Wed Nov 01, 2017 10:43 pm

Hi Sachin,

Appreciate your answer and you are correct, this would work.

However it means creating tens of options to handle 1 week to 54 weeks and that does not necessarily cover every customer's requirements. Some will hire for more than a year.

Then these options need applied to relevant products - there are dozens. On top of that is the level of manual maintenance if a price changes.

For those reasons I'm hoping to find a programmatic solution ie. an extension or custom code that will look at the base cost + the hire weeks entered to calculate the product price dynamically.

Actually, the Quantity Per Option extension might achieve this:

https://www.opencart.com/index.php?rout ... veopencart

Image

eg. if Size was Weeks and L (large) was Number of weeksit looks like the price would increment by $10 for each week added (to use figures from that screenshot).

I will investigate further.

New member

Posts

Joined
Wed Apr 04, 2012 6:43 pm
Who is online

Users browsing this forum: No registered users and 21 guests