Post by mortalwombat » Fri Nov 13, 2009 2:28 pm

I am worried this might become quite complicated, but here goes...

The products my client sells will only be available in set qtys, such as 1,000 2,500 or 10,000. Because of this, I set the qty fields to hidden with a value of 1. Then I created a selectable option for the qty. That all works so far, but I am running into issues with this showing up on the invoice.

By default it will say "1X product name $XXX" Basically I need it to display one or all the options for the product. How can that be added to the invoice?

Newbie

Posts

Joined
Sun Oct 04, 2009 4:23 pm

Post by Daniel » Fri Nov 13, 2009 7:27 pm

you need to alter the html to have select menu with your required quantities.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Qphoria » Fri Nov 13, 2009 7:43 pm

Correct. In the product.tpl file change:

Code: Select all

<input type="text" name="quantity" size="3" value="1" />
to:

Code: Select all

<select name="quantity">
<option value="1000">1000</option>
<option value="2500">2500</option>
<option value="10000">10000</option>
</select>

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by mortalwombat » Thu Nov 19, 2009 1:26 pm

I think I need to reprhase my question, (although that does help answer a different question I have, so thanks for that :)

My question is how to edit the confirmation email that the customer receives after placing an email. I need to change it to not show the quantity, but instead show some of the options selected on the product.

I am hard coding the quantity field to 1, then setting an option for quantities. The reason I am doing this is Product A may have different quantities available than product B. By setting the quantity as options in the admin panel, you can specify quantities for each individual products.

The thing is, I don't want the customers to see the 1 in the existing quantity field, but instead see the quantity option that they selected. Does that make sense?

Newbie

Posts

Joined
Sun Oct 04, 2009 4:23 pm

Post by Qphoria » Thu Nov 19, 2009 2:14 pm

Yes.

First you need my Enhanced Order Email addon. But I have to first update it to be compatible with v1.3.4
Then you will need to edit out the quantity part.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by mortalwombat » Fri Nov 20, 2009 8:03 am

What is your projected timeline on updating the addon?

Newbie

Posts

Joined
Sun Oct 04, 2009 4:23 pm

Post by Qphoria » Fri Nov 20, 2009 8:25 am

hopefully today or tomorrow

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by mortalwombat » Fri Nov 20, 2009 8:44 am

Awesome. That would be a great help. Is this one of the modules listed in the contributions page on here? be sure to let me know when it's uploaded and I will be all over it.

Thanks a million!

Newbie

Posts

Joined
Sun Oct 04, 2009 4:23 pm

Post by mortalwombat » Tue Nov 24, 2009 12:15 am

Qphoria wrote:hopefully today or tomorrow
Did you get the addon updated yet?

Newbie

Posts

Joined
Sun Oct 04, 2009 4:23 pm

User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by mortalwombat » Thu Nov 26, 2009 11:49 am

that worked great! thanks!

Newbie

Posts

Joined
Sun Oct 04, 2009 4:23 pm
Who is online

Users browsing this forum: No registered users and 6 guests