Post by marvmen21 » Sat Dec 03, 2011 10:53 pm

I am really busy right now to give free support, but it´s something simple, just check the code that is being inserted to the admin=>controller files.
;)
Amy078 wrote:Hi!

Thank you for this great mod. I want to add an extra field to my registration form but I don't want the field to be required. I managed to remove the validation from the registration page so a customer can register without entering anything into the new field. However if I log in as a Administrator and go to edit a customer, save changes I get a validation error for that new field (it's empty most of the times anyway). I just cant figure it out how to fix it. Could you please give me some directions how to do it? What part of the code needs to be edited to remove the validation of the new field in the admin area (customer edit page)?

Thanks.

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by i2020vision » Wed Dec 07, 2011 10:16 pm

i2020vision wrote:Great extension but I'm having trouble moving it from (checkout) register.tpl to shipping.tpl (trying to turn it into a store picker for store pickup). I try to move it before/after "comments" but then the continue button doesn't work after the registration section of the checkout.

Any ideas?
I've moved it from the register.tpl to shipping.tpl but the continue button doesn't do anything in the register section. I'm guessing that it's trying to validate the field at that step. Help!

New member

Posts

Joined
Fri Nov 18, 2011 12:19 am

Post by marvmen21 » Thu Dec 08, 2011 9:41 pm

i2020vision wrote:
i2020vision wrote:Great extension but I'm having trouble moving it from (checkout) register.tpl to shipping.tpl (trying to turn it into a store picker for store pickup). I try to move it before/after "comments" but then the continue button doesn't work after the registration section of the checkout.

Any ideas?
I've moved it from the register.tpl to shipping.tpl but the continue button doesn't do anything in the register section. I'm guessing that it's trying to validate the field at that step. Help!
So what exactly are you adding? A text field or kind of a drop down so Cust choose "Store Pick up"?, I haven't tried that myself, If you want, please send me the vqmod so I can check what's going wrong. Email me to: dev at technopolaris.com

Best Regards,

marvmen21

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by i2020vision » Thu Dec 08, 2011 10:01 pm

I've made it radio buttons. It works very well, except I can't move it! I've sent the vqmod but with it being in the register.tpl.

I really appreciate the help.

New member

Posts

Joined
Fri Nov 18, 2011 12:19 am

Post by ziiljuks » Sat Dec 10, 2011 3:37 am

Everything works well with registration and guest checkout. I added field in DB for "customer" and "order" (for guest checkout). Information is getting saved in DB but I don't know how to get it out for "route=sale/order/info" (order info). With this mod I can get for customer info but for order not.

I edited
admin\view\template\sale\order_info.tpl
added:

Code: Select all

<tr>
<td><?php echo $text_height; ?></td>
<td><?php echo $height; ?></td>
</tr>
it shows up in admin panel, and I edited language file.

What should I need to add for:
admin\controller\sale\order.php
and
admin\model\sale\order.php
information is about guest checkout customer, not payment of shipping.

P.S. Thanks for this mod, helped a lot!

Newbie

Posts

Joined
Thu Dec 08, 2011 6:53 am

Post by marvmen21 » Sat Dec 10, 2011 3:49 am

ziiljuks wrote:Everything works well with registration and guest checkout. I added field in DB for "customer" and "order" (for guest checkout). Information is getting saved in DB but I don't know how to get it out for "route=sale/order/info" (order info). With this mod I can get for customer info but for order not.

I edited
admin\view\template\sale\order_info.tpl
added:

Code: Select all

<tr>
<td><?php echo $text_height; ?></td>
<td><?php echo $height; ?></td>
</tr>
it shows up in admin panel, and I edited language file.

What should I need to add for:
admin\controller\sale\order.php
and
admin\model\sale\order.php
information is about guest checkout customer, not payment of shipping.


P.S. Thanks for this mod, helped a lot!
Check if you need to edit something in sytem/library

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by ziiljuks » Sat Dec 10, 2011 5:58 am

Do you mean something in system/library/customer.php file? I can find only with registration related code.

Tried to find a solution but still can't.
Only found this:
in admin/controller/sale/order.php file there is

Code: Select all

