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

shopper fields

Started by finerdesign, August 14, 2014, 16:10:52 PM

Previous topic - Next topic

finerdesign

Hi
I add a date in VM shopper fields. year is from 1914 to 2014 but I want to change it from 1335 to 1393. how can I do it?
its necessary. please help me
Thanks

[attachment cleanup by admin]

samlf3rd

Quote from: finerdesign on August 14, 2014, 16:10:52 PM
Hi
I add a date in VM shopper fields. year is from 1914 to 2014 but I want to change it from 1335 to 1393. how can I do it?
its necessary. please help me
Thanks

What do you mean from 1335 to 1393?

GJC Web Design

assume he's looking for very old customers from the 12th century

haven't looked but assume it uses the native Joomla datepicker

somewhere you have to insert the JS over ride a la the J docs

<script type="text/javascript">

Calendar.setup({
range : [1335,1393]
});
</script>


or edit what is already there



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

balai


GJC Web Design

found it - administrator/components/com_virtuemart/helpers/vmjsapi.php

~ line 388

// $yearRange format >> 1980:2010
   // Virtuemart Datepicker script
   static function jDate($date='',$name="date",$id=NULL,$resetBt = TRUE, $yearRange='') {
if ($yearRange) {
         $yearRange = 'yearRange: "' . $yearRange . '",';
      }
//add

$yearRange = 'yearRange: "1335:1393",';

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