Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • zamoooik Friend
    #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


    1. register
    phong nam Friend
    #498365

    Hi 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.

Viewing 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