Post by CJC » Sat Jul 22, 2023 1:19 am

Hi All,
I have a photographer client who would like to sell his work. The goal is to have a 'product' (photo) and someone would be able to: a) purchase a print in 1 of 2 sizes, and b) purchase a digital file of the photo. They could order a, or b, or a + b. Would that be possible all from the same product?
Thanks

CJC
Active Member

Posts

Joined
Wed Jun 03, 2020 5:51 am

Post by SohBH » Sat Jul 22, 2023 4:54 pm

For web hosting: you can add all product options a, b, a+b.
For file hosting service: you can send large file to customer email.

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 CJC » Tue Jul 25, 2023 1:10 am

SohBH wrote:
Sat Jul 22, 2023 4:54 pm
For web hosting: you can add all product options a, b, a+b.
For file hosting service: you can send large file to customer email.
So doing it this way, there would be no way to have the customer directly download the file after payment?

CJC
Active Member

Posts

Joined
Wed Jun 03, 2020 5:51 am

Post by SohBH » Tue Jul 25, 2023 3:57 pm

An easier way is to separate each product
model
Check if customer purchased downloadable product

controller checkout success
Redirect the customer to download the digital file

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 » Tue Jul 25, 2023 10:00 pm

CJC wrote:
Sat Jul 22, 2023 1:19 am
I have a photographer client who would like to sell his work. The goal is to have a 'product' (photo) and someone would be able to: a) purchase a print in 1 of 2 sizes, and b) purchase a digital file of the photo. They could order a, or b, or a + b. Would that be possible all from the same product?
It could be a product with 2 options and the download could be available whichever was purchased.

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 CJC » Thu Jul 27, 2023 4:20 am

paulfeakins wrote:
Tue Jul 25, 2023 10:00 pm
CJC wrote:
Sat Jul 22, 2023 1:19 am
I have a photographer client who would like to sell his work. The goal is to have a 'product' (photo) and someone would be able to: a) purchase a print in 1 of 2 sizes, and b) purchase a digital file of the photo. They could order a, or b, or a + b. Would that be possible all from the same product?
It could be a product with 2 options and the download could be available whichever was purchased.
Hi Paul,
I'm not sure I understand exactly. Say a have Photo XYZ as a product. I create an option called Print Size and configure it as a checkbox with 2 entries (5x7 and 8x10). But where does the download option come into play? I know I can add a downloadable file link on the Links tab, but then that would always apply to the product.

CJC
Active Member

Posts

Joined
Wed Jun 03, 2020 5:51 am

Post by paulfeakins » Mon Jul 31, 2023 8:04 pm

CJC wrote:
Thu Jul 27, 2023 4:20 am
I create an option called Print Size and configure it as a checkbox with 2 entries (5x7 and 8x10).
Correct.

CJC wrote:
Thu Jul 27, 2023 4:20 am
But where does the download option come into play? I know I can add a downloadable file link on the Links tab, but then that would always apply to the product.
I believe you can add a download to a product? There's a "downloadable" option somewhere in the product edit?

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 CJC » Tue Aug 01, 2023 4:31 am

paulfeakins wrote:
Mon Jul 31, 2023 8:04 pm
CJC wrote:
Thu Jul 27, 2023 4:20 am
I create an option called Print Size and configure it as a checkbox with 2 entries (5x7 and 8x10).
Correct.

CJC wrote:
Thu Jul 27, 2023 4:20 am
But where does the download option come into play? I know I can add a downloadable file link on the Links tab, but then that would always apply to the product.
I believe you can add a download to a product? There's a "downloadable" option somewhere in the product edit?
Yes, the "Downloads" field is under the Links tab. The problem is that if the download is always a part of the product. That means if someone orders a 5x7 print, they will get the option to download a file as well. I'm trying to figure out a way to make the 3 things (5x7, 8x10, and downloadable file) all separate options for the same product.

CJC
Active Member

Posts

Joined
Wed Jun 03, 2020 5:51 am

Post by JNeuhoff » Tue Aug 01, 2023 4:58 pm

CJC wrote:
Tue Aug 01, 2023 4:31 am
Yes, the "Downloads" field is under the Links tab. The problem is that if the download is always a part of the product. That means if someone orders a 5x7 print, they will get the option to download a file as well. I'm trying to figure out a way to make the 3 things (5x7, 8x10, and downloadable file) all separate options for the same product.
So you are looking for option-specific downloads? We did something like that in the past, see for example this one here. I just haven't had a chance yet to port it to OpenCart 3 and 4.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by CJC » Tue Aug 01, 2023 9:18 pm

JNeuhoff wrote:
Tue Aug 01, 2023 4:58 pm
CJC wrote:
Tue Aug 01, 2023 4:31 am
Yes, the "Downloads" field is under the Links tab. The problem is that if the download is always a part of the product. That means if someone orders a 5x7 print, they will get the option to download a file as well. I'm trying to figure out a way to make the 3 things (5x7, 8x10, and downloadable file) all separate options for the same product.
So you are looking for option-specific downloads? We did something like that in the past, see for example this one here. I just haven't had a chance yet to port it to OpenCart 3 and 4.
I don't know if I'd consider it option specific downloads, but more of a download as a product option. Maybe this is a better example: the product is a software application. The customer can purchase a CD, a USB drive, or a download of the app. The first 2 options obviously require shipping, but the download option should be available as soon as payment is made.

CJC
Active Member

Posts

Joined
Wed Jun 03, 2020 5:51 am

Post by SohBH » Wed Aug 02, 2023 9:04 pm

Can be done as custom work:
1. add a new column download_link to the oc_product table
2. if product option contains "digital" word
3. Modify the checkout success view to display the download link

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 straightlight » Wed Aug 02, 2023 9:24 pm

SohBH wrote:
Wed Aug 02, 2023 9:04 pm
Can be done as custom work:
1. add a new column download_link to the oc_product table
2. if product option contains "digital" word
3. Modify the checkout success view to display the download link
Please take note that adding extension fields on core tables could affect the upgrades.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by CJC » Wed Aug 02, 2023 9:29 pm

SohBH wrote:
Wed Aug 02, 2023 9:04 pm
Can be done as custom work:
1. add a new column download_link to the oc_product table
2. if product option contains "digital" word
3. Modify the checkout success view to display the download link
Thank you. I'll see if I can implement that.

CJC
Active Member

Posts

Joined
Wed Jun 03, 2020 5:51 am
Who is online

Users browsing this forum: No registered users and 8 guests