Post by lucasgarcia » Fri Sep 29, 2017 1:03 pm

Hola de nuevo,
Al realizar el pedido me muestra las diferentes opciones mediante botón de radio, permitiendo al cliente cambiarlo y lo que necesito es que muestre solamente el que corresponde según el valor del pedido

http://prntscr.com/gr1dar
Gracias

Hello again,
When making the order shows the different options by radio button, allowing the customer to change it and what I need is to show only the one that corresponds according to the value of the order,
Thanks
Last edited by lucasgarcia on Mon Oct 16, 2017 7:04 pm, edited 1 time in total.

New member

Posts

Joined
Sat Sep 02, 2017 3:54 pm

Post by yodapt » Fri Sep 29, 2017 7:35 pm

If the delivery module doesnt allow you to do that, the code must be changed to do so with a modification.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by lucasgarcia » Mon Oct 09, 2017 6:38 pm

Quiero cambiar el radio button por una label para que el cliente no pueda seleccionar con radio button la cantidad de dinero que le cuesta el envio.
¿que archivo debería de cambiar? la otra opción sería ocultar este paso pero que si se visualizara en el subtotal el envío, ¿sería posible?

gracias de nuevo

I want to change the radio button for a label so that the customer can not select with radio button the amount of money that costs the shipment.
What file should change? the other option would be to hide this step but if it was displayed in the subtotal the sending, would be possible?

Thanks again

New member

Posts

Joined
Sat Sep 02, 2017 3:54 pm

Post by lucasgarcia » Sat Oct 14, 2017 3:29 am

En checkout.tpl ¿como puedo cambiar el imput radio por un label o un textarea que no deje modificar el valor ?

$(document).delegate('#button-shipping-method', 'click', function() {
$.ajax({
url: 'index.php?route=checkout/shipping_method/save',
type: 'post',
data: $('#collapse-shipping-method input[type=\'radio\']:checked, #collapse-shipping-method textarea'),
dataType: 'json',
beforeSend: function() {
$('#button-shipping-method').button('loading');

Gracias

New member

Posts

Joined
Sat Sep 02, 2017 3:54 pm

Post by yodapt » Sat Oct 14, 2017 5:32 am

You want to disable the shipping method selection? If so, you can add :

Code: Select all

<script type="text/javascript"><!--
$('#collapse-shipping-method input[type="radio"]').attr('disabled', 'disabled');
//--></script>
to the bottom of these files :

catalog\view\theme\default\template\checkout\guest_shipping.tpl
catalog\view\theme\default\template\checkout\shipping_method.tpl

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by lucasgarcia » Sat Oct 14, 2017 5:37 pm

ok perfect
many thanks

New member

Posts

Joined
Sat Sep 02, 2017 3:54 pm
Who is online

Users browsing this forum: No registered users and 9 guests