Discussions

Commerce Rules

i need helpp configuring shipping quotes like 1=13$ 2=14$ and 1-2=13$, also i dont understand how to discount 10$ off for buying more than 2.

Posted: Aug 22, 2011

Comments

wiodata on August 23, 2011

i not quite familiar if i can just add a 3 field to the array

 $form['shipping_base_price'] = array( '#type' =&gt; 'textfield', '#title' =&gt; t('Shipping base price rate'), '#description' =&gt; t('Configure what the base rate should be.'), '#default_value' =&gt; is_array($rules_settings) &amp;&amp; isset($rules_settings['shippin<span id="cke_bm_112E" style="display:none">&nbsp;</span>g_base_price']) ? $rules_settings<span id="cke_bm_113E" style="display:none">&nbsp;</span>['shipping_base_price'] : 10, '#element_validate' =&gt; array('rules_ui_element_decimal_validate'), );

in CommerceShippingFlatRate.class.php