Post by Majnoon » Tue Aug 22, 2023 2:17 pm

Hello Everyone,
I'm working with OpenCart 3.0.3.8, using the default theme, without any additional addons and I have a unique scenario that I'm trying to address. I have a product with three options, and I'd like to tie a recurring profile to a specific option, hiding it when other options are selected.

Here's the example:
Product: Monthly Magazine Subscription
Original Price: $10
Options:
Digital Copy: $8 per month
Printed Copy: $12 per month
I want to attach a recurring profile to this option
Both Digital and Printed Copy: $18 per month
I want to attach a recurring profile to this option as well
I would like the recurring profile to only be available for the "Printed Copy" and "Both Digital and Printed Copy" options. When a user selects the "Digital Copy" option, the recurring profile should be hidden.
could someone provide guidance on how to do this? Any pointers or guidance would be greatly appreciated.

Thank you in advance for your support!

Active Member

Posts

Joined
Fri Feb 05, 2021 8:29 pm

Post by SohBH » Thu Aug 24, 2023 7:43 pm

Hi,
Recurring profile is attached to a product, but not specific product options.

Add Recurring Profile

Name Digital Copy: $8
Price 8, Duration 1, Frequency Month

Name Printed Copy: $12 per month,
Price 12, Duration 12, Frequency Month

Name Both Digital and Printed Copy: $18 per month
Price 18, Duration 12, Frequency Month

View all extensions | Request custom work | Pricing | Contact Me


User avatar
Active Member

Posts

Joined
Mon Nov 02, 2020 12:01 am
Location - Malaysia

Post by paulfeakins » Thu Aug 24, 2023 10:59 pm

SohBH wrote:
Thu Aug 24, 2023 7:43 pm
Recurring profile is attached to a product, but not specific product options.
So to do exactly what you want you might need some custom development.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by Majnoon » Sat Aug 26, 2023 3:16 pm

SohBH wrote:
Thu Aug 24, 2023 7:43 pm
Hi,
Recurring profile is attached to a product, but not specific product options.

Add Recurring Profile

Name Digital Copy: $8
Price 8, Duration 1, Frequency Month

Name Printed Copy: $12 per month,
Price 12, Duration 12, Frequency Month

Name Both Digital and Printed Copy: $18 per month
Price 18, Duration 12, Frequency Month
Thats correct thats the reason that i am modifying it to be be tie with product options.
So my idea is that in admin UI i will add a column under product optin and then a drop down to retrive the profiles and save it in seprate table. So later on the frontend i will reuse this table to show the recurring profiles with the option value which are tie to it accordinly.

Active Member

Posts

Joined
Fri Feb 05, 2021 8:29 pm

Post by Majnoon » Sat Aug 26, 2023 3:17 pm

paulfeakins wrote:
Thu Aug 24, 2023 10:59 pm
So to do exactly what you want you might need some custom development.
Thanks for your comment and Yeah, i have started it already. Will update time to time

Active Member

Posts

Joined
Fri Feb 05, 2021 8:29 pm

Post by khnaz35 » Sat Aug 26, 2023 4:01 pm

I like the idea of enhancing/tying recurring profile to product options. I will setup a git repository and share the link if anyone else like the idea and want to contribute most welcome.

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by khnaz35 » Tue Aug 29, 2023 6:22 pm

As promise earlier i started a little modification for this https://github.com/Khnaz35/recurring_pr ... ptions.git if anyone is willing to contribute most welcome.
I will work on it time to time

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia
Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 13 guests