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

[FIXED] Vendor address 2 won't be shown

Started by patrik60, March 08, 2008, 16:01:56 PM

Previous topic - Next topic

patrik60

Instead of address 2 there is an empty space in the account maintenance and the confirmation email.

My settings:

{storename}
{address_1}
{address_2}
{zip} {city}
{country}
{phone}
{email}

Do I need to do other settings somewhere else? Thanks for help.
Patrik

Joomla 1.0.15, VM SVN 1302, php 5.2.5

mauri

#1
I think its bug. vendor_address_2 is missing in two files (marked red)
/administrator/components/com_virtuemart/classes/ps_vendor.php
   function get_vendor_details($vendor_id) {
      $db = new ps_DB();
      $q = "SELECT vendor_id, vendor_min_pov,vendor_name,vendor_store_name,contact_email,vendor_full_image, vendor_freeshipping,
               vendor_address_1,vendor_address_2, vendor_url, vendor_city, vendor_state, vendor_country, country_2_code, country_3_code,
               vendor_zip, vendor_phone, vendor_store_desc, vendor_currency, vendor_currency_display_style,
               vendor_accepted_currencies, vendor_address_format, vendor_date_format
            FROM (`#__{vm}_vendor`, `#__{vm}_country`)
            WHERE `vendor_id`=".(int)$vendor_id."
            AND (vendor_country=country_2_code OR vendor_country=country_3_code);";
      
      $db->query($q);
      $db->next_record();
      return $db;
   }

/administrator/components/com_virtuemart/global.php
global $vendor_image,$vendor_country_2_code ,$vendor_country_3_code, $vendor_image_url, $vendor_name,
      $vendor_address, $vendor_address_2, $vendor_url, $vendor_city,$vendor_country,$vendor_mail,$vendor_store_name, $vm_mainframe,
        $vendor_state, $vendor_zip, $vendor_phone, $vendor_currency, $vendor_store_desc, $vendor_freeshipping,
        $module_description, $VM_LANG, $vendor_currency_display_style, $vendor_full_image, $vendor_accepted_currencies,
        $vendor_address_format, $vendor_date_format;
VirtueMart,(Joomla-phpShop, mambo-phpShop) since 2004-03-11

patrik60

thank you. the url is missing too.
Patrik

mauri

Yes, vendor_url is missing too from those two files. I edit my previous msg.
VirtueMart,(Joomla-phpShop, mambo-phpShop) since 2004-03-11