public function info() {
...
if I add

Code: Select all

$this->data['text_height'] = $this->language->get('text_height');
text shows up in admin panel
And a little bit lower if I add

Code: Select all

$this->data['height'] = $order_info['height'];
nothing shows up but if I change $order_info['height'] for something else, for example $order_info['ip'] (or anything else that was from clean OC install) it shows up in admin panel (<?php echo $height; ?>)

So, what is missing for my "height" that isn't for "ip"?

Newbie

Posts

Joined
Thu Dec 08, 2011 6:53 am

Post by marvmen21 » Sat Dec 10, 2011 6:30 am

Yeah, but that was only a guess, I haven't even looked at the code in order files. Look for a similar field in the order files, and try to duplicate and edit it with your own code.

Most probably is that you haven't edited properly the queries in the model files and that's why it's not pulling the info. What you could do is to check the vqmod cache files to see how your code is being inserted.

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by ziiljuks » Sat Dec 10, 2011 9:08 pm

Found that was missing:
in admin/model/sale/order.php
around line 233

Code: Select all

return array(
after I added

Code: Select all

'height'                     => $order_query->row['height'],
now it shows up.

Newbie

Posts

Joined
Thu Dec 08, 2011 6:53 am

Post by marvmen21 » Sat Dec 10, 2011 10:41 pm

ziiljuks wrote:
now it shows up.
Glad you sorted it out.

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by SVN » Wed Dec 14, 2011 6:38 am

Do I need to make changes to the DB if I'm using this vQmod ?

Thx for answering...

User avatar
SVN
Active Member

Posts

Joined
Mon Jan 03, 2011 11:59 pm

Post by marvmen21 » Wed Dec 14, 2011 7:09 am

SVN wrote:Do I need to make changes to the DB if I'm using this vQmod ?

Thx for answering...
Yes, you have to add your new field to the cust database. You can add one called "cedu" so you you don't have to make any change in the xml, or you could add your custom one and the change all references of "cedu" to your custom field's name. Be careful if you do a global search and replace cuz remember "cedu" is not the same as "Cedu" ;)

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by jimaras » Thu Dec 15, 2011 2:39 am

Nice mod.
Work with 1.5.1.3 properly ?

http://e-kreopoleio.com/


Active Member

Posts

Joined
Thu Sep 15, 2011 1:45 am

Post by marvmen21 » Thu Dec 15, 2011 2:43 am

jimaras wrote:Nice mod.
Work with 1.5.1.3 properly ?
Yeah, working flawlessly. Download the latest version. [1.1]

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by jimaras » Thu Dec 15, 2011 4:09 am

marvmen21 wrote:
jimaras wrote:Nice mod.
Work with 1.5.1.3 properly ?
Yeah, working flawlessly. Download the latest version. [1.1]
Do you mean 1.0.4 for 1.5.1.3?

http://e-kreopoleio.com/


Active Member

Posts

Joined
Thu Sep 15, 2011 1:45 am

Post by marvmen21 » Thu Dec 15, 2011 4:30 am

jimaras wrote:
marvmen21 wrote:
jimaras wrote:Nice mod.
Work with 1.5.1.3 properly ?
Yeah, working flawlessly. Download the latest version. [1.1]
Do you mean 1.0.4 for 1.5.1.3?
That one works ok, but if you want to include the affiliate registration, you should download this one: http://forum.opencart.com/viewtopic.php ... 40#p205466

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by jimaras » Thu Dec 15, 2011 5:52 am

Very good.
I want to add the field after address_1 with a title "floor".
What i should change?

http://e-kreopoleio.com/


Active Member

Posts

Joined
Thu Sep 15, 2011 1:45 am

Post by marvmen21 » Thu Dec 15, 2011 6:17 am

jimaras wrote:Very good.
I want to add the field after address_1 with a title "floor".
What i should change?
For the position, Look for the code that is searching and modifying the front-end and back-end .tpl files. and for the name, you have to edit what is being added to the both the admin and catalog language files.

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am

Post by i2020vision » Thu Dec 15, 2011 11:06 pm

marvmen21 wrote:
i2020vision wrote:
i2020vision wrote:Great extension but I'm having trouble moving it from (checkout) register.tpl to shipping.tpl (trying to turn it into a store picker for store pickup). I try to move it before/after "comments" but then the continue button doesn't work after the registration section of the checkout.

Any ideas?
I've moved it from the register.tpl to shipping.tpl but the continue button doesn't do anything in the register section. I'm guessing that it's trying to validate the field at that step. Help!
So what exactly are you adding? A text field or kind of a drop down so Cust choose "Store Pick up"?, I haven't tried that myself, If you want, please send me the vqmod so I can check what's going wrong. Email me to: dev at technopolaris.com

Best Regards,

marvmen21
Still no luck, I can get to the register screen but the continue button doesn't seem to work. Here is what I've changed:

Code: Select all

<file name="catalog/view/theme/i2020/template/checkout/shipping.tpl">
<operation><search position="before"><![CDATA[
  <b><?php echo $text_comments; ?></b>

New member

Posts

Joined
Fri Nov 18, 2011 12:19 am

Post by marvmen21 » Fri Dec 16, 2011 1:17 am

Do you have a link to your website so I can see what you're trying to do? I tried the vqmod you sent me by email, but it did not work in my test site.

You want to thank me for my time! :) Click here to donate


Active Member

Posts

Joined
Tue Nov 09, 2010 4:54 am
Who is online

Users browsing this forum: No registered users and 8 guests