I am trying to convert comment box of Delivery Method into a drop down menu for time selection
and i am getting this error
SyntaxError: JSON.parse: unexpected character
OK
Notice: Undefined index: comment in/catalog/controller/checkout/shipping_method.php on line 151
can somebody please help me.
i am running 1.5.3.1
Here is how I just tested it and it works:
Edit catalog/view/theme/yourtheme/template/checkout/shipping_method.tpl
and find:
and replace it with something like:
Then edit catalog/view/theme/yourtheme/template/checkout/checkout.tpl and find the line:
and replace it with:
Then you might also want to delete the comment from payment method step.
Edit catalog/view/theme/yourtheme/template/checkout/shipping_method.tpl
and find:
Code: Select all
<textarea name="comment" rows="8" style="width: 98%;"><?php echo $comment; ?></textarea>
Code: Select all
<select name="comment">
<?php if ($comment == 'After 12pm') { ?>
<option value="After 12pm" selected="selected">After 12pm</option>
<?php } else { ?>
<option value="After 12pm">After 12pm</option>
<?php } ?>
<?php if ($comment == 'After 17pm') { ?>
<option value="After 17pm" selected="selected">After 17pm</option>
<?php } else { ?>
<option value="After 17pm">After 17pm</option>
<?php } ?>
</select>
Code: Select all
data: $('#shipping-method input[type=\'radio\']:checked, #shipping-method textarea'),
Code: Select all
data: $('#shipping-method input[type=\'radio\']:checked, #shipping-method textarea, #shipping-method select'),
Who is online
Users browsing this forum: Majestic-12 [Bot] and 70 guests