Jump to content

Payment method as default


salvador21

Recommended Posts

When a customer gest to step 3 of ordering, they get the direction:

Please choose your payment method from those listed below.

However if there is only one payment method, it should not be necessary to select it, it should just be already selected.

This actually confuses customers who keep just clicking on the MAKE PAYMENT button, but of course nothing happens.

can anyone please help?

Link to comment
Share on other sites

I made a test order (which you can delete now), so I can see what is happening.

Open skins/YOUR_SKIN/styleTemplates/content/gateway.tpl and find this block of code

			<!-- BEGIN: gateways_true -->

			<tr>

				<td class="{TD_CART_CLASS}"><strong>{VAL_GATEWAY_DESC}</strong></td>

				<td width="50" align="right" class="{TD_CART_CLASS}">

				<input name="gateway" type="radio" value="{VAL_GATEWAY_FOLDER}" {VAL_CHECKED} />

				</td>

			</tr>

			<!-- END: gateways_true -->

If {VAL_CHECKED} is missing, enter it, as above. If it is present in the code block, let me know and I will give you another block of code to check.

Lee

Link to comment
Share on other sites

Open includes/content.gateway.inc.php and see if this block on your file, matches the following...

				if($gatewayModules[$i]['default'] == 1){

					$gateway->assign('VAL_CHECKED', 'checked="checked"');

				} else {

					$gateway->assign('VAL_CHECKED', '');

				}



				$gateway->parse('gateway.cart_true.choose_gate.gateways_true');

Link to comment
Share on other sites

Open includes/content.gateway.inc.php and see if this block on your file, matches the following...

				if($gatewayModules[$i]['default'] == 1){

					$gateway->assign('VAL_CHECKED', 'checked="checked"');

				} else {

					$gateway->assign('VAL_CHECKED', '');

				}



				$gateway->parse('gateway.cart_true.choose_gate.gateways_true');


Yes, looks like it:

	



if($gatewayModules[$i]['default'] == 1){

					$gateway->assign('VAL_CHECKED', 'checked="checked"');

				} else {

					$gateway->assign('VAL_CHECKED', '');

				}



				$gateway->parse('gateway.cart_true.choose_gate.gateways_true');
Link to comment
Share on other sites

Just made another test order and it's now checked :)

Do you know your Logout and Your Account links don't work?

Yes, all working now.

Thanks I didn't know those links weren't working, I can't find out what is wrong, odd that the links work for logging in but not logging out or account.

I can sort of fix it in that style by removing the (custom) div that contains them, but that div does nothing but positions the {SESSION} and colors the links. Weird.

Have gone back to my previous style now and all is well (I think), so thanks for pointing that out.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...