Payment details page ("Finish" Page) after purchase

Permalink Browser Info Environment
Hello!

Well I just completed the first test purchase and I could not be happier right now after my struggles with PayPal.

I do have one question though.

On the bottom of the "Finish" Page, it shows:

ID Name Price Quantity Options

Now...after "Name" I was able to insert the "Product Type" (i.e., Original, 5"x7" Print, etc) in the shopping cart, and I would also like it to show on this Finish page. Do you know how I can make this happen, or do I need to post this in the eCommerce section?

Thank you so much!
-concreteart

Type: Discussion
Status: New
concreteart
View Replies:
mesuva replied on at Permalink Reply
mesuva
Hi concreteart,

glad to here you are happy with the purchase, thanks for the buy!

Your question is really just to do with eCommerce itself, but I'm happy to give it some thought.

The details on the finish page are pulled in from an element file in the package.
It's:
/packages/core_commerce/elements/orders/detail.php

This is currently set up to show:
- The product name
- All _configurable_ attributes for the product selected. So this is going to show things where the customer has picked something (like a checkbox or a select dropdown that changes the price), but not simple product attributes. I'm assuming here that you've just used a text custom attribute to store the 'product type' info.

So to make any changes to this, you'd need to first override this element file, so copy it to /elements/orders/detail.php
Then in that file you could add in somewhere between lines 107 and 125 (the loop that outputs the products):
<?php echo $op->getProductObject()->getAttribute('handleofattribute' , true); ?>

(change handleofattribute to whatever you have called your custom attribute)

You could for example change line 110 to:
<td><?php echo $op->getProductName()?><br /><?php echo $op->getProductObject()->getAttribute('handleofattribute' , true); ?></td>

to simply add in that attribute under the product name, I'm imagining that's what you are wanting to do.

Is that what you are after or have I misunderstood what you are wanting to do?

Cheers
-Ryan
concreteart replied on at Permalink Reply
concreteart
Hi Ryan,

That is exactly what I want to do so thank you! I will give it a shot!

Sorry for posting this in the wrong place...
mesuva replied on at Permalink Reply
mesuva
No worries at all - if you had posted it on the main forums I probably would have had a crack at answering it anyway!

If you have the chance, it would be great if you could post a very quick review against the add-on, just to give it a bit more cred. :-)
concreteart replied on at Permalink Reply
concreteart
Ryan,

I went ahead and found:

<td><?php echo $op->getProductName()?></td>


and changed it to:

<td><?php echo $op->getProductName()?> - <?php echo $op->getProductObject()->getAttribute('type') ?></td>


Do you think I need to add the ", true" at the end of it?

And it works! Thank you.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.