-
AuthorPosts
-
July 8, 2013 at 4:35 pm #188777
please how do i add a register and checkout button, checkout as guest at the bottom of the add/edit billing address information in the shoppers field form, what i want to achieve in displayed in the image below:
thanks
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
July 9, 2013 at 3:24 am #498365Hi zamoooik ,
Your requirement is related to the customization on the default layout of VM checkout. So that, We just let you know where the layout of checkout is, located in componentscom_virtuemartviewsusertmpledit_address.php, the codes for checkout buttons are:
<button class="<?php echo $buttonclass ?>" type="submit" onclick="javascript:return callValidatorForRegister(userForm);"
title="<?php echo JText::_ ('COM_VIRTUEMART_REGISTER_AND_CHECKOUT'); ?>"><?php echo JText::_ ('COM_VIRTUEMART_REGISTER_AND_CHECKOUT'); ?></button>
<?php if (!VmConfig::get ('oncheckout_only_registered', 0)) { ?>
<button class="<?php echo $buttonclass ?>" title="<?php echo JText::_ ('COM_VIRTUEMART_CHECKOUT_AS_GUEST'); ?>" type="submit"
onclick="javascript:return myValidator(userForm, '<?php echo $this->fTask; ?>');"><?php echo JText::_ ('COM_VIRTUEMART_CHECKOUT_AS_GUEST'); ?></button>
<?php } ?>
<button class="default" type="reset"
onclick="window.location.href='<?php echo JRoute::_ ('index.php?option=com_virtuemart&view=' . $rview); ?>'"><?php echo JText::_ ('COM_VIRTUEMART_CANCEL'); ?></button>** The modified will be overwritten when you update the VM component. Remember to backup your files & try to customize by yourself.
AuthorPostsViewing 2 posts - 1 through 2 (of 2 total)This topic contains 2 replies, has 2 voices, and was last updated by phong nam 11 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
how do i add a register and checkout button at the bottom of shoppers field
Viewing 2 posts - 1 through 2 (of 2 total)