Priority breaks in zen cart 1.3.8. I rely heavily on this, any chance of an update soon?
Priority breaks in zen cart 1.3.8. I rely heavily on this, any chance of an update soon?
Thx for the heads-up. I have not had a chance to upgrade my site to 1.3.8, but plan on doing so before year-end. I will investigate the problem and release a fix as soon as possible.
-ml
Found the problem and fixed it. Look for version 1.2:
http://www.zen-cart.com/index.php?ma...roducts_id=356
-ml
I don't see 1.2?
Hello,
I am trying to modify this module so that I can have 3 handling options. 0%, 20%, and 40%. I have edited the config options so that these exist:
MODULE_ORDER_TOTAL_PRIORITY_HANDLING_PER
MODULE_ORDER_TOTAL_PRIORITY_HANDLING_PER2
MODULE_ORDER_TOTAL_PRIORITY_HANDLING_PER3
I'm just not sure how to edit this section to handle 2 additional buttons:
function credit_selection()
{
$selected = (($_SESSION['priority_handling'] == '1') ? true : false);
$selection = array('id' => $this->code, 'module' => $this->title,
'redeem_instructions' => MODULE_ORDER_TOTAL_PRIORITY_HANDLING_TEXT_DESCR.'<br><br>',
'fields' => array(array('field' => zen_draw_radio_field('opt_priority_handling','1', $selected),
'title' => MODULE_ORDER_TOTAL_PRIORITY_HANDLING_TEXT_ENTER_CODE)));
return $selection;
}
Any advice would be VERY appreciated.
Are you saying you have multiple priority-like services and want to allow the user to pick a-la-carte? If so, the easiest would be to duplicate the module for each of your services, which boils down to a bunch of search-and-replace for each.
If this is not what you are after, please explain what you are trying to do... buttons don't make sense in this context the way you describe them.
Thanks for your reply. I'm trying to add 3 radio buttons, instead of the single checkbox that this module has.
I tried to duplicate the module as you suggested, but the 2nd duplicated check box option was all that appeared.
I was hoping there might be an easier way than editing the tpl_checkout_payment_default.php file.
... unfortunately, this doesn't help in explaining your scenario ... Let me try to explain...
When you install the module, you can activate it and configure it--but once it is set, it is set for your zen-cart implementation until you decide to modify it again. So, if you want to have the option of choosing a percentage, then choose "percentage" and enter the percentage you want the module to use (20, 30, etc.). Once you click on "update," this calculation for this service charge would be whatever percentage you elected of the order sub-total.
What I'm hearing from you is that you want to have the option to change this percentage, which you can do right now by typing in the percentage amount you want. Replacing this text field with a series of radio-buttons up doesn't really enhance anything--in fact, it removes functionality--which is why I don't understand your reason for pursuing this...
Anyway, look at how the charge type is implemented and duplicate this for the percentage text-box. Hope this helps!
Bookmarks