I have a question regarding the Carrier/Payment in the Order form in Quick.Cart. In our business we only have one (1) carrier/payment choice, and the customer should not be able to select any alternative. Is it possible to hide/remove the Carrier/Payment module in the Order form and just add a standard delivery cost to the order? Best regards, Magnus
BTW, in the future the QC should detect only 1 carrier and payment combination and NOT display the carrier/payment module in such case. That would be the cleanest solution for the future, just like it is done with the special pages (for example search, order form).
I just installed it but now my delete buttons in the cart don't work anymore. nothing happes when I click on them. http://img134.imageshack.us/my.php?image=deleteqd3.jpg
I just undid the whole procedure again and now they work again.
Any idea how to tweak the above function so that the delete buttons keep working?
Wow - I was about to do all this and then thought there must be a simpler way. I also prefer not to alter any core files as it can cause issues later when you need to upgrade.
Ok my fix was to first setup a default carrier and set it up as 0.00 price.
In order_form.tpl replace
<input type="radio" name="sPaymentCarrier" value="$aData[iCarrier];$aData[iPayment];$aData[fPaymentCarrierPrice]" onclick="countCarrierPrice( this )" alt="radio;$lang['Select_delivery_and_payment']" />$aData[sPaymentCarrierPrice]
with
<input type="radio" name="sPaymentCarrier" value="1;1;0.00" checked onClick="countCarrierPrice( this )" alt="radio;Choose delivery and payment method" />0.00
(notice it is checked)
I then add these two items to the css
#deliveryAndPayment { display: none; }
.summaryDelivery { display: none; }
Which hides the delivery and payment part and all is sweet :)
hey guys, notice that gwmbox'es solution doesn't actually allow the shipping to have a price. On the other hand, here is a perfect way to have only one carrier/payment preselected and still to be able to set their price in a normal way, via administration. The shipping price (payment/courier) is correctly displayed in order form and finished order as well as email to admin/customer:
1. First make sure you have only ONE carrer and only ONE payment.
2. Then in templates/orders_form.tpl add checked="checked" id="carrierprice" to block ORDER_PAYMENT_CARRIERS_LIST, like this:
<!-- BEGIN ORDER_PAYMENT_CARRIERS_LIST --> <td><input type="radio" checked="checked" id="carrierprice" name="sPaymentCarrier" value="$aData[iCarrier];$aData[iPayment];$aData[fPaymentCarrierPrice]" onclick="countCarrierPrice( this )" alt="radio;$lang['Select_delivery_and_payment']" />$aData[sPaymentCarrierPrice]</td> <!-- END ORDER_PAYMENT_CARRIERS_LIST -->
3. then in the same file add following javascript section before the end of block ORDER_FORM, after last </div>:
4. the last step is optional, if you want to completely hide the delivery and payment table, just add style="display: none;" to fieldset deliveryAndPayment, like this: <fieldset id="deliveryAndPayment" style="display: none;">
Hopefully I didn't make any mistake, someone please test and report here.