Post by MrConn » Tue Nov 09, 2010 7:39 pm

Hi,
I'm currently working on a mod that let you specify what zones to sell specified products...
It works fine, but for now I have to manually enter the zone id, something that can be difficult to remember :P

So I have been trying to get the Country/Zone-select to appear on admin/view/template/catalog/product_form.tpl, but I must be doing something wrong... :-(

Can anyone help me?

Image
Nemmelig.no - Billige Gadgets!


Active Member

Posts

Joined
Tue Mar 23, 2010 8:08 am

Post by MrConn » Wed Nov 10, 2010 1:35 am

Anyone?

Image
Nemmelig.no - Billige Gadgets!


Active Member

Posts

Joined
Tue Mar 23, 2010 8:08 am

Post by Qphoria » Wed Nov 10, 2010 3:26 am

The only advice would be to check out how the existing pages do it.

There is a zone callback function in the main controller of those pages so copy that to your controller
Then there is an onchange event to the country and the callback load to the id="zone" div.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by MrConn » Wed Nov 10, 2010 3:51 am

Got it! Was going blind on a typo ::)

Image
Nemmelig.no - Billige Gadgets!


Active Member

Posts

Joined
Tue Mar 23, 2010 8:08 am
Who is online

Users browsing this forum: Bing [Bot] and 18 guests