This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Can someone PLEASE give me some pointers on Shipcalc Partners *.inc

For the past 3 months i've been working on building an Ecommerce site for my mum's shop. I've got the design, and my mum has posted about 150 products. We're all set to go - except for a working shipping module. Ecommerce uses the Shipcalc contributed module to apply shipping costs at checkout time and add them to the total. To do this, Shipcalc uses "partners", which are shipping services that are accessed via an *.inc file in the "partners" directory of Shipcalc.

Unfortunately, unless you live in the USA or Canada, there are no "partner" files to be used. I live in Australia, so I need to build an *.inc file that will access the Australia Post Delivery Rate Calculaor API. There was a feature request for Shipcalc filed earlier in the year asking for this *.inc file, but it never got anywhere. My initial efforts to make one are documented at the bottom of that thread ... but I've only started a crash course in PHP a few days ago, so my first attempt was a bit dumb. In any case, I think I'm getting close.

Can someone who is familiar with Ecommerce module, and especially Shipcalc, please take a look at my *.inc file and those previously mentioned threads, and give me some pointers on how to get it working (I'm able to create configuration and product options and save them - basically everything works except the _get_rate function)?

Question about Drupal's link structure

Hi,

Is it possible to redirect link?
I mean, if have http://mysite.com/?q=page_A
and it has content, can I make that http://mysite.com/?q=page_B will show the content of 'page_A' but the address will still remain http://mysite.com/?q=page_B ?

Thanks for the help.

Any Chat module for 5.x ?

Hi,

is there any chat module available for 5.x, even in beta ? I tried jabber and chatroom, but neither of them work.

Thanks,

Xav

can anyone recommend a link on how to correctly use form_alter and variable_get, together?

can anyone recommend a link on how to correctly use form_alter and variable_get, together?

i'm adding some checkboxes to a certain form, with form_alter, and i expect that the submitted values will make thier way into the variable_get variables that i'm using to set default value for these checkboxes

ic this same idiom in the node_privacy_byrole code, but its not working for me

what am i doing wrong?

captcha/textimage modules- diff. copy for diff. sections...

hey guys,
i installed captcha/textimage module so i can make sure my anon commenters aren't spambots. i wanted to customize my copy so that anon commenters would be invited to register. my issue was when I changed the copy to something like, "Type what you see above. Registration removes this step so join!"- that it also appeared in the captcha in the registration page which was redundant.

I ended up doing this to get around it: in captcha.module, I added a new arg, $candidate_trigger, when the captcha_type is being called:

in capcha.module
call_user_func_array($captcha_type.'_captchachallenge', array(&$form, &$_SESSION['captcha'],$candidate_trigger));

then in textimage.module, i edited the textimage_captchachellenge function to recieve and check the value of the arg like this:

in textimage.module

function textimage_captchachallenge(&$form,&$sessionStuff,&$whereAreWe) {
  if($whereAreWe=="user_register_anonymous_user_captcha")
  { 
   ...customize #title and #description for anon commenters ...
  } else {
   ...use generic settings...
  }

the one BIG question i had is in the first snippet above has argument, &$_SESSION.. being passed to textimage_captchachallenge as an arg but in textimage.module, the function didn't specify the arg. Why is that??? in order to get it to work, i had to create a &$sessionStuff arg that does nothing. Everything seems to work but i don't get it?

Plesk Integration

Hello Everyone,

I see this module here for cPanel integration. http://drupal.org/node/62508

What I want to know is, does this module work with Plesk? I was told by someone that if they both use the same basic server functions it should work, but if the cpanel module uses special cpanel functions it wouldn't work.

If this module is not compatible with Plesk, does anyone know of one that is?

Thanks in advance,
Paul

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions