News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

editaddresscheckoutBT view

Started by kratzi, May 23, 2014, 15:34:16 PM

Previous topic - Next topic

kratzi

Hi,

I need to make changes to the site when the editaddresscheckoutBT layout is active.

Usually I change the style for views with this command:

<?php if (JRequest::getVar('view')=='cart') { ?>

<style type="text/css">


div#123 {}
</style>

<?php
}
?>


However "editaddresschekout" does not seem to be a view. Does one of you know what the correct definiton is to define this "view".


Thank you

kratzi

GJC Web Design

I normally just add them inline in the actual view template e.g.   

components/com_virtuemart/views/user/tmpl/edit_address_userfields.php  (over ride of course)

or detect the task

<?php if ((JRequest::getVar('task')=='editaddresscart')&&(JRequest::getVar('view')=='user')) { ?>

etc
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

kratzi

Hey that is great. Exactly what I thought about. Thumb up for you!

Just one correction: the task must be editaddresscheckout
<?php if ((JRequest::getVar('task')=='editaddresscheckout')&&(JRequest::getVar('view')=='user')) { ?>


Regards

kratzi




kratzi

#3
Hi

could you please help me out with one more task.

I am using this in edit.php

<?php if ((JRequest::getVar('task')=='editaddress')&&(JRequest::getVar('view')=='user')&&(JRequest::getVar('addrtype')=='ST')) { ?>

edit.php is the file when customers go to their profile (not from cart)

This code does not work unfortunately. However  the following works fine in edit_address.php (when coming from cart)

<?php if ((JRequest::getVar('task')=='editaddresscart')&&(JRequest::getVar('view')=='user')&&(JRequest::getVar('addrtype')=='ST')) { ?>

I would appreciate to know how to solve this.

Thank you

kratzi