close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How to add options to order_Detail.php?

Thread began 4/25/2010 10:16 pm by ssquier_98210504 | Last modified 7/07/2010 3:55 pm by Eric Mittman | 2733 views | 20 replies |

ssquier_98210504

How to add options to order_Detail.php?

How would I display the options selected (2 colors my this case)? This would be essential for order fulfillment.

Sign in to reply to this post

Eric Mittman

You should be able to see these options in the admin back end when viewing the details of the order. Do you have options listed as blank? If you take a look in the order details database do you see the options listed here in the details name?

Sign in to reply to this post

avatar8390144

Order Details page Options missing

I too am having this issue. There's no listing of the options selected with the product at purchase. I've checked the orderdetails table in the DB, and there is no Options column, nor are the option names appended to the DetailName column. Is that the expected behavior?

My fear is that is necessary to change every option's Name on the Update Product page. In our case, this would be catastrophic, as we have products with up to 4 different options, each with up to 8 choices. The exponential number of individual product names we would have to update is staggering.

The ideal behavior would just be to list the selected options in the order details page. Hopefully that is achievable.

Here's a link to an representative item on the site:
Products_Detail.php?ProductID=363

Sign in to reply to this post

Eric Mittman

Looking into this further I can see that there is a problem with the options being listed when viewing the orders. My apologies for the misinformation, it seems that I have the fix in effect already.

The fix involves adjusting the confirm and pp_confirm pages. In the store order details server behaviors in these pages the item name field must be updated. I'm including the updated versions of these pages for you. Make sure to backup your current pages before making use of the new ones, but they should allow the options to show in the orders area.

It will not update any existing orders though, only new orders will have the options listed.

Attached Files
files.zip
Sign in to reply to this post

avatar8390144

Worked great.

Thanks. Those files worked like a charm.

I did notice on my test purchase that the confirmation email didn't list any of the options selected. I know that customers would like to see a cofirmation of the options they selected. Is that possible?

Thanks again for the quick fix.

Sign in to reply to this post

Eric Mittman

I think the options should be included in the receipt email, you can update the receipt email page though to see if this helps. Go to WA_Universal_Email > Templates > receipt.php, back this file up as a copy first. Now update line 35 from this:

php:
<td><strong style="font-size:16px"><?php echo $WA_Store_Cart->DisplayInfo("Name"); ?></strong><br />



To this:

php:
<td><strong style="font-size:16px"><?php echo "".$WA_Store_Cart->DisplayInfo("Name").(((strpos($WA_Store_Cart->DisplayInfo("Description"), "--")) !== false)?strip_tags(substr(nl2br($WA_Store_Cart->DisplayInfo("Description")),strpos($WA_Store_Cart->DisplayInfo("Description"),"--"))):"")  .""?></strong><br />



This is the same code that was updated to get the options to be stored for the order, give this a try and let us know how it goes for you.

Sign in to reply to this post

DAOS

My emailed customer receipts and customer order history details still DO NOT show the options. I copied and pasted the new code as you indicated - is there something else I am forgetting?

Thanks

Sign in to reply to this post

Eric Mittman

From my checking and testing it should be showing you the details. Can you post back with a screen shot of the email message you are getting and let us know what the selected options were, or better yet, what value is held in the db in the order details table for the name on that order. This would be the best thing to see and compare. If there is not something that I can easily spot I will open a ticket for you.

Sign in to reply to this post

DAOS

In the OrderDetails table, under Detail name, it is showing all the options along with the product name (since I changed the code)

The options show up on the website receipt (and always have, I think) But the option info is not showing up in the emailed receipt to the client, or in the client order history.

Thanks for your FAST reply.

Sign in to reply to this post

Eric Mittman

You are working with PowerStore 3 correct? If so you should update the receipt email templates as follows.

In WA_Universal_Email > Templates > receipt.php update the code that is on line 36 to be like this:

php:
<?php if(strpos($WA_Store_Cart->DisplayInfo("Description"),"--") !== false) { ?>
              <?php echo substr(str_replace(",\r\n","<br>",$WA_Store_Cart->DisplayInfo("Description")), strpos($WA_Store_Cart->DisplayInfo("Description"), "--")); ?>
              <?php } else { ?>
              <?php echo str_replace(",\r\n","<br>",$WA_Store_Cart->DisplayInfo("Description")); ?>
              <?php ?>



In WA_Universal_Email > Templates > pp_receipt.php update the code that is on line 41 to be like this:

php:
<?php if(strpos($WA_Store_Cart->DisplayInfo("Description"),"--") !== false) { ?>
              <?php echo substr(str_replace(",\r\n","<br>",$WA_Store_Cart->DisplayInfo("Description")), strpos($WA_Store_Cart->DisplayInfo("Description"), "--")); ?>
              <?php } else { ?>
              <?php echo str_replace(",\r\n","<br>",$WA_Store_Cart->DisplayInfo("Description")); ?>
              <?php ?>



Please give this a try and let us know if it works out for you, if so we should be able to do a similar thing for the order history.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...