You know you really don't need to start each line in php with <?PHP ?>

That's just going to make editing your code much more difficult.

To understand the "->" syntax, you should read up on objects.

swmagic
—
2012-07-31T14:34:52Z —
#7

Well I think the $fee_options are coming from the database. My fear is that if I simply remove this section then the fee will be null rather than zero and I haven't a clue what that would do to the rest of the code, so I thought forcing it to zero would be safer in the greater scheme of things.

Also when I remove the code, there is another section of code above that is declares invalid as a message comes upPlease select a fee option for the “Accessories” category. and I didn't want to go too far with this.

Thus the request to set the fee to zero.

cpradio
—
2012-07-31T14:40:00Z —
#8

Okay, this is a stab in the dark, but couldn't you just update the database column named "fee_amount" or "amount" to 0?

The problem I see, is if I alter the code you provided, it won't actually alter the submitting of the form, as the form doesn't submit back the "fee_amount", it submits the fee_id, which means it will just look up the amount of the fee from the database again. So you really need to update the database.

swmagic
—
2012-07-31T14:49:02Z —
#9

Well, the form IS given. Here's the entire function and I was thinking of just forcing the radio button in the form:

BTW, How do I submit this for greater readability, I don't see ` anywhere in the toolbar.

<?php// TODO // $html .= __("You have selected more than one category. Each category you to which you elect to submit your listing incurs a separate fee.", "WPBDM"); // if($wpbusdirman_config_options[$wpbusdirmanconfigoptionsprefix.'_settings_config_6'] == "yes") // { // $html .=__(" The number of images attached to your listing will be set according to option you choose that has the most images. So if for one category you chose an option with 2 images but for another category you chose an option with 4 images your listing will be allotted 4 image slots", "WPBDM");?>

Okay, maybe I should approach this from a different angle, as I still don't see where it is processing the form elements listed on the page. What plugin are you using? As I might be able to download it to see how the code is implemented.

I also sent you a PM on how to format your code using vbTags.

swmagic
—
2012-07-31T15:04:22Z —
#11

Odd, really. I go into the database and in the table wp_wpbdp_listing_fees, the field 'fee' is a Blob. WTH? The value of those entries I've been tinkering with are [BLOB - 184 B]