[checkout]

wuffles

Joined: 2009-06-09
Posts: 3
Posted: Tue, 2009-06-09 19:56

Hopefully a simple query. The information given in the "Info" column with Checkout Step 1 differs from Checkout Step 2.

Example from Step 1:

Title: The Royal Crescent, Bath
Album: Limited Edition Prints
Summary: 12" Print - Mounted, signed & wrapped

Example from Step 2 (same cart contents):

The_Royal_Crescent.jpg
Limited Edition Prints

Would like to keep the more informative details form Step 1, and I am pretty sure someone else must have wanted the same thing in the past. Which file do I have to edit?

Thanks in advance. Hope this is enough information, first post, so apologies for anything!

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2009-06-10 08:13
 
wuffles

Joined: 2009-06-09
Posts: 3
Posted: Wed, 2009-06-10 08:19

Brilliant. I'll trawl through those and figure it out I'm sure. Was poking around in a tpl file last night, but it didn't seem clear. Obviously the wrong file ;o)

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2009-06-10 08:26

To alter the information in Step 2, you have to change what's written into the database for the order. Get back to me in this thread if it's not clear from the above.

 
wuffles

Joined: 2009-06-09
Posts: 3
Posted: Wed, 2009-06-10 15:35

Just changed it to $txnItem->setItemName($item['fullItemDetails']['title']); and it's given me more or less what I wanted. Just didn't want the filename being published really.

Thanks again.

 
albert.pratama

Joined: 2009-11-13
Posts: 7
Posted: Mon, 2010-04-19 10:55

I did the same:

Quote:
$txnItem->setItemName($item['fullItemDetails']['title']);

But the title is still not shown.

I also didn't get anything when I added:

Quote:
echo '<pre>'; print_r($item); echo '</pre>';

in the confirm.inc.

Any help?
Thanks in advance.

Albert

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2010-04-19 11:01
Quote:
I also didn't get anything when I added:

Quote:
echo '<pre>'; print_r($item); echo '</pre>';
in the confirm.inc.

Are you sure that you're correctly modifying the file you think you're modifying? Try some general print statements; if you add print_r($item) you should expect to see something on the screen.

 
albert.pratama

Joined: 2009-11-13
Posts: 7
Posted: Mon, 2010-04-19 11:07

Now the title is shown.
Apparently we cannot change the code and then refresh the page. We need to add or remove items first, then we see the changes in the Step 2 page.

Thanks anyway.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2010-04-19 11:13

sounds like a cache issue then